Access Logs

Discussion in 'Installation/Configuration' started by themachine, Dec 1, 2005.

  1. themachine

    themachine ISPConfig Developer ISPConfig Developer

    Hello... I noticed today that my access logs have not "rotated" properly. For Example:

    web7/log/web.log -> /home/vhost01_webroot/web7/log/2005/11/web.log


    Now that it is the month of December (12) should the symlink and logs have changed to:

    web7/log/web.log -> /home/vhost01_webroot/web7/log/2005/12/web.log


    What script handles this? I ran the php script that is in cron:


    vhost01:# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125


    Not sure if that is having anything to do with it???
     
  2. falko

    falko Super Moderator ISPConfig Developer

    It's December 1st; the script that creates the symlink runs at night, so it will create it tonight.
     
  3. themachine

    themachine ISPConfig Developer ISPConfig Developer

    and all of my logs have stopped logging access...

    interesting...


    I see there are *no* CustomLog entries in /etc/apache2/vhosts/Vhosts_ispconfig.conf. Where are the CustomLog entries? If I manually add it for a site logging works.

    Pft... I'm stumped.
     
    Last edited: Dec 1, 2005
  4. falko

    falko Super Moderator ISPConfig Developer

    There's one global log file which is specified in the main httpd.conf, and this global log file is splitted into the web log files each night by a cron job.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Dont add them manually! As falko posted the logdata is written to one big logfile and splitted nightly. The Data for December 1st will be written in the morning of december 2nd and the symlink will bechanged.
     

Share This Page