Skip to content

Warn user when vector does not have permission to read systemd journalctl #23829

@gwk

Description

@gwk

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Case

I am a new vector user. My colleague and I just spent a lot of time trying to figure out why our journald source was not emitting any events. The answer was that the user running vector (a dedicated service user also named vector) was not a member of the systemd-journal linux group (I believe adm would also work). The vector logs gave us no hints as to the problem. The logs simply said that all health checks had passed and offered no further clues. The only indicating symptom was that the journald/checkpoint.txt file was empty.

Attempted Solutions

I enabled vector debug logging to see if that would tell me something but it yielded no further clues.

Proposal

Although this is clearly a permissions issue outside of vector itself, I hope the dev team will consider adding some kind of check to indicate whether vector has permission to read from the journal so as to prevent this kind of silent failure.

Version

vector 0.49.0 (x86_64-unknown-linux-gnu dc7e792 2025-08-12 13:47:08.632326804)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureA value-adding code addition that introduce new functionality.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions