Logging Traps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:03 AM - edited 06-22-2021 08:03 AM
Hello,
This should be a simple question. We configured our C9300, C9200, and ISR4331 devices with "Logging trap critical" and sending the logs to a syslog server. When we check the log entries, we find entries pertaining to BPDUs or access port status (UP/DOWN). Out goal is not log these low level conditions but the critical ones.
My question is why does the "CRITICAL" trap create these type of low level log entries? Which trap level would prevent sending these types of low level conditions (see below)?
Thanks in advance.
186>250322: Jun 22 14:54:49.604: %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi1/0/27 with BPDU Guard enabled. Disabling port.
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:08 AM
@zekebash : Check if you can change the sev of the logs
Test-SW-121(config)#logging trap ?
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
emergencies System is unusable (severity=0)
errors Error conditions (severity=3)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:31 AM
yes, I can. My question is which severity level would not send those low level alerts?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:23 AM
logging trap level
where level is one of the following, listed in descending order of priority:
- emergencies
- alerts
- critical
- errors
- warnings
- notifications
- informational (default level)
- debugging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:32 AM
Thanks!
Which one of those severity levels would not send "BPDU" or "access port activity" alerts?
Thanks, ~zK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:38 AM
@zekebash : you can put that only warnings and can be ignored !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 09:15 AM
Since you directing to syslog, you go higher Log level (not full debug) to all the information about the switch, you can filter in syslog what logs you want. (look at Longer solution rather small for now)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2021 08:26 AM
- By default , -2- denotes a critical error , you may mask them with a logging discriminator , for instance.
(https://www.youtube.com/watch?v=Lbb7vlQoGt0)
M.
-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
