How to enable User-Agent in access logs?

hamed5034

Member
Nov 21, 2013
24
0
1
cPanel Access Level
Root Administrator
Hello,

I want to enable "User-Agent" in access log for my cPanel server.
As I know, I should edit "/usr/local/apache/conf/httpd.conf"
Please tell me which lines of httpd.conf should be edited?

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463

hamed5034

Member
Nov 21, 2013
24
0
1
cPanel Access Level
Root Administrator
Hello :)

Could you elaborate on what you would like to change specifically? For instance, for what purpose are you making a change? Keep in mind that you should not modify the httpd.conf file directly. Instead, following the instructions at:

EasyApache: Changes Contained Outside a VirtualHost Directive
EasyApache: Changes Contained Within a VirtualHost Directive

Thank you.
Hello,
I want to see "User-Agent" (Browser) in access logs.
This is the current access logs of my server:
Code:
207.241.226.216 - - [21/Nov/2013:23:14:59 +0330] "GET /robots.txt HTTP/1.1" 404 -
207.241.226.216 - - [21/Nov/2013:23:15:01 +0330] "GET /robots.txt HTTP/1.1" 404 -
207.241.226.216 - - [21/Nov/2013:23:15:01 +0330] "GET / HTTP/1.1" 200 2
And there is no "User-Agent" in it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Where are you reviewing those access logs at? You can review the full access logs in the appropriate files associated with the domain name in:

Code:
/usr/local/apache/logs/domlogs/
Thank you.
 

hamed5034

Member
Nov 21, 2013
24
0
1
cPanel Access Level
Root Administrator
Where are you reviewing those access logs at? You can review the full access logs in the appropriate files associated with the domain name in:

Code:
/usr/local/apache/logs/domlogs/
Thank you.
Hello,

My customers want to see the full access log. But they have no access to /usr/local/apache/logs/domlogs/
 

quietFinn

Well-Known Member
Feb 4, 2006
1,898
465
438
Finland
cPanel Access Level
Root Administrator
Hello,

My customers want to see the full access log. But they have no access to /usr/local/apache/logs/domlogs/
They have access to /home/CPANELUSERNAME/access-logs/
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
They have access to /home/CPANELUSERNAME/access-logs/
Yes, the individual customer can access the "access-logs" directory within their account to review their individual Apache domain access logs. The "access-logs" directory links to /usr/local/apache/domlogs/$user.

Thank you.