Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/syslog-edit-system.html


To create a filter:

1- create the action / 

2- look for the log message ( show log message )

3- Optional: look for some help:   help syslog BFDD_TRAP_SHOP_STATE_UP

4- filter on deamon 





only bgp
only bfd




Regular expressionhttps://www.juniper.net/documentation/en_US/junos/topics/task/configuration/syslog-regular-expressions-usage-log-messages-refining.html

The match-strings statement performs a simple string comparison, and as a result, it is less CPU-intensive than using the 

match statement to match against complex regular expressions

match-strings
match-strings Matching string(s) for lines to be logged

daemon errorwarning;
match-strings snmpd;[ bfdd sshd mdg ];



set system syslog host 172.30.92.117 daemon warning
set system syslog host 172.30.92.117 match-strings bfdd
set system syslog host 172.30.92.117 match-strings sshd
set system syslog host 172.30.92.117 match-strings mdg



match<match> Regular expression for lines to be logged










...