Hi All, Just joined the forum and been searching but cannot seem to find an answer. Im running a hosted server based on a linux OS and noticed everytime the minecraft java process is stopped it cleans up the server.log file. I would like to be able to archive this log file and I like to parse it and see which players have logged on and IP addresses etc.
I couldn't see a property in the server.properties file so how would I change this behaviour, aside from trying to see if I can write a plugin?
Hi Rogue, thanks for your reply. Our server is running on a creeperhost.net server, from the command line I can see that its just running the java -jar command, it seems to be spawned from a parent process though, note the hostname is changed for obvious reasons:
I cannot find the SCREEN command though, the server can be started from a web-based control panel. I suppose I could trigger the server from the cli with a "nohup" but this might mean the web control panel cannot restart the server.
So is it normal behaviour for the server to just leave the logs there, is there any archive / rotation function built into the minecraft server?
As far as I've seen, there isn't any log rotation built into the MC server code. If you are running a bukkit server, this plugin may do the trick for you. It's not been updated in a while, but it still seems to do the trick for me.