-
Is there a way to forward logs from syslog-ng to journald? I want to receive logs from remote hosts with syslog but keep it in journald. |
Beta Was this translation helpful? Give feedback.
Answered by
bazsi
Dec 20, 2023
Replies: 1 comment
-
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 { |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
avi9526
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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");
};