The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    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.
     
  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:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    They have access to /home/CPANELUSERNAME/access-logs/
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page