Server Log
#6

Quote:
Originally Posted by Divergent
Посмотреть сообщение
This is how I personally log for my server. All the important commands (admin commands, namechanges, selling/buying things, advertisements, etc.) are logged on the mysql server, while the rest is just saved normally in server_log.txt. Every 3-4 days we rename the log to the date (so for example today we would rename it to "server_log_dec16_2014.txt" and we move it to the "logs" directory which is located in the home directory (linux). Then we just reload the logs. You can easily search through logs (or any file on linux) using

Код:
fgrep "Whatever you want to search for" server_log.txt
This is the simplest and most secure way to do it in my opinion because you don't need to give anyone access to your mysql server and you can easily set up group and user permissions on linux.
I wouldn't give access to a mysql server, nor would I on linux.

I have a system to search and display logs, it takes a matter of seconds.

But it seems that this won't be an issue, thanks guys.
Reply


Messages In This Thread
Server Log - by TakeiT - 16.12.2014, 16:57
Re: Server Log - by Divergent - 16.12.2014, 17:17
Re: Server Log - by TakeiT - 16.12.2014, 17:37
Re: Server Log - by dominik523 - 16.12.2014, 17:43
Re: Server Log - by Divergent - 16.12.2014, 17:45
Re: Server Log - by TakeiT - 16.12.2014, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)