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.

Is there a single Apache log of all access?

Discussion in 'EasyApache' started by sneader, Dec 6, 2008.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    I was troubleshooting a problem this morning... clearly httpd was getting hit hard, but I wasn't sure what pages/domain was causing it.

    I understand there is the "access_log" at /usr/local/apache/logs but that is only for access information when the user is going to the hostname or the IP of the server itself. It does not log access for any of the customer domains on the server.

    And I understand that I can look at any of the customer's access logs at /usr/local/apache/domlogs.

    But what if don't know which domain is causing the problem?

    Must be an easy answer, but I'm stumped at the moment. :)

    - Scott
     
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    If you don't have alot of domains on the system, try this command:
    "cd /usr/local/apache/domlogs/; cat /etc/localdomains | xargs grep string"

    Replace "string" with the actual search string..
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Thanks for the idea. However, I don't know what to search for. That is sort of the problem. Sometimes, when you see a lot of httpd activity going on, it would be nice to know what is causing it.

    If you are troubleshooting mail server issues, you can tail -f /var/log/exim_mainlog and learn a lot about what is going on, in realtime. I was sort of looking for the same thing, for httpd.

    - Scott
     
Loading...

Share This Page