Pl3xConsoleFilter
Description
This simple little plugin will filter your console's log and output from saying "[INFO] Connection reset" that seems to spam my server every 30-60 seconds. No one is really sure why this spams to console, but I know it started happening when I added my server to a dozen or more server listing sites. I think its the ping these sites do to my server to get the stats.
Instead of blocking the ping, which could result in the server listings not getting any data, I just built this simple plugin to filter the spam from my console.
IMPORTANT! If you are upgrading from v1.3 or earlier you MUST delete your old config.yml for the plugin to work
Update: Now has the ability to add your own messages to the filter list! Just crack open the config.yml and add/change what you want. It's pretty self explanatory. If you have any questions, just comment here and I'll answer them.
Here is a list of all the string comparators that can work in the config.yml:
- equals (v1.1)
- equalsignorecase (v1.2)
- contains (v1.1)
- endswith (v1.2)
- startswith (v1.2)
- matches (v1.2: This is for regular expressions)
Enjoy! ^_^
Commands
This starts with v1.2
- /pl3xconsolefilter (reload) View the plugin version or reload the config from disk. Aliases: /consolefilter, /cf, /pcf
Permissions
This starts with v1.2
- pl3xconsolefilter.pl3xconsolefilter Allows access to the pl3xconsolefilter command
Default Config.yml
Version 1.4
1 2 3 4 5 6 7 | filters: INFO: equals: - Connection reset contains: - 'lost connection: disconnect.quitting' - '[Metrics] Server returned HTTP response code: 502 for URL: http://mcstats.org/report/' |
TODO
Have a suggestion? Leave a comment!
Metrics
This plugin uses metrics to collect stats! It only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
@dart2112
Does it not work with 1.8? What errors are you getting? This plugin was designed to be forward compatible with future versions of Minecraft. The only thing that would require this plugin to update would be something changes in how the game outputs messages to console/logs, which afaik is still the same in 1.8 (using log4j).
There are going to be lots of changes and I plan on adding a lot of new features
MrAwellstein is taking over this project.
Uploaded v1.5 (Jenkins Build #9)
Fixed:
I'm looking into the 1.7.2 stuff now. Seems Mojang changed to a new logging system which Bukkit hasnt updated the API to yet. So far no known workaround for this has been found. I'll keep searching and experimenting in the mean time.
More Info: https://forums.bukkit.org/threads/console-blocking-please-help.208639/
@ZwingGX
So its not me doing something silly then :) Thanks.
Hope this will get fixed some time, hate all the spam in my console, just want to see warnings actually.
1.7.2 doesn't work :( (Filter not working)
Hi. How can I get rid of the "player logged in" message? Here is my config:
Here is a picture of my console, I want to block the last line (actually, the two last lines).
@swehunter2000
Can't explain that one. MCPC must have changed how they output messages to the console. Oh well.
running MCPC Plus.
This only removes the messages from the log, but the console still shows them..
Uploaded v1.4 Jenkins build #8
Fixed:
Other:
@herboy8
Mine finally stopped working too out of nowhere. All my blocked messages were coming through again. This build fixes that. They work again. ;)
Uploaded v1.3
Nothing added or changed, really. Just cleaned up the code a bit.
@deancohen1994
This works on 1.6.x versions, too. No need to update yet. However, I'll go ahead and clean this up a bit.
@ATLief
Glad you like it ^_^
This. Is. Amazing!
For weeks now my server has been going through all he users who joined my server (the majority of them never coming back) and listing all their IP's, saying that their IP lost connection. I know it's not players trying to join, my server is nowhere near that popular, and it happens even at 12:00 AM. If I blocked all the IP's (some of those IP's being websites pinging my server) if players that left DID come back, they couldn't (and websites would receive no server info), so I had no solution. Then I found this plugin. AMAZING! No more SPAM, I can finally use my console again! I love you (in a useful plugin-author kind of way).
TL;DR: Amazing, useful plugin that I cannot live without.
1.6.2?
The plugin suddenly doesn't work anymore for me... very strange. First it worked, but now I get messages like this again:
13:48:37 [INFO] Connection reset
While my config keeps default:
and the plugin enabled is:
Do you know how to fix this?
@kompostak99
Done. The command is available in v1.2 (build #5 from Jenkins).
Also added more string comparators in this version.
can you pls add command /cf reload reload the config.yml
@BillyGalbreath
Wow,
great so fast thx a lot.
This was the best answer/help I've ever got on bukkit :D
@deleted_9859142
Sure thing. Just finished it, actually. You can grab it early from my Jenkins page (it's build #2) or you can wait for bukkit to approve v1.1 that I've already uploaded here.
I've updated the project description to reflect the new changes. If you look at the second filter in the default config.yml thats the rule that you were asking for. xD
@therealspoljo
This will interest you, too.
Enjoy!