This article explains the difference between the Junos command 'show firewall log' and 'show log firewall' .
'show firewall log'
'show log firewall'
user@mx# show firewall family inet filter PROTECT-RE-IN | display set set firewall family inet filter PROTECT-RE-IN term 1 from protocol icmp set firewall family inet filter PROTECT-RE-IN term 1 then log set firewall family inet filter PROTECT-RE-IN term 1 then accept user@mx# show interfaces lo0 | display set set interfaces lo0 unit 0 family inet filter input PROTECT-RE-IN
Time Filter Action Interface Protocol Src Addr Dest Addr 14:10:39 pfe A xe-5/1/0.0 ICMP 10.252.4.206 10.252.70.21 14:10:37 pfe A xe-5/1/0.0 ICMP 172.24.7.229 10.252.70.21 14:10:36 pfe A xe-5/1/0.0 ICMP 172.24.7.229 10.252.70.21 No “run clear firewall log” command , the log is in kernel cache and cannot be cleared, except through a reboot
user@mx# show system syslog file firewall | display set set system syslog file firewall firewall any user@mx# show firewall family inet filter PROTECT-RE-IN | display set set firewall family inet filter PROTECT-RE-IN term 1 from protocol icmp set firewall family inet filter PROTECT-RE-IN term 1 then syslog set firewall family inet filter PROTECT-RE-IN term 1 then accept user@mx# run show log firewall Jun 12 14:12:44 re0-sur02-cran7 fpc5 PFE_FW_SYSLOG_IP: FW: xe-5/1/0.0 A icmp 10.252.4.206 10.252.70.21 11 0 (2 packets) Jun 12 14:12:45 re0-sur02-cran7 fpc5 PFE_FW_SYSLOG_IP: FW: xe-5/1/0.0 A icmp 10.252.4.206 10.252.70.21 11 0 (1 packets)
'clear log firewall'