Forum Discussion

smp_86112's avatar
smp_86112
Icon for Cirrostratus rankCirrostratus
May 06, 2010

v10 log rotation

I'm having a number of issues related to log rotation. In an active/passive config, the logs on unit1 are not being rotated at all. On unit2, the logs are being rotated, but only three days of history are being kept.

The output of the logrotate configuration is the same on both units:


[root@unit1:Active] log  b logrotate list all 
    logrotate { 
        common backlogs 8 
        common include none 
        include none 
        mysql include none 
        syslog include none 
        tomcat include none 
        wa include none 
    }

I also need to add an additional custom log file to the rotation list - anyone have an example of that?
  • To somewhat close the loop on this.../var/log/secure had the best clue:

    
    warning crond[7634]: Deprecated pam_stack module called from service "crond"

    To build this box, I restored a UCS which was upgraded from v9.3.1HF8 to v10.1.0. Apparently the UCS carried over a PAM authentication configuration file which referenced a now-outdated module. I copied the /config/bigip/auth/pam.d/crond from a clean v10.1.0 box, restarted the crond service, and that seems to have resolved it.