I am having a bit of difficult time with the server logs. I am interested in reading the server log and figuring out when is the last time someone logged into the server. The goal here would be to shut it down if no one has been on for 10 minutes. To do this, I would use rcon to check if anyone is currently on line. If no one is on line I'll read the server log and check when the last login or logout was. If it was more than 10 minutes ago, I'll stop the server. The problem is the server logs all appear to have their timestamps without the dates. So I have no idea if a log message I'm looking at is from 5 minutes ago, or a day and 5 minutes ago.
I am having a bit of difficult time with the server logs. I am interested in reading the server log and figuring out when is the last time someone logged into the server. The goal here would be to shut it down if no one has been on for 10 minutes. To do this, I would use rcon to check if anyone is currently on line. If no one is on line I'll read the server log and check when the last login or logout was. If it was more than 10 minutes ago, I'll stop the server. The problem is the server logs all appear to have their timestamps without the dates. So I have no idea if a log message I'm looking at is from 5 minutes ago, or a day and 5 minutes ago.