Forum Discussion

Chaithy's avatar
Chaithy
Icon for Nimbostratus rankNimbostratus
Oct 19, 2017

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)

 

4 Replies

  • Hello,

     

    What file are you trying to see ? BIG-IP logs are in "ltm" file and this file should looks ok in notepad.

     

  • Hi,

     

    You can view logs using below commands in CLI

     

    1. cat ltm or more ltm
    2. tail -f ltm
    3. cat ltm | grep
    4. cat ltm | grep
    5. cat ltm | grep
    6. 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

     

  • sorry, few commands didn't come in the proper format.

     

    1. cat ltm | grep nodeip
    2. cat ltm | grep poolname
    3. zcat ltm.1.gz | grep input, input may be nodeip, vipip, pool name etc
  • 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..