I'm currently working on EX devices generating a large number of logs. For compliance puropses the logs are expected and in itself that isn't a problem for me.
I was wondering if there was a method to, for example, search for BGP events taken from multiple log files using single 'match' :
So on and so forth till .9.gz.
Thanks in advance !
AFAIK, there is no CLI command to achieve the desired result. You may use shell command: zgrep -a 'search pattern' messages*
Hi,you can try from shell
> start shell
zcat messages.* | grep
If this solves your problem, please mark this post as "Accepted Solution.
Yes that works 100 !!!
Much appreciated !
In case you need to do this frequently, then SLAX script might be a more convenient option as you don't need to leave the Junos cli: https://github.com/jumation/cat-messages