cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter 'show log' to only show STP messages

How to filter 'show log' to only show STP messages

Boopathy_Chandr
New Contributor II
- - - - - Challenge from my BOSS - - -

Can any one help me out in this...? If i put " SHOW LOG"- command, I want to see only STP error logs ?? So , What i have to do for that ???
9 REPLIES 9

Stephen , after creating the log filter also I am getting normal logs only and I cannot able to see specific stp messages.

Boopathy_Chandr
New Contributor II
Stephen thank you so much...!!!!!
I am going to try this one...

StephenW
Extreme Employee
Not sure why you would want to do that but this is how you would do it.

create log filter stp_logs #creates a new log filter
--------
conf log filter "stp_logs" add events stp # adds stp logs to the filter
**OR**
conf log filter "stp_logs" add events stp severity error # adds only stp error logs to the filter
---------
conf log target memory-buffer filter "stp_logs" #configure memory-buffer for stp logs only
show log configuration #confirm configuration

You will need to clear the logs and then you will only see new STP logs

Boopathy_Chandr
New Contributor II
Thanks Mr.Alexander... But I have tried this earlier.
My requirement is...If i put " SHOW LOG" I want to see only STP logs...!!!
( I think we have to filer the logs in CLI then only its possible..but I doesn't know the commands)
Can you please guide me...!!!!

Alexandr_P
Valued Contributor
Hello!

It is few ways:
1 - some like #show log | include stp
2 - use syntax "match", "events" and "severity" with "show log" command

Thank you!
GTM-P2G8KFN