Limit Cpanel Access Logs

keat63

Well-Known Member
Nov 20, 2014
1,913
259
113
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
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.
 

quizknows

Well-Known Member
Oct 20, 2009
1,008
87
78
cPanel Access Level
DataCenter Provider
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:
Code:
# 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-c