04-13-2023 12:37 AM
Hey Everyone,
I have an issue with the syslog messages being sent to the console every time I do a debug and enable #terminal monitor. I have the logs sent to a remote server but I don't want them to impact the console output while debugging. Is there any way to disable syslog messages from going to the console output.
04-24-2023 02:05 AM
what I want -> enter debug (any debug command), have it showing on the output, but not having the device show any syslog messages.
Currently, when I enter debug mode the debug messages are shown with the syslog messages (I don't want these syslog messages to show on the output), is this possible ?
04-24-2023 02:07 AM - edited 04-24-2023 02:08 AM
how you access Router ?
via console ?
if yes then before run debug
line console 0
no logging synch
04-24-2023 02:44 AM
it's through tty (ssh), I tried what you have suggested, but it didn't work.
Logged in to the device and executed the following:
line vty 0 4
no logging synch
ctrl+z
debug crypto ipsec
terminal monitor
all syslog did output to the tty alongside the debug messages.
04-24-2023 05:34 AM
Yes you are correct I will make double check and see how can we solve this issue.
thanks
MHM
04-24-2023 05:38 AM
I run small lab I only change
logging monitor <level 1-4> and the debug stop appear in VTY terminal.
04-30-2023 11:37 PM
Hey @MHM Cisco World in your case you setting the severity on which to show messages to warning which does not include debug (of course), hence you will disable the debug and allow syslog messages to appear on they tty with warning severity, anyhow, if I did the same thing as you have suggested I wont see any debug command output in my tty, right? Which is a conundrum to me; my goal is to have the following output on the terminal when I execute terminal monitor + a debug command -> no sayslog messages, and all of the debug commands.
Let me know If I am missing something from your previous reply
Cheers,
05-01-2023 02:20 AM
I dont get,
access device via VTY
then
change the logging level
do debug
use terminal monitor
you will see all syslog accept the debug,
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