Sure, it's very easy. Create a source stanza for the files you want to monitor. Create a destination stanza for the host you want to send to. Add another log stanza containing them both.
source mysqllog { file("/var/lib/mysql/mysql.err" log_prefix("mysql: "); };
destination mysqlloghost { udp("192.168.1.1" port (514)); };
log{ source(mysqllog); destination(mysqlloghost); };
- billn
Hi,
Is it possible to log only a particular logs to a remote syslog server
? For example logging only mysql/postgres logs to a remote host .
syslog-ng version used is syslog-ng 1.6.8
Thank you.
-Paras
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html