Hi every body!
Please consider the following config:
line console 0
logging console notice
logging monitor debug
Will the syslog messages upto severity level 7(debug) be sent on vty lines or only the syslog message upto seveity level 5(notice) be sent on vty lines ?
From my earlier post, I got one of the response that says " terminal monitor" command instructs the router to send the copies of all syslog messages from console line to vty lines.
Based on the above response, syslog messages up severity level 5( notice) will be sent on vty lines because console is receiving the syslog messages upto severity level 5 because of the configured command" logging console notice". ?
Thanks a lot and have a nice day!
The above config will send logging messages when consoled into the router for levels notifications and below.
The logging monitor debug command will send everything from level 7 down.
If you're really wanting messages to be sent to a syslog server, you need to trap those levels like:
logging trap debug
logging host 192.168.1.5 <- syslog server resides here
So, in short, you're first config logs 5,4,3,2, and 1 messages when consoled in, and your second config will logg 7,6,5,4,3,2, and 1. Terminal monitor allows the messages to show up when telnetted into the device so you can see them as they happen.
You will be getting the logging level that is allocated to the monitor as when you type the 'terminal monitor' command that's exactly what you are doing, redirecting monitor logging to your vty, not console logging.