I'm trying to setup my rsyslog to send logs generated by an application under /opt/appname/logs to a remote syslog server.
I have already configured rsyslog to send OS level logs but wanted to see if it can also send logs of an application.
I'm not sure if IncludeConfig directive works as it looks for another *.conf file.
Linux – Using Rsyslog to send application logs to syslog server
linuxrsyslog
Related Topic
- Forwarding rsyslog to syslog-ng, with FQDN and facility separation
- Forwarding from rsyslog to syslog-ng over TCP not working (although packets are reaching server)
- Linux – Send user level messages to syslog
- Linux – Rsyslog logs are beeing duplicated
- Rsyslog UDP port changing
- Linux – Rsyslog creating duplicate entries when forwarding application logs
Best Answer
rsyslog has support for reading from a file. This is done with the
imfile
module. You need the following config:There's more information at the rsyslog documentation site