I have an application which writes its own log file in /var/log/app/app.log
. How can I forward these logs to a remote Rsyslog server?
How to forward an application log to a remote log server
log-filesloggingrsyslog
log-filesloggingrsyslog
I have an application which writes its own log file in /var/log/app/app.log
. How can I forward these logs to a remote Rsyslog server?
Best Answer
You can do this with the imfile module.
On the sending server's rsyslog config;
On the receiving server's rsyslog config;