zgrep help needed

inyournameinyourname Posts: 6Member ■□□□□□□□□□
I have this big syslog file.
I need to get the data that is associated with 'AWS-VPN' tunnel name.
But this big data has the logs from all different firewall.

I want to get 'AWS-VPN' data from the firewall that has serial number of xxxx.

Would this be correct?

zgrep 'AWS-VPN' 'xxxx' /var/log/paloalto.log.gz > /home/mydirectory/AWS-VPN.txt

thank you


  • paul78paul78 Posts: 3,013Member ■■■■■■■■■■
    zgrep 'AWS-VPN' /var/log/paloalto.log.gz | grep zgrep 'xxxx' > /home/mydirectory/AWS-VPN.txt
Sign In or Register to comment.