LogFilter

LogFilter
LogFilter is a Bukkit plugin which helps admins to keep their logs clean. After the plugin is loaded, all log entries could be filtered. Per default no filter rules are active. For more information see section Configuration.
Commands
- /logfilter enable -> Enables log filtering
- /logfilter disable -> Disables log filtering
Permissions
- logfilter.commands -> Gives access to all LogFilter commands
- logfilter.notify -> Allows to receive warnings, if an update of LogFilter is available
- logfilter.* -> Gives access to all LogFilter related functions
Configuration
There are several predefined filter patterns which are not enabled by default. Uncomment filter rules to activate them. New patterns are expressed with RegularExpressions. If you don't want to learn regular expressions, just write a comment and we try our best to answer.
# _ ______ _ _ _ # | | | ____(_) | | # | | ___ __ _| |__ _| | |_ ___ _ __ # | | / _ \ / _` | __| | | | __/ _ \ '__| # | |___| (_) | (_| | | | | | || __/ | # |______\___/ \__, |_| |_|_|\__\___|_| # __/ | # |___/ Keep your Log clean! # # http://dev.bukkit.org/bukkit-plugins/logfilter/ # Per default, there is no activated rule. If you want to activate a predefined rule, just remove the # at beginning of the line. # If you want to add your own rules, just add it at the end. Regular expressions are used to describe the rules. # In the last example you can see how you can use regular expressions to modify log messages # Note: In some situations, it's useful to see all errors, so be careful with it. # Examples may not up to date, if rules are wrong or too old, please notify me on dev.bukkit.org #--------------# # Filter-Rules # #--------------# filter-rules: # Filter all Chat messages # - rule: '^<(([A-Za-z0-9_]{3,16}))> (.{0,})' # Filter all "lost connetion" messages # - rule: '^/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\:([0-9]{1,5}) lost connection' # Filter "Reached End of Stream for {ip}" messages # - rule: 'Reached end of stream for /([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$' # Filter all "Player issued server command" messages. Useful for example for AuthMe in fact of hidding passwords. # - rule: '([A-Za-z0-9_]{3,16}) issued server command: /(.{0,})' # Filter "Read timed out" messages # - rule: 'Read timed out' # Filter all login messages # - rule: '([A-Za-z0-9_]{3,16})\[/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\:([0-9]{1,5})\] logged in with entity id ([0-9]{0,}) at \(\[(.{0,})\] ([0-9-+.]{0,}), ([0-9-+.]{0,}), ([0-9-+.]{0,})\)' # Filter player disconnect messages # - rule: '([A-Za-z0-9_]{3,16}) lost connection: disconnect.(.{0,})' # Filter messages like "§ePLAYER left the game." # - rule: '^(§e)([A-Za-z0-9_]{3,16}) left the game.' # Filter all "Connection reset" messages # - rule: 'Connection reset' # Console saving messages # - rule: 'CONSOLE: Forcing save\.\..*' # - rule: 'CONSOLE: Save complete\..*' # Example with replacing. We're transforming the login message in this example. # - rule: '([A-Za-z0-9_]{3,16})\[/(([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}))\:([0-9]{1,5})\] logged in with entity id ([0-9]{0,}) at \(\[(.{0,})\] ([0-9-+.]{0,}), ([0-9-+.]{0,}), ([0-9-+.]{0,})\)' # replace: true # replacement: 'Player $1 logged in. IP: $2' #------------------# # Some other stuff # #------------------# # Should LogFilter look for updates? update-check: true
Links
Source: https://github.com/DaAllexx/LogFilter
Issue Tracker: https://github.com/DaAllexx/LogFilter
-
View User Profile
-
Send Message
Posted Jun 21, 2016Github: 404
-
View User Profile
-
Send Message
Posted Oct 1, 2014how to logout this:
[WARNING] Can't keep up! Did the system time change, or is the server overloaded? Running 2831ms behind, skipping 56 tick(s)
or if its possible to replace with: SERVER OVERLOADED! Skipping 56 tick(s)
I need rule for this warning.
and is it possible to have colored output like green on login wen I replace standard login info, and wen yes how? (something like color codes)
please help me.
-
View User Profile
-
Send Message
Posted Sep 30, 2014what is the rule to filter comanndblock output like: [@: Block placed] and [@: Object successfully summoned]?
and I have this warning with original clear LogFilter config.yml ???
[WARNING] [LogFilter] Default system encoding may have misread config.yml from plugin jar
please help me. thx
---------#I find out how to filter cmd block messages:
but the warning is still here, what does it mean?
-
View User Profile
-
Send Message
Posted Aug 1, 2014@nathannlax
late reply, but may be useful for anyone else new to regularexpressions.
the easiest rule is to target a string within a log/console entry. so to filter this line because "this particular string" occurs the rule would be:
- rule: '.*this particular string.*'
the .* is essentially a wildcard. the ones i have running at the moment are:
- rule: '.*exceptionCaught.*'
# the new warning when Minecraft Index pings the server
- rule: '.*Attemping.*'
# ClearLags regular entry, and the odd spelling makes it safe to filter..
- rule: '.*hsssss.*'
# when citizens is reloaded
- rule: '.*empty config.*'
# when essentials decides to create a userdata.yml for an NPC
- rule: '.*unloadchunks.*'
- rule: '.*chunks have been unloaded.*'
- rule: '.*Lag coming in 10 seconds.*'
# more regular ClearLag entries)
-
View User Profile
-
Send Message
Posted Mar 23, 2014Hello, I have been using Multicraft and have been getting my console spammed with the server list. I have no idea how to write RegularExpressions. Any help would be appreciated! Thanks.
-
View User Profile
-
Send Message
Posted Jan 1, 2014I just wanted to say thank you. This plugin is very useful to me.
-
View User Profile
-
Send Message
Posted Dec 1, 2013Bukkit does not use any longer the internal Java Logging API. So I've to change my Injector, I'll see what I can do. I think I'll release an update as soon as possible.
Greetings, DaAllexx
-
View User Profile
-
Send Message
Posted Dec 1, 2013Well. I tested it now. Doesn't give out any errors but doesn't filter the logs either on Bukkit 1.7.2 with the new logger.
-
View User Profile
-
Send Message
Posted Dec 1, 2013Now that Bukkit 1.7.2's first dev versions have been released ... What's your plan on updating LogFilter? I understand that Mojang changed the whole logging system to a different one with 1.7 update so how will this affect updating LogFilter? Are you using Bukkit's API or some more low level stuff to do all the magic?
-
View User Profile
-
Send Message
Posted Sep 14, 2013how would you go about writing a wildcard i'd like to filter some spam that some plugins produce and would like to use a keyword for example [WorldGuard] 0 regions loaded for 'world_nether' i would like to wildcard the 'world_nether' as i get this message for all the worlds so would be a pain to filter for each world.
-
View User Profile
-
Send Message
Posted Aug 31, 2013@pilvimaa
I'll add this with other coll features soon.
-
View User Profile
-
Send Message
Posted Aug 26, 2013Getting errors trying to use this plugin, please see my ticket:
https://github.com/DaAllexx/LogFilter/issues/2
-
View User Profile
-
Send Message
Posted Aug 19, 2013You need to add /logfilter reload
-
View User Profile
-
Send Message
Posted Aug 9, 2013@999Mockingjay999
I think I will add some easier functions in future. But regular expressions aren't so difficult as expected :)
-
View User Profile
-
Send Message
Posted Aug 8, 2013Awesome plugin, good work! The one downside to it, is that the filtering, although has some great defaults, it isn't very easy to use. Maybe you can make it more user-friendly one day. Good luck!