Recent Discussions
Audit logging and metrics & performance
Unanswered
New Zealand posted this in #questions
51 messages
0 views
New ZealandOP
Hi, I'm trying to find a clever way to log certain things, one example being command execution, and I want to log stuff like operator changes, whitelist changes, whenever these commands have been used and when, so let's say /give, /gamemode, /whitelist, etc. I'm running a Minecraft server with Docker and I'm using this image:
Last thing I wanted to ask was just recommendations on what JRE or JDE version + implementation to use, I'm curerntly using java21 but I've seen some people recommend using either Java21 or Java25 for specifically
Thanks for reading!
itzg/minecraft-server, the server is using Fabric and is on version 1.21.8, I have already tried checking Modrinth for server-side mods to help me with this since I can't use plugins, I have used a couple of mods that helps a lot with other stuff like inspecting blocks and getting stats such as who has picked it up, if it has changed, what it has changed into and when and so on. I would also like to know if there is a more clever way to get metrics and more advanced ones. I'm currently using a mod called FabricExporter and it uses Prometheus to export metrics which I then later use Grafana to visualize it on dashboards, but the metrics aren't really as much as I would like them to be, I've seen other mods and so on that gets a lot of metrics do allow for very useful dashboards.Last thing I wanted to ask was just recommendations on what JRE or JDE version + implementation to use, I'm curerntly using java21 but I've seen some people recommend using either Java21 or Java25 for specifically
1.21.+ versions and then as well use GraalVMs Java implementation. Would like to know more about this.Thanks for reading!
Asian black bear
- command execution
- operator changes
- whitelist changes
- more commands
Do others have access to manage your server? Or simply can run commands?
- operator changes
- whitelist changes
- more commands
Do others have access to manage your server? Or simply can run commands?
if they can only run commands, then all these things come down to one thing: command execution. which is logged to the log always. so you can mount your logs directory to the host if you want
@Asian black bear if they can only run commands, then all these things come down to one thing: command execution. which is logged to the log always. so you can mount your logs directory to the host if you want
Asian black bear
then I’d use a custom solution personally to go through logs
but i’m probably reinventing the wheel here, i’m sure someone might have a more elegant premade solution
@Asian black bear if they can only run commands, then all these things come down to one thing: command execution. which is logged to the log always. so you can mount your logs directory to the host if you want
New ZealandOP
I cannot find anything about this, the logs I have don't show much command execution
It might show that the whitelist has changed by noticing me that somebody was removed or added to/from the whitelist
Asian black bear
Not sure how different Fabric is in this regard but on Paper I’m almost certain all command usage is logged unless the plugin itself suppresses it?
New ZealandOP
I have also made sure to change the log4j2 from
info to all to get logging levels like TRACE, DEBUG, etc.I want my server to be as vanilla as possible to ensure stuff like farms works and stuff like that so I couldn't go with
PaperMCAsian black bear
Your farms would probably work fine on Paper but 

New ZealandOP
I did use Paper at first
Asian black bear
New ZealandOP
but I ran into issues
Asian black bear
did you follow this guide from the paper docs
New ZealandOP
I have not, but this could definitely fix some issues or like 90% of them but the rest of the issues would be using bugs that are present in vanilla as well
Asian black bear
anyways, just to confirm, when you enter commands in your server as a player, the console is not logging that?
New ZealandOP
e.g. carpet dupers
Yes
And I have yet to find a mod to help me with this or another way to achieve this logging
@New Zealand I have not, but this could definitely fix some issues or like 90% of them but the rest of the issues would be using bugs that are present in vanilla as well
New ZealandOP
So the concern here is the playerbase (my friends) they want these things.
But I do really like the idea of PaperMC thats why I started the server with it but had to shift
Loading...
Loading...