Title: Log filter?
Last modified: June 21, 2017

---

# Log filter?

 *  [Tony G](https://wordpress.org/support/users/starbuck/)
 * (@starbuck)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/log-filter/)
 * I don’t understand how the Filter Logs feature works on the Logs tab. Please 
   provide some examples of how to apply filters to Include or Exclude specific 
   data.
 * I’d like to eliminate my own IP address from the logs. This is different from
   simply white-listing my IP. There’s no need for me to see pages of Passed activity
   from my own PC.
 * I (believe) I understand how the “Record validation logs” setting causes data
   to enter into the log. I do not want to reduce the logs to just Blocked access–
   because we need to identify Passed access that we wish to block later.
 * So would you consider an enhancement to not Log specific IP addresses?
 * As a developer, I’m also OK with making code changes. I can tweak my own code
   if you tell us where to set a hook to Not log a specific address, and to Not 
   Display a specific IP in the Logs. I would be happy to make these changes and
   submit them back for your approval. I just don’t know where to start.
 * Thank you for this fine plugin. I just installed it and am using it with the 
   Defender plugin from WPMU DEV. I believe there is a perfect synergy between these
   two plugins, as long as there are no conflicts.

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

 *  Plugin Author [tokkonopapa](https://wordpress.org/support/users/tokkonopapa/)
 * (@tokkonopapa)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/log-filter/#post-9250428)
 * Hello [@starbuck](https://wordpress.org/support/users/starbuck/),
 * First of all, you can find the following options at “**Record validation logs**”
   in “**Record settings**” section:
    0. Disable
    1. Only when blocked
    2. Only when passed
    3. Unauthenticated user
    4. Authenticated user
    5. All of validation
 * And this option can be changed programmatically through the filter hook [`ip-geo-block-record-logs`](http://www.ipgeoblock.com/codex/ip-geo-block-record-logs.html).
 * You can also find a similar sample code in your “[/wp-content/plugins/ip-geo-block/wp-content/ip-geo-api/drop-in-sample.php](https://github.com/tokkonopapa/WordPress-IP-Geo-Block/blob/master/ip-geo-block/wp-content/ip-geo-api/drop-in-sample.php#L38)“.
   You can put it into your [geolocation api folder for this plugin](http://www.ipgeoblock.com/codex/geolocation-api-library.html)
   after changing its name as “drop-in.php”.
 * And the second point is how can this plugin identify YOU. For now there are 3
   ways, e.g. IP address, country code and logged in or not. Also special defined
   user agent string may be used if you embed by your self.
 * And the last, unfortunately, there’s no filter hook to control showing logs. 
   But you can use [`ip-geo-block-backup-dir`](http://www.ipgeoblock.com/codex/ip-geo-block-backup-dir.html)
   to save CSV file in order to analyze at off-line.
 * I hope this information can help you to achieve your goals.
 * > I just installed it and am using it with the Defender plugin from WPMU DEV.
   > I believe there is a perfect synergy between these two plugins, as long as 
   > there are no conflicts.
 * That’s interesting for me. I don’t know much about Defender. So I’d appreciate
   you if you share something useful you find.
 * Thanks for your asking.
    Good luck!
 *  Thread Starter [Tony G](https://wordpress.org/support/users/starbuck/)
 * (@starbuck)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/log-filter/#post-9486967)
 * I missed your response here. Thanks for the nudge in the other thread.
 * I’m still trying to get a handle on logging with IPGB. I will look at the code
   and hooks that you have referenced, as time permits and will post back here.
 * Notes about Defender are in another thread.

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

The topic ‘Log filter?’ is closed to new replies.

 * ![](https://ps.w.org/ip-geo-block/assets/icon-128x128.png?rev=1148568)
 * [IP Geo Block](https://wordpress.org/plugins/ip-geo-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip-geo-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip-geo-block/)
 * [Active Topics](https://wordpress.org/support/plugin/ip-geo-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip-geo-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip-geo-block/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tony G](https://wordpress.org/support/users/starbuck/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/log-filter/#post-9486967)
 * Status: not resolved