cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1368
Views
0
Helpful
9
Replies

logging questions

flokki123
Level 3
Level 3

Hi all,

 

I have a couple of questions regarding logging.

 

logging console - turns on logging on the console port

logging monitor - turns on logging on the VTY ports

logging host - turns on syslog logging

I need "logging buffered" for "logging console" and "logging monitor" to work.

Correct so far?

 

Is "logging monitor" the same as "term mon"?

Do I need "logging monitor" for "term mon" to work?

Do I need "logging buffered" for "sh log" to work?

2 Accepted Solutions

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Let’s try and answer the questions….

 

Is "logging monitor" the same as "term mon"?

 

No. logging monitor will enable logging to the monitor (terminal lines) and allow you to set the severity. term mon will display those output and system error messages to the current terminal.

 

Do I need "logging monitor" for "term mon" to work?

 

Yes

 

Do I need "logging buffered" for "sh log" to work?

 

Yes

 

 

Cheers,

Seb.

View solution in original post

The logging console command allows you to set the severity, at which point, provided you are connected to the console port (and not a VTY) you will start seeing output.

Use the no logging console command to switch it off.

 

cheers,

Seb.

View solution in original post

9 Replies 9

balaji.bandi
Hall of Fame
Hall of Fame

Always Suggest best Practice "logging buffered" So it will store the Logs in Buffer (until it overflow)

Then you can see them sh log

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Jaderson Pessoa
VIP Alumni
VIP Alumni
adding a bit information in other post.

usage: logging buffered buffer_size severity_level

example: logging buffered 10000 debugging

- The "logging buffered" argument will log messages to internal buffer

- The "debugging" argument will log messages up to Level 7 (debugging)

- The "buffer-size" argument is the size of the buffer from 4096 to 4,294,967,295 bytes. The default size varies by platform. Most commonly use is 10000 or 16384
Jaderson Pessoa
*** Rate All Helpful Responses ***

Hi Jaderson,

 

thanks for your reply. So this means that I have to have the command "logging buffered" in order to use the "sh log" command.

Without it I the local log will be empty?

 

BR

 

Hello @flokki123 

 

as @Seb Rupik  said, yes you need 

 

Do I need "logging buffered" for "sh log" to work?

 

Yes

 

Regards

Jaderson Pessoa
*** Rate All Helpful Responses ***

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Let’s try and answer the questions….

 

Is "logging monitor" the same as "term mon"?

 

No. logging monitor will enable logging to the monitor (terminal lines) and allow you to set the severity. term mon will display those output and system error messages to the current terminal.

 

Do I need "logging monitor" for "term mon" to work?

 

Yes

 

Do I need "logging buffered" for "sh log" to work?

 

Yes

 

 

Cheers,

Seb.

Thanks a lot for your input guys!

One last question.

If "logging monitor" enables logging to the terminal lines and I can display this output with "term mon", which command do I need if I set "logging console" to display that output on the console?

 

BR

yes that was clarified in the last post.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The logging console command allows you to set the severity, at which point, provided you are connected to the console port (and not a VTY) you will start seeing output.

Use the no logging console command to switch it off.

 

cheers,

Seb.

Dont forget to mark all post that were help you as solved and helpful.
This will help other members that have the same doubt or issue.

Regards
Jaderson Pessoa
*** Rate All Helpful Responses ***
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: