Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

0
Comments on this Answer
Comment made 25-Apr-2017 by Nicholas P. 181

sed -n '/Jun 17 13:39:54/ , /Jun 18 10:50:28/p' DESIREDLOG.log

Make the date format match your desired date / system times. You can pipe this in a file for later as well.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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?

0
Comments on this Answer
Comment made 22-Jun-2017 by Vijay 4944

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

0