Forum Discussion

Thong_196816's avatar
Thong_196816
Icon for Nimbostratus rankNimbostratus
Aug 03, 2015

archived logs

Hi,

 

I read this interesting article, https://support.f5.com/kb/en-us/solutions/public/13000/300/sol13367.html comparing with my existing default archived log settins..

 

I have following doubts questions about the logrotate script

 

1.) about The logrotate script. By default, the variable is set to 8. Therefore, the system is configured to delete archive copies that are older than eight days. --> when I 'cat logrotate' scirpt, not found the default variable is set to 8 --> rotate logs run on weekly basis by default? how to verify it is run by weekly basis?

 

2.) if i wan to keep the log up to 3 months, is it possible? for e.g,to keep var\log\ltm log files up to 3 months ?

 

3.) any GUI to do this? guess will be easier...

 

3 Replies

  • Hi,

    to check logrotate age:

    (tmos) list sys db logrotate.logage

    output will be something like this:

     sys db logrotate.logage {
     value "8"
    

    Logrotate runs on daily basis:

     ls  /etc/cron.daily/
    - there will be logrotate script

    Keep logs up to 3 months possible but it depends on size of daily logs files and amount of free space on system disks.

    • Thong_196816's avatar
      Thong_196816
      Icon for Nimbostratus rankNimbostratus
      thanks for your time to answer my questions...:) I had verified, looks like my archived logs shows "8" days but the value are get from which file? is it etc/cron.daily ? i cant find it this value.. 1.) what if I wan to verify the size of daily logs? can know what command to use? 2.) if I wan to keep archived log up to 3 months, where is the settings required to change? 3.) if I do the command below, where /sys config saved ? 1.Log in to the Traffic Management Shell (tmsh) by typing the following command: tmsh 2.Modify the age at which log files are eligible for deletion, by using the following command syntax: modify /sys db logrotate.logage value In this command syntax, note the following:&9702;Legal values range from 0 to 100 3.Save the change by typing the following command: save /sys config
    • Thong_196816's avatar
      Thong_196816
      Icon for Nimbostratus rankNimbostratus
      any how to locate "sys db logrotate.logage" store the variable?