Skip to content
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

New source: Apple macOS OSLog #21519

Open
artizirk opened this issue Oct 16, 2024 · 1 comment
Open

New source: Apple macOS OSLog #21519

artizirk opened this issue Oct 16, 2024 · 1 comment
Labels
source: new A request for a new source type: feature A value-adding code addition that introduce new functionality.

Comments

@artizirk
Copy link

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 Cases

It would be great to have native macOS OSLog source support in Vector as wrapping log command is very cumbersome due to sandboxing.

Attempted Solutions

On first glance it looks like you should be able to use exec source with log command but due to Apple sandboxing it doesn't work. Workaround is to have a separate script with enough privileges to write the system log to a file and then use file source to consume it in vector.

Proposal

There is some prior art available in syslog-ng darwin-oslog plugin and a Rust Library

References

No response

Version

No response

@artizirk artizirk added the type: feature A value-adding code addition that introduce new functionality. label Oct 16, 2024
@jszwedko jszwedko added the source: new A request for a new source label Oct 16, 2024
@jszwedko
Copy link
Member

Thanks for the request @artizirk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: new A request for a new source type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

5 participants
@jszwedko @artizirk and others