01-03-2019 06:56 AM
Hi.
I'm using this config to see what's happened with a link:
=============================
track 1 ip sla 1 reachability
delay down 30
!
track 2 ip sla 2 reachability
delay down 30
!
track 3 ip sla 3 reachability
delay down 30
!
track 4 ip sla 4 reachability
delay down 30
!
track 5 ip sla 5 reachability
delay down 30
!
track 6 list boolean or
object 1
object 2
object 3
object 4
===========================
But there is a lot of "TRACKING-5-STATE..." messages in a log regarding sla 1,2,3,4.
I need to see just messages from track 5 and 6. The rest not so important.
Any ideas how to do this?
I tried to play with "ip sla looging traps" but it seems turns off all messages. :(
Solved! Go to Solution.
01-03-2019 03:44 PM
Hello,
What you need can be done using logging discriminators. The idea is to create a filter that will drop unwanted logging messages based on their contents. In your case, the configuration would be similar to this:
logging discriminator TRACK msg-body drops [1-4] ip sla [0-9]+ state logging buffered discriminator TRACK logging console discriminator TRACK
The regular expression in the message body is created based on the following typical syslog message for a track object state change:
*Jan 3 23:35:34.965: %TRACK-6-STATE: 1 ip sla 1 state Up -> Down
The facility (TRACK) and mnemonic (STATE) are too unspecific to filter out the expected messages since they appear for both wanted and unwanted messages. Therefore, the only way was to look into the message body where red is for the track object number, and green is for the IP SLA probe number, match the unwanted ones where the track object is between 1 and 4, and have them dropped.
Would you mind testing this out?
Best regards,
Peter
01-03-2019 03:44 PM
Hello,
What you need can be done using logging discriminators. The idea is to create a filter that will drop unwanted logging messages based on their contents. In your case, the configuration would be similar to this:
logging discriminator TRACK msg-body drops [1-4] ip sla [0-9]+ state logging buffered discriminator TRACK logging console discriminator TRACK
The regular expression in the message body is created based on the following typical syslog message for a track object state change:
*Jan 3 23:35:34.965: %TRACK-6-STATE: 1 ip sla 1 state Up -> Down
The facility (TRACK) and mnemonic (STATE) are too unspecific to filter out the expected messages since they appear for both wanted and unwanted messages. Therefore, the only way was to look into the message body where red is for the track object number, and green is for the IP SLA probe number, match the unwanted ones where the track object is between 1 and 4, and have them dropped.
Would you mind testing this out?
Best regards,
Peter
01-04-2019 08:57 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide