suggest how to track the log files

Discussion in 'General' started by smilem, Jan 16, 2008.

  1. smilem

    smilem New Member

    I'm new to linux and have successfully installed ISPconfig on Centos 5.1 using this tutorial: http://www.howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig

    I have all default services running, I thank everyone who help me on this forum to solve my server problems.

    1.How can I monitor my server log files without having to use WinSCP to download and view them one by one ?

    2.I would be thankful if you could list all default log file paths that should be tracked too.
     
  2. Hans

    Hans Moderator ISPConfig Developer

    You will find the log files within subdirectories within /var/log.
    If you want to see the maillog for example execute the command:

    tail -f /var/log/mail.log

    For Apache2:
    tail -f /var/log/apache2/error.log
    or
    tail -f /var/log/apache2/access.log

    And so on.



    CTRL+C cancels your session.
     
  3. smilem

    smilem New Member

    I use Centos 5.1 and there is no folder /var/log/apache2
    Do I neet to look in /var/log/httpd instead?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. The folder of the apache webserver log files may be /var/log/apache2, /var/log/apache or /var/log/httpd depending on your linux distribution.
     

Share This Page