Limit Cpanel Access Logs
Is there a way to restrict what is written to Cpanel Access Log.
It would help me if i could filter out my own connections, so that it only logs IP's that are not mine.
-
Hello :) It's not possible to configure what's written to the cPanel access log, but you are welcome to submit a feature request for this via: Submit A Feature Request Thank you. 0 -
These logs are very important in security incidents and I would not recommend trying to limit what is written to them. You have a couple options to go through them; if you're going through them "after the fact" you can simply use the grep command to view entries only from your IP. Otherwise if you want to watch in "real time" you can simply pipe the tail -f command through a grep while logged into SSH such as: # tail -f /usr/local/cpanel/logs/access_log | grep 123.123.123.123
This will cause only lines containing your IP to be output to the terminal until you kill the command with ctrl-c0
Please sign in to leave a comment.
Comments
2 comments