Forum Discussion
How to view logs in var/log
When i open the file in notepad to internal editor it shows in some encoded format. im not sure how to proceed further. i need to look into the logs.(Took winscp not in CLI)
- amintej
Cirrus
Hello,
What file are you trying to see ? BIG-IP logs are in "ltm" file and this file should looks ok in notepad.
- RaghavendraSY
Altostratus
Hi,
You can view logs using below commands in CLI
- cat ltm or more ltm
- tail -f ltm
- cat ltm | grep
- cat ltm | grep
- cat ltm | grep
- zcat ltm.1.gz | grep input may be nodeip, vipip, pool name etc..
If you are using gtm use gtm instead of ltm in abov commands.
Hope this helps
- RaghavendraSY
Altostratus
sorry, few commands didn't come in the proper format.
- cat ltm | grep nodeip
- cat ltm | grep poolname
- zcat ltm.1.gz | grep input, input may be nodeip, vipip, pool name etc
- RaghavendraSY
Altostratus
You can download LTM file through WinSCP and can view in notepad/Wordpad if a file is more than 1 MB etc.. you will not be able to open it.
A better way to verify log is CLI or move logs to log server eg: Splunk etc..
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