I configured Rsyslogd to accept logs from the remote machines in my LAN:
- Code: Select all
$ModLoad imudp
$UDPServerRun 514
$AllowedSender UDP, 192.168.33.0/24, *.eg.local
And to save all logs to MySQL:
- Code: Select all
$ModLoad ommysql
*.* :ommysql:localhost,rsyslog,rsyslog,rsyslog_password
Now all logs (local and remote) are stored in files (for example /var/log/syslog) and in the MySQL database.
I only want the local logs to be stored in files, and all logs (local and remote) in the MySQL database.
How I can configure rsyslogd to have this?
Thank you very much!
Bye.


