Forum Discussion
mkumar1113_2457
Nimbostratus
Apr 01, 2019CLI Command to check logs
Please help:
CLI command to check 10 days old logs on f5 load balancer for backend servers status.
Kai_Wilke
MVP
Apr 02, 2019Hi MKumar,
you can read and filter the logs stored on your hard disks via TMSH.
[root@f501:Active:Standalone] config date
Tue Apr 2 12:51:06 CEST 2019
[root@f501:Active:Standalone] config tmsh
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) show sys log ltm range 2019-03-28 lines 5 | grep warn
ltm 03-28 08:25:10 warning f501 tmsh[19996]: [api-status-warning] sys/db, properties : deprecated : connection.syncookies.threshold, pvasyncookies.virtual.connthresholdhigh, pvasyncookies.virtual.invalidthreshold, pvasyncookies.virtual.maxsyncache
ltm 03-28 08:25:25 warning f501 tmsh[19996]: [api-status-warning] sys/db, properties : deprecated : connection.syncookies.threshold, pvasyncookies.virtual.connthresholdhigh, pvasyncookies.virtual.invalidthreshold, pvasyncookies.virtual.maxsyncache
ltm 03-28 08:25:46 warning f501 tmsh[19996]: [api-status-warning] sys/db, properties : deprecated : connection.syncookies.threshold, pvasyncookies.virtual.connthresholdhigh, pvasyncookies.virtual.invalidthreshold, pvasyncookies.virtual.maxsyncache
ltm 03-28 08:26:02 warning f501 tmsh[19996]: [api-status-warning] sys/db, properties : deprecated : connection.syncookies.threshold, pvasyncookies.virtual.connthresholdhigh, pvasyncookies.virtual.invalidthreshold, pvasyncookies.virtual.maxsyncache
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos)
To become able to read logs older than the last 8 days you have to increase the logrotate.logage sys-db variable, so that your logfile are not getting auto-deleted after 8 day.
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) list /sys db logrotate.logage
sys db logrotate.logage {
value "8"
}
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) modify /sys db logrotate.logage value 14
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) list /sys db logrotate.logage
sys db logrotate.logage {
value "14"
}
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos)
Cheers, Kai
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects