Skip to content

Conversation

titaneric
Copy link
Contributor

Summary

This PR intend to spawn a new stderr handler for journald, to emit the warning when there are any error due to permisson issue etc.

Vector configuration

data_dir: vector-data
api:
  enabled: true
  graphql: true
  playground: false
  address: "127.0.0.1:8686"
sources:
  journald_logs:
    type: journald
    since_now: true
sinks:
  my_sink_id:
    type: console
    encoding:
      codec: raw_message
    inputs:
      - journald_logs

How did you test this PR?

Run the vector with the user didn't join to systemd-journal group

sudo -u vector vector -c config.yaml -vv

AS IS
image

TO BE
image

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Closes: #23829

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • make fmt
      • make check-clippy (if there are failures it's possible some of them can be fixed with make clippy-fix)
      • make test
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run make build-licenses to regenerate the license inventory and commit the changes (if any). More details here.

@titaneric titaneric requested a review from a team as a code owner October 4, 2025 18:49
@github-actions github-actions bot added the domain: sources Anything related to the Vector's sources label Oct 4, 2025
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: sources Anything related to the Vector's sources no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants