Hello, I have the following problem and I wanted to know if it is possible to solve it. I found this entry Promtail Not Reporting Rotated Log files · Issue #3108 · grafana/loki · GitHub but I am not clear if it could be fixed or not. I attach logs and promtail settings.
Jul 2 12:37:31 mendieta promtail: level=info ts=2021-07-02T15:37:31.741999535Z caller=tailer.go:173 component=tailer msg=“skipping update of position for a file which does not currently exist”
Jul 2 12:37:32 mendieta promtail: level=info ts=2021-07-02T15:37:32.115303193Z caller=tailer.go:173 component=tailer msg=“skipping update of position for a file which does not currently exist”
Jul 2 12:37:32 mendieta promtail: level=info ts=2021-07-02T15:37:32.358223961Z caller=tailer.go:173 component=tailer msg="skipping update of position for a file which does not currently exist
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
scrape_configs:
- job_name: system
static_configs:- labels:
job: logstashlogs # Ajob
label is fairly standard in prometheus and useful for linking metrics and logs.
host: ${HOSTNAME}
path: /var/log/logstash/log*.log
- labels:
promtail, version 2.2.1
Regards.