Forum Discussion

souravkayal_287's avatar
souravkayal_287
Icon for Nimbostratus rankNimbostratus
Apr 25, 2017

Viewing Logs in CLI

I am not so comfortable in Linux. When i want to view the particular log file for the date or any particular VS for a time how do i identify the right log file in the /var/log folder

 

3 Replies

  • From TMSH:

    (tmos) run util bash
    ~ cd /var/log
    ~ cat ltm 
    

    or you can use

    ~ zcat ltm.1.gz

    zcat is to see within .gz compressed files. This might help.

  • Nicholas P.

     

    Can you pipe it to a file within that /var/log directory as a .txt file? I as because I would like to be able to SCP it off F5 to my box. Will the .txt file that was created from the zcat pipe be viewable in notepad then?

     

    • Vijay_E's avatar
      Vijay_E
      Icon for Cirrus rankCirrus

      Yes to your question. You can also export the .gz file and open it in your client machine.