Redirecting output from syslog to own log

Posted by w0rldart on Super User See other posts from Super User or by w0rldart
Published on 2012-09-15T08:31:38Z Indexed on 2012/09/15 9:40 UTC
Read the original article Hit count: 389

Filed under:
|

So I'm following this tutorial: http://www.howtoforge.com/using-fail2ban-to-block-wrong-ispconfig-logins and the problem I have is that rsyslog won't redirect the output from a file to another

/etc/rsyslog.d/12-ispconfig.conf:

if $programname == 'ispconfig' then /var/log/ispconfig.log #the file exists 

But I keep getting the output to syslog:

ispconfig[1117]: Login failed for user asdasd on IP XX.XX.XXX.XX

Any ideas how to fix this?

© Super User or respective owner

Related posts about logging

Related posts about syslogd