cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
349
Views
0
Helpful
9
Replies
Highlighted
Participant

logging questions

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?

Everyone's tags (2)
2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Advisor

Re: logging questions

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.

VIP Advisor

Re: logging questions

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.

9 REPLIES 9
VIP Advisor

Re: logging questions

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 ***
Rising star

Re: logging questions

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 ***
Participant

Re: logging questions

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

 

Rising star

Re: logging questions

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 ***
VIP Advisor

Re: logging questions

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.

Participant

Re: logging questions

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

VIP Advisor

Re: logging questions

yes that was clarified in the last post.

BB
*** Rate All Helpful Responses ***
VIP Advisor

Re: logging questions

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.

Rising star

Re: logging questions

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 ***
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards