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.

Question about raw access logs in SSH

Discussion in 'General Discussion' started by JMusic, Apr 19, 2007.

  1. JMusic

    JMusic Member

    Joined:
    Sep 18, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I have three questions about accessing raw access logs/apache logs/ftp logs in SSH:

    1. What are the commands to bring up each of these logs?

    2. Is there a way to search for a specific IP address or a specific file being accessed and only display entries that contain these? If so, how do you do that?

    3. Is there a way to download an access log that you're viewing in SSH? If so, how?
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Sounds like you are looking for the Apache logs ....

    They are located in /etc/httpd/domlogs

    Code:
    cd /etc/httpd/domlogs
    ls -l
    
    Both the FTP Transfer Logs and Web Traffic Logs for each site will be in there.

    For yet unparsed new FTP traffic, you can also view "messages" in /var/log

    Failed web connections (errors) get logged to /etc/httpd/logs/error_log
     
Loading...

Share This Page