Quantcast
Viewing latest article 8
Browse Latest Browse All 25

Advanced grep filters for F5 logs

grep X number of lines after matching pattern is found [root@ltm02:Active:Standalone] config # zless /var/log/ltm* | grep -A 2 "16:03:23" -n 230:May  3 16:03:23 ltm02 notice bigd[5171]: 01060001:5: Service detected UP for ::ffff:172.16.4.10:80 monitor /Common/site1-http-mon. 231-May  3 16:03:24 ltm02 notice bigd[5171]: 01060001:5: Service detected UP for ::ffff:172.16.4.20:80 monitor /Common/site1-http-mon. 232-May  3 16:03:24 ltm02 notice mcpd[4647]: […]

Viewing latest article 8
Browse Latest Browse All 25

Trending Articles