In Centos 6, fail2ban writes weid characters to log file
The default logging fail2ban writes to /var/log/messages
I changed it to write to a separate file /var/log/fail2ban.log like this:
/etc/fail2ban/fail2ban.conf
logtarget = /var/log/fail2ban.log
In both cases I see weird characters in the log, it doesn't make any sense. Please observe below.
Am I missing some package ? The way I installed centos 6.3 is from a minimal install .iso
Jan 31 23:46:38 localhost fail2ban.server : INFO Changed logging target to SYSLOG for Fail2ban v0.8.8
Jan 31 23:46:38 localhost fail2ban.jail : INFO Creating new jail 'ssh-iptables'
Jan 31 23:46:38 localhost fail2ban.jail : INFO Jail 'ssh-iptables' uses pyinotify
Jan 31 23:46:38 localhost fail2ban.jail : INFO Initiated 'pyinotify' backend
Message from syslogd@localhost at Jan 31 23:46:38 …
©<30>fail2ban.filter : INFO Added logfile = /var/log/secure
Jan 31 23:46:38 localhost ©<30>fail2ban.filter : INFO Added logfile = /var/log/secure
Message from syslogd@localhost at Jan 31 23:46:38 …
©<30>fail2ban.filter : INFO Set maxRetry = 5
Jan 31 23:46:38 localhost ©<30>fail2ban.filter : INFO Set maxRetry = 5
Message from syslogd@localhost at Jan 31 23:46:38 …
©<30>fail2ban.filter : INFO Set findtime = 600
Jan 31 23:46:38 localhost ©<30>fail2ban.filter : INFO Set findtime = 600
Jan 31 23:46:38 localhost fail2ban.actions: INFO Set banTime = 600
Jan 31 23:46:38 localhost fail2ban.jail : INFO Jail 'ssh-iptables' started
Jan 31 23:46:38 localhost fail2ban.actions.action: ERROR printf %b "Subject: [Fail2Ban] SSH: started#012Date: date -u +"%a, %d %h %Y %T +0000"#012From: Fail2Ban <
Jan 31 23:46:38 localhost fail2ban.actions.action: INFO HINT on 7f00: "Command not found". Make sure that all commands in 'printf %b "Subject: [Fail2Ban] SSH: started\nDate: date -u +"%a, %d %h %Y %T +0000"\nFrom: Fail2Ban <pidof -x fail2ban-server/environ). You may want to start "fail2ban-server -f" separately, initiate it with "fail2ban-client reload" in another shell session and observe if additional informative error messages appear in the terminals.