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

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter

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

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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/