How to GREP Monitor Status Spesific Pool or VS in Range Time

Good Morning Guys …

Are you know the commands if I want to grep monitor status spesific pool or vs in range time ? Im Using F5 BIG-IP Ver.12.x.x . (ex : Pool_HOST_SIMOL3K from 1.00 AM - 7.00 AM date 26 April)

Usually Im just using commands : tail -10000f /var/log/ltm | grep monitor ==> for monitoring

But, I want to grep monitor spesific pool with range time . Anyone knows whats the commands ? Thx so muchh !!

Hi,

you can use this command:

See between a specific range time:

sed -n '/Apr 26 03:25:03/,/Apr 26 04:14:32/p' /var/log/ltm

See between a specific range time with condition (grep: status and pool name):

sed -n '/Apr 26 03:25:03/,/Apr 26 04:14:32/p' /var/log/ltm | grep "status down" | grep "Pool member"

keep me in touch

regards

Hii Yosefff,

I try your command at CLI like pics bellow.

image_222582.jpg
Are this comment saved at another location folder ? its different location with ltm.gz at /var/log/ltm right ? That comment will capture spesific range n pool member name with status down, right ? How can i get that log file saved ? I think it will appear at CLI directly.

Thankkyouuu …