Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2011 09:10:15 -0500
From:      "Grant Peel" <>
To:        <>
Subject:   Logrotate
Message-ID:  <7186153209294859990C5839A572C20F@GRANTLAPTOP>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi all,

Not sure if there is a better list to ask this, so here goes.

I use logrotate to rotate the apache log files within each domains log 
directory. They are in the home directory as such:


In the home directory, I also have symlinks that point to specific domain 
directories, example

cd /home -> -> -> ->

All this have beein said, when I use logrotate, it rotates the logs within 
the directories that have sym links pointing to them over and over again. In 
the case of, the log would be rotated 5 times.

I am using a logrotate.conf container that looks like so:

# more logrotate.conf
/home/*/logs/access_log {
        rotate 14
        create 644 root

So, obviously because I am using a wildcard within the container logrotate 
is going through the symlinks and rotating the logs over and over.

Is there a way or method to ignore the symlinks (or a workaround) that 
anyone knows of, other than making a logrotate.conf container for each 
individal directory.

Thanks all,


Want to link to this message? Use this URL: <>