01-09-2013 12:17 PM - edited 03-04-2019 06:39 PM
I would like to send out only meaningful log information to the syslog. I would like to filter out %LINK-3-UPDOWN: and %LINEPROTO-5-UPDOWN: going to the syslog but I would like them to be visable in the show logging as it is useful for trouble shooting.
I don't want to just send level 2 and below because there are problem at level 4 and 5 that are important to know.
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
1 52 WS-C3750-48TS 12.2(53)SE C3750-IPBASEK9-M
Thanks,
Tom
01-10-2013 08:20 AM
Tom,
I assume you're asking for syslog, not SNMP?
A logging discriminator for host logging could be what you're looking for:
As you surely know, the syslog format starts like this:
%FACILITY-[SUBFACILITY-]SEVERITY-MNEMONIC
The messages, you don't want to be send to your syslog server both have "UPDOWN" as MNEMONIC.
So you could simply configure ("LINKCHANGE" ist just a name, change it if you like to):
logging discriminator LINKCHANGE mnemonics drops UPDOWN
logging host
discriminator LINKCHANGE
Note: This discriminates all syslog messages with "UPDOWN" as mnemonic from sending to the syslog server. There might be other messages that match this pattern, although I don't know any.
HTH
Rolf
01-11-2013 06:14 AM
Thanks very much... this does what I was looking for.
01-14-2013 12:53 PM
Rolf,
Can I have multiple disciminators applied to one Server. I could not find a way to do that. For example UPDOWN and POWER_DETECTED
Thanks again
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