LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   logrotation doesn't working properly (https://www.linuxquestions.org/questions/linux-networking-3/logrotation-doesnt-working-properly-296634/)

emailssent 03-02-2005 05:07 AM

logrotation doesn't working properly
 
Dear All,

#cd /var/log
#ls -lh |less

--------
---------
--------
---------
Code:

-rw-r--r--    1 root    root          10M Feb 28 23:24 postgres.log.20
-rw-r--r--    1 root    root            0 Feb 28 20:16 postgres.log.21
-rw-r--r--    1 root    root          10M Feb 28 20:15 postgres.log.22
-rw-r--r--    1 root    root            0 Feb 28 17:04 postgres.log.23
-rw-r--r--    1 root    root          10M Feb 28 17:03 postgres.log.24
-rw-r--r--    1 root    root            0 Feb 28 13:52 postgres.log.25
-rw-r--r--    1 root    root          10M Feb 28 13:51 postgres.log.26
-rw-r--r--    1 root    root            0 Feb 28 10:56 postgres.log.27
-rw-r--r--    1 root    root          10M Feb 28 10:55 postgres.log.28
-rw-r--r--    1 root    root            0 Feb 28 08:40 postgres.log.29
-rw-r--r--    1 root    root            0 Mar  2 00:12 postgres.log.3

--------
---------
--------
---------

Why every odd numbered ( postgres.log.3, postgres.log.21 etc. )log file is of size 0. what could be the possible cause


-jack

jailbait 03-02-2005 10:54 AM

"logrotation doesn't working properly"

You can set up logrotate to work the way that you want it to. So take a look at your logrotate script.
Logrotate is configured in /etc/logrotate.conf on SuSE. You can find it on your distribution with:
find /etc -iname "*logrotate*"

-----------------------------
Steve Stites


All times are GMT -5. The time now is 05:40 PM.