cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
222
Views
1
Helpful
2
Replies

Filter log

isabelaarcas17
Level 1
Level 1

Hi!

I want fo filter only one information when I run the command : sh log

 

The log is :

%PLATFORM_THERMAL-4-SECONDARY_OVERTEMP: Switch 1: Temperature is above normal (yellow) limit.


Its possible to filter only the logs with the same information?

 

Thanks! 

2 Replies 2

marce1000
VIP
VIP

 

 - You could use a logging discriminator , an example being provided in  https://www.uni-koeln.de/~pbogusze/posts/Using_IOS_logging_discriminator.html

 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! '

Hello,

 

You could try just adding part of the link on the show log command with an include statement

 

sh log | include Temperature is above normal (yellow) limit

 

-David

Review Cisco Networking for a $25 gift card