cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1733
Views
5
Helpful
2
Replies

need to remove TRACKING-5-STATE messages

svshow
Level 1
Level 1

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. :(

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

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

Thanks it's works amazing :)