Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 368
  • Last Modified:

cisco router logging to syslog

Hi everyone,

What is the behavior of cisco router when it is configured with

logging buffered 10000
logging host ipaddress

Does the router flushes the buffer to the syslog server when it's full? Or does it log at the same time?

Someone told me that if it's configured that way, it will dump the old buffer to a syslogd server when it's buffer is full.

Please enlighten me on this matter.

Thanks.
0
rcamara
Asked:
rcamara
  • 3
  • 2
1 Solution
 
eumacCommented:
A syslog message will be sent every time one is generated. The buffer will also fill with messages up to capacity. It will overright the oldest as it gets full. By increasing the buffer you will have a local (on the router) history of the last X number of messages.
The second command sets up the IP address of the Syslog server that the Cisco should send its messages to.
0
 
boyntontCommented:
The logging buffered 10000 command determines the size of the buffer used to store syslog messages so that they they can be viewed using the sh logging command.  It does not empty when the buffer is full.  It is just a revolving buffer.  The old messages get removed from the buffer when new ones are added.  This command is pretty much just for convenience so that the logged in user can view the recent messages produced by the IOS.  The loggin host ipaddress points to the syslog server.  Each time a message is produced it is sent immediately to that server as well as stored in the buffer so that it can be viewed by the sh logging command.  You do not need the logging buffered 10000 command in order to get messages sent to the syslogd server.
0
 
boyntontCommented:
The default for loggin buffer size is 4096 bytes.  You do not have to configure this.  It is configured by default.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
boyntontCommented:
If you have a CCO account @ Cisco you can view this url that will tell you all about it.

http://www.cisco.com/univercd/cc/td/doc/product/iaabu/pix/pix_v53/config/commands.htm#xtocid223336

0
 
rcamaraAuthor Commented:
Btw, I just passed CCNA. What career path should I take? :-)
0
 
rcamaraAuthor Commented:
how come, i was actually accepting boyntont answer but it went to eumac.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now