01-23-2022 07:31 AM
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
Solved! Go to Solution.
01-23-2022 08:54 AM
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
01-23-2022 07:48 AM
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
01-23-2022 08:02 AM
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.
01-23-2022 08:20 AM
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.
01-23-2022 08:54 AM
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
01-24-2022 04:39 AM
Thank you!!! it worked
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