Forum Discussion
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
- Vitaliy_Savrans
Nacreous
Hi,
to check logrotate age:
(tmos) list sys db logrotate.logageoutput will be something like this:
sys db logrotate.logage { value "8"Logrotate runs on daily basis:
- there will be logrotate scriptls /etc/cron.daily/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
Nimbostratus
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
Nimbostratus
any how to locate "sys db logrotate.logage" store the variable?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com