Changing the logging level of a router?

Answered Question
May 19th, 2008
User Badges:

Hi,


I have 'logging buffered 8192 warnings

' on one of my routers, is this the only part I need to change to gove me more info on the router. It's just I'm not seeing much on my syslog server.


Thanks

Correct Answer by Jon Marshall about 9 years 1 month ago

Logging buffered affects the level written to the routers buffer.


You need to edit the "logging trap" ie.


logging trap warnings


The logging trap determines what is sent to the syslog server.


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Jon Marshall Mon, 05/19/2008 - 01:36
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Logging buffered affects the level written to the routers buffer.


You need to edit the "logging trap" ie.


logging trap warnings


The logging trap determines what is sent to the syslog server.


Jon

whiteford Mon, 05/19/2008 - 02:19
User Badges:

Thanks, let me test this, so is it good to keep both the same?

Jon Marshall Mon, 05/19/2008 - 02:22
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Yes, having the router log to a syslog server and the buffer is a common setup.


Jon

whiteford Mon, 05/19/2008 - 02:37
User Badges:

Sorry John, my wording - is it a good idea to set the buffer log level to the same as trap level.

Jon Marshall Mon, 05/19/2008 - 02:43
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Yes unless you are doing some troubleshooting. Basically you want important messages to be sent to your syslog server while making sure you don't get a continuous flood of messages across the network.


Same principle for buffer on router, when the buffer is full it will overwrite so you don't want it filling up too quickly.


Errors/warnings are about the right level.


Jon

whiteford Mon, 05/19/2008 - 02:53
User Badges:

Thanks Jon,


I'm just trying to work out how to log:


logons to the router,

changes to the config,

any any level above.


I need to have an audit history, am I on the right path? I think it might be level 5 I need which is notify.


I added the follwoing to the router for logins:


archive

log config

logging enable

logging size 200

hidekeys


login on-failure log

login on-success log



Actions

This Discussion