Closed rjgibson closed 3 years ago
Apologies that this has been sitting, honestly it's going to be incredibly difficult for us to troubleshoot this as we don't have any setup like this.
But I do have a few questions, I'm confused on some aspects:
one journal file per server.
Yet your scrape config looks to only specify one journal entry and one file path: /var/log/journal/remote
Confirmed that journal files are still being updated.
Curious how you do this?
The server in question is acting as a centralized log server. In addition to its own systemd journal files, written to /var/log/journal/
I can see that the remote journal files under /var/log/journal/remote/ are being updated and rotated, and when I first start promtail I can see entries for all the remote servers in loki, but eventually I only see entries for a single remote server. I was hoping that promtail would monitor all files under /var/log/journal/remote/ for updates. A "normal" server contains multiple journal files under /var/log/journal/
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Bumping this issue to keep it alive. If it's not a bug, let's call it a feature request: It would be nice if promtail could track more than one log file in a directory. This would allow it to support the use case of centralized logs as created by systemd-journal-remote.
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Bump
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Wanted to look at this, curious why this is happening. Surprised we haven't had other reports if this was widespread but regardless I'm still curious whats happening here
Ha, sorry, this isn't the issue I thought it was. I'm afraid this sounds like more of a feature request. I'll look at renaming the title to reflect the request and we can see if it gathers more interest. It may be hard to prioritize if there isn't a lot of interest, but I'm also not sure how hard it would be to implement
Thanks for taking another look. If there's not enough interest, or this looks like it will be more work than it's worth, I'll investigate running promtail on each node to send to loki directly rather than using systemd-journal-upload -> systemd-journal-remote.
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
This would be incredibly useful for me as well.
I am currently researching how to integrate systemd-remote-logs into grafana. Since having remote logging setup via systemd it means i do not need to add another executable to all my servers to push/pull the logs. They are already on the machine that is hosting grafana. It would be stupid to replicate them another time since that would take up a lot of disk space.
same... would be nice to be able to process remote logs
bump
Describe the bug I'm using
systemd-journal-upload
->systemd-journal-remote
to send journal files from a cluster of servers to/var/log/journal/remote
on a single log server, one journal file per server. Loki initially shows log entries for all servers, but after a few minutes I only see log entries for a single server.To Reproduce Steps to reproduce the behavior:
/var/log/remote/journal
{job="systemd-journal-remote"}
(all log entries) and observed_HOSTNAME
field. Loki displays log entries for numerous servers as expected.{job="systemd-journal-remote"}
(all log entries) and observed_HOSTNAME
field. Loki displays log entries for only one server. Confirmed that journal files are still being updated.Expected behavior Promtail continues to tail all journal files in remote journal directory, gracefully handling log rotation for each.
Environment:
Promtail config: