Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to enable User-Agent in access logs?

Discussion in 'General Discussion' started by hamed5034, Nov 21, 2013.

  1. hamed5034

    hamed5034 Member

    Joined:
    Nov 21, 2013
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hamed5034

    hamed5034 Member

    Joined:
    Nov 21, 2013
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. hamed5034

    hamed5034 Member

    Joined:
    Nov 21, 2013
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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/
     
  6. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    They have access to /home/CPANELUSERNAME/access-logs/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice