Hi Boopathy,
The procedure described by Stephen should work.
create log filter stp_logs
configure log filter "stp_logs" add events STP
configure log target memory-buffer filter "stp_logs"
Please check the output for show log configuration.
That should be similar to:
Log Target : memory-buffer
Enabled : yes
Filter Name : stp_logs
Match regex : Any
Severity : Debug-Data (through Critical)
Format : MM/DD/YYYY HH:MM:SS.hh
Buffer size : 1000 messagesIf you want to see STP debug messages, you can use enable log debug-mode. However, this command should be enabled only when advanced diagnostics is required (during troubleshooting only) due to a possible performance degradation.