Skip to content

Is there a way to forward logs from syslog-ng to journald? #4757

Answered by bazsi
avi9526 asked this question in Q&A
Discussion options

You must be logged in to vote

It would be possible to write a native journal destination, but we don't have that at the moment.

One potential solution is to send messages to /dev/log, just make sure it is not forwarded back to syslog-ng.

To do that you need the unix-dgram() destination driver.

E.g.

destination systemd {
unix-dgram("/dev/log");
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by avi9526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants