Forum Discussion
Can I retrieve my Logs in LTM for the past days or weeks?
Hi, Can I retrieve my old logs in our LTM? This is because we had a network issue last January 3, but the affected users only requested for the logs last January 8. WHen I checked the logs on our LTM using "tmsh show /sys log ltm" it only showed me the logs and the oldest is from January 9.
- Stanislas_Piro2
Cumulonimbus
You can see oldest ltm log event
zcat /var/log/ltm.9.gz | head -1
- RaghavendraSY
Altostratus
You configured syslog server on F5 device? if not you will be able to see only one week logs.
You can search all log files using the below command.
zcat /var/log/ltm..gz | grep zcat /var/log/ltm..gz | grep
Hi Clavister,
the web page will only display the current day. To see older logfiles stored on your device could use the
command. This approach is much easier to handle than dealing with the individual *.gz archives.(tmsh) show sys log ltm
By default the SYSTEM keeps the logs of the last 8 days (setting can be viewed with
) on your device and deletes daily (during the log-rotate cron.job) the logs which are older than that.(tmos) list sys db logrotate.logage
For further information on how to deal with log-rotate intervalls, maximum log-age and maximum log file numbers check out...
https://support.f5.com/csp/article/K13367
Cheers, Kai
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