Forum Discussion

MikeR_61788's avatar
MikeR_61788
Icon for Nimbostratus rankNimbostratus
Jun 09, 2011

LTM Log File Rotation

Have an F5 that is not performing log file rotation a single log file continues to grow the logrotatecommon.tmpl is shown below

 

 

Use the bigpipe shell utility to make changes to the system configuration.

 

@perl_begin

 

my $helpLine = "UNIX_CONFIG_LOGROTATECOMMON_REPLACE_TEMPLATEHELP";

 

print "\ For more information, see $helpLine.\n";

 

@perl_end

 

 

rotate log files daily

 

daily

 

 

logrotate_enhance controls the log files life cycle

 

rotate UNIX_CONFIG_LOGROTATECOMMON_DEFINE_BACKLOGS

 

 

create new (empty) log files after rotating old ones

 

create

 

 

compress

 

 

It will override the --force and daily, weekly... options

 

to rotate logs only when log file reaches certain size.

 

UNIX_CONFIG_LOGROTATECOMMON_REPLACE_INCLUDE

 

 

Installed in cron.daily

 

 

Logrotate.LogAge= 8

 

common backlogs = 24

 

 

Can anyone suggest how I can get the log rotation working?

 

2 Replies

  • Hi Mike,

     

     

    I'd just open a case with Support and ask them to help with this. For background on logrotate you can check this SOL:

     

     

    sol7115: Managing log files on the BIG-IP system

     

    http://support.f5.com/kb/en-us/solutions/public/7000/100/sol7115.html

     

     

    Aaron
  • Which version from TMOS do you have? I have the same problem after upgrading from 11.6.0 HF 4 to 12.0.0. A case was opened but Suppport doesn't have knowledge of this problem and was escalated to Engineering. Also, both devices were rebooted and the log was splitted, but the behavior remains and also the ltm.1 file was not compressed.