Describe the bug
The time that promtail catches log files to send to Loki doesn't match the time that the log files was created.
Promtail has been up without restart for about a month.
What can be a cause for this?
Expected behavior
Logs are captured and sent by promtail to Loki when the logs were created.
Environment:
■os
Red Hat Enterprise Linux 7.8
■promtail version
2.6.0
■how installed
As a systemd.service
[root@AIPCCXAESAIHUB01 ~]# systemctl status promtail
● promtail.service - Promtail
Loaded: loaded (/etc/systemd/system/promtail.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-10-27 11:58:32 JST; 1 months 10 days ago
Docs: https://grafana.com/docs/loki/latest/clients/promtail/
Main PID: 23223 (promtail-linux-)
CGroup: /system.slice/promtail.service
mq23223 /usr/local/bin/promtail-linux-amd64 -config.file /opt/promtail/promtail-config.yaml
Screenshots, Promtail config, or terminal output
■promtail log related
※I attached the whole log file just in case
※Target log file(YYYY-MM-DD is the date that the log file was created)
・/opt/AIHUB/log/error.log.web_waiting.2022-12-02
・/opt/AIHUB/log/error.log.line_waiting.2022-11-25
・/opt/AIHUB/log/error.log.2022-11-26
・/opt/AIHUB/log/error.log.myau_waiting.2022-11-25
※There are more logs that the same thing is happening.
Describe the bug The time that promtail catches log files to send to Loki doesn't match the time that the log files was created. Promtail has been up without restart for about a month. What can be a cause for this?
Expected behavior Logs are captured and sent by promtail to Loki when the logs were created.
Environment: ■os Red Hat Enterprise Linux 7.8
■promtail version 2.6.0
■how installed As a systemd.service
Screenshots, Promtail config, or terminal output ■promtail log related ※I attached the whole log file just in case ※Target log file(YYYY-MM-DD is the date that the log file was created) ・/opt/AIHUB/log/error.log.web_waiting.2022-12-02 ・/opt/AIHUB/log/error.log.line_waiting.2022-11-25 ・/opt/AIHUB/log/error.log.2022-11-26 ・/opt/AIHUB/log/error.log.myau_waiting.2022-11-25 ※There are more logs that the same thing is happening.
■promtail config ※
- job_name: application
is where configured about target log.