Title: log file
Last modified: August 21, 2016

---

# log file

 *  Resolved [ismailm120](https://wordpress.org/support/users/ismailm120/)
 * (@ismailm120)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/log-file/)
 * Thank you so much for this plugin. I tested this to see if any invalid attempts
   are being logged. I set the log to /var/log/auth.log
 * OS is CentOS
    fail2ban starts with no issues jail.local for wordpress is # WordPress
   config [wordpress]
 * enabled = true
    filter = wordpress action = iptables[name=wordpress, port=”http,
   https”] logpath = /var/log/auth.log
 * I tried incorrect logins several times with no data in auth.log. What am I doing
   wrong?
 * [http://wordpress.org/plugins/wp-fail2ban/](http://wordpress.org/plugins/wp-fail2ban/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Paul Phillips](https://wordpress.org/support/users/teknishun/)
 * (@teknishun)
 * [12 years ago](https://wordpress.org/support/topic/log-file/#post-4566153)
 * In CentOS `auth.log` is `secure`
 * Use this
    `logpath = /var/log/secure`
 * Change line 34 of the plugin file to
    `defined('WP_FAIL2BAN_LOG') ? WP_FAIL2BAN_LOG:
   LOG_AUTHPRIV);`
 *  [reflexiv](https://wordpress.org/support/users/rheck/)
 * (@rheck)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/log-file/#post-4566161)
 * For CentOS 6 it was unnecessary for me to change the plugin code. It went to /
   var/log/messages by default.
 * After spending half a day debugging, I could never get fail2ban to trigger an
   action though even it was matching the log file. Instead of fail2ban I used CSF
   LFD to block IPs with this plugin per [http://forum.configserver.com/viewtopic.php?f=6&t=6663#p20069](http://forum.configserver.com/viewtopic.php?f=6&t=6663#p20069)
 *  Plugin Author [invisnet](https://wordpress.org/support/users/invisnet/)
 * (@invisnet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/log-file/#post-4566166)
 * If you want to change which syslog facility is used you can do that by defining
   WP_FAIL2BAN_LOG in `wp-config.php`. For example,
 * `define('WP_FAIL2BAN_LOG',LOG_AUTHPRIV);`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘log file’ is closed to new replies.

 * ![](https://ps.w.org/wp-fail2ban/assets/icon-256x256.png?rev=2814701)
 * [WP fail2ban - Advanced Security](https://wordpress.org/plugins/wp-fail2ban/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fail2ban/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fail2ban/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fail2ban/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fail2ban/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fail2ban/reviews/)

## Tags

 * [log](https://wordpress.org/support/topic-tag/log/)

 * 3 replies
 * 4 participants
 * Last reply from: [invisnet](https://wordpress.org/support/users/invisnet/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/log-file/#post-4566166)
 * Status: resolved