[syslog-ng] syslog-ng logging with wrong year

Jean-Sebastien Pilon jspilon at PENSON.CA
Tue Apr 8 20:39:42 CEST 2008


Hello, 

We have a log collector receiving logs from several nodes and it is
logging in the wrong $YEAR directory every 1st of the month for some
host for about 2 minutes...

We have 75 nodes sending logs, and we have a directory created under
/var/log/hosts/2007/*/01/hostname for about 3-4 host. 

As you can see below, the folder 01 (January 1st) was created at 23:59
on December 31st... Same thing for Feb. 1st to now...


/var/log/hosts/2007/01# ls -l
total 4
drwxr-xr-x 2 root root 4096 2007-12-31 23:59 01


Here are my destination and log rules


destination d_local
{
        file("/var/log/hosts/$YEAR/$MONTH/$DAY/$HOST");
};

log
{
        source(s_tcp);
        source(s_udp);
        source(s_local);
        destination(d_local);
};


Any one has any idea why this is happening?




NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 

AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus.  


More information about the syslog-ng mailing list