I want to use syslog(3)
to write application logs to a central recorder. The application runs on a collection of computers on the same subnet.
Not interested (at present) in capturing system (non-application) logs to the central server. Not interested in having the application logs captured into the systemd journal of each local system.
Aim is to have syslog(3)
with facility of "local0"-"local7" skip the systemd journal, and instead be written to the recorder via UDP (port 514 likely).
This seems to be the inverse of the usual question (how to redirect application logs into syslog).
Currently puzzling out what makes sense for the Centos systemd/rsyslog lashup. To be clear, I expect to have this figured out in the next few days.
Putting up the question for the next guy, who like me searched for an answer, without immediate luck. :)
imfile
module which can be used to forward logs. https://rsyslog-doc.readthedocs.io/en/latest/configuration/modules/imfile.html – annahri Jan 08 '20 at 21:37The
– Preston L. Bannister Jan 08 '20 at 22:06imfile
is reading a file via rsyslog and injecting into the system syslog. In my case the applications are not writing into a file, but instead will be calling syslog(3) directly.