-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promtail never scrapes journal
logs (using README suggestions in official helm chart)
#9922
Comments
journal
logsjournal
logs (using README suggestions in official helm chart)
This config works for us on AWS EKS, with the latest promtail chart. What is interesting is you get nothing in your logs about Journal. So i wasnt even aware it was working until things showed up in Loki.
|
Same issue here:
Promtail logs with debug level:
|
@fzyzcjy Have you found a solution? |
No, I finally gave up loki... |
grafana-agent does not have access to systemd-journal . try to use the system-unit user run journalctl. sudo -u promtail journalctl -f |
I successfully collected it after adding the path. It seems that the default value does not work. image: promtail:2.9.6 - job_name: journal
journal:
path: /var/log/journal |
Describe the bug
Hi thanks for Loki, but I fail to use it to get journald logs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Environment:
Screenshots, Promtail config, or terminal output
I use the official promtail helm chart, and deliberately disabled the original section and only remain the journalctl section that I added, in order to show it more clearly.
helm values:
config when
cat
inside the container (DaemonSet pod):promtail logs, when level=debug
systemctl version
The text was updated successfully, but these errors were encountered: