>Untested example:
>
>:fromhost-ip, isequal, "xxx.xxx.xxx.xxx" :ommysql:host:db:user:pass
>
>
>Hope this helps,
>John


John,

Unfortunately that example you provided doesn't work. Here's what I put :

:fromhost-ip, isequal, "xx.xx.xx.xx"
:ommysql:127.0.0.1:dbname:dbuser:dbpassword


Produced the following error :

Nov 11 16:10:16 hostname rsyslogd-2016: Trouble with MySQL connection
properties. -MySQL logging disabled [try http://www.rsyslog.com/e/2016 ]
Nov 11 16:10:16 hostname rsyslogd: the last error occured in
/etc/rsyslog.conf, line 142:":fromhost-ip, isequal, "xx.xx.xx.xx"
:ommysql:127.0.0.1:dbname:dbuser:dbpassword"
Nov 11 16:10:16 hostname rsyslogd: warning: selector line without actions
will be discarded
Nov 11 16:10:16 hostname rsyslogd-2124: CONFIG ERROR: could not interpret
master config file '/etc/rsyslog.conf'. [try http://www.rsyslog.com/e/2124 ]



Thoughts?


_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to