On 09/09/2015 10:56 AM, Paul Dillon wrote: > Thanks everybody. I’ve got great support from this list. > > > > I have one more minor issue: > > > > Where is the log file? I have read on some forums that there’s a logtarget > directive in jail.local (e.g. logtarget = /var/log/fail2ban.log) >
Not in jail.*: # find /etc/fail2ban/ -type f | xargs grep -F logtarget /etc/fail2ban/fail2ban.conf:# Option: logtarget /etc/fail2ban/fail2ban.conf:# If you change logtarget from the default value and you are /etc/fail2ban/fail2ban.conf:logtarget = SYSLOG /etc/fail2ban/fail2ban.conf:# Notes: Set the syslog socket file. Only used when logtarget is SYSLOG EPEL6 fail2ban package defaults to logging to SYSYLOG, so messages will be in /var/log/messages. > My jail.local doesn’t have this directive. Adding it makes no difference. > Perhaps the latest version of fail2ban handles logging differently. I have > noticed entries in /var/log/messages. > > > > Does log2ban no longer have its own logfile? If it still does, how do I > enable it? Set logtarget in /etc/fail2ban/fail2ban.conf or in a newly created /etc/fail2ban.d/logtarget.conf to keep the original pristine. > CentOS release 6.7 (Final) > > Fail2ban 0.9.2-1.el6 -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane [email protected] Boulder, CO 80301 http://www.nwra.com ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
