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

EEM sending syslog msg of Ip Sla state - spams the show log

Veroniks23
Level 1
Level 1

hey everyone!

im using the eem to check the ip sla state on my router - and send evety minute a syslog msg to my syslog server with the result.

unfotunatly it spams the show logg with all the syslogs,

is there any way i can still send the syslogs but not to see them on "show logg" command?

 

thank you

1 Accepted Solution

Accepted Solutions

Hello,

 

you could use a logging discriminator that would keep the syslog messages out of the buffers, but still send them to the server.

 

I don't know what the exact syslog messages are that are being logged, but let's say they are:

 

%TRACK-6-STATE: 1 ip sla 1 reachability Up -> Down

 

Then the logging discrininator would look like this:

 

logging discriminator DROP_IP_SLA_LOGS severity drops 6 facility drops TRACK mnemonics drops STATE
logging buffered discriminator DROP_IP_SLA_LOGS
logging console discriminator DROP_IP_SLA_LOGS
logging monitor discriminator DROP_IP_SLA_LOGS

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

as per the post we are not sure how your IP SLA and EEM configured, also syslog, post the configuration information, and some logs for our reference to suggest better.

 

suggest below example : ( you need test and let us know is that works ?)

 

snmp-server enable traps rtr

snmp-server enable traps syslog

ip sla monitor logging traps 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

hi thank you for your reply

im not using snmp-server on my network. im using only a syslog server to whom im sending syslog messages.

so im not sure it will work on my network.

 

 

That is SNMP trap sending information to send to Syslog

 

what device and IOS code running here?

 post the configuration information, and some logs for our reference to suggest better.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

you could use a logging discriminator that would keep the syslog messages out of the buffers, but still send them to the server.

 

I don't know what the exact syslog messages are that are being logged, but let's say they are:

 

%TRACK-6-STATE: 1 ip sla 1 reachability Up -> Down

 

Then the logging discrininator would look like this:

 

logging discriminator DROP_IP_SLA_LOGS severity drops 6 facility drops TRACK mnemonics drops STATE
logging buffered discriminator DROP_IP_SLA_LOGS
logging console discriminator DROP_IP_SLA_LOGS
logging monitor discriminator DROP_IP_SLA_LOGS

Thank you!!! it worked