cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1469
Views
5
Helpful
6
Replies

logging in router 2811

chpmotry
Level 1
Level 1

hi guys.

i have a router 2811 (with ios:c2800nm-ipbase-mz.150-1.M2.bin) and configure logging as follows:

logging trap notifications
logging source-interface FastEthernet0/1
logging 172.20.16.2
logging 172.20.16.9

but when i type sh logging in router no logs are displayed such as interface upped and downed or cte:

R-2800#sh logging
Syslog logging: enabled (0 messages dropped, 3 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

 

No Inactive Message Discriminator.


Console logging: level debugging, 44615 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: disabled, xml disabled,
filtering disabled
Logging Exception size (4096 bytes)
Count and timestamp logging messages: disabled
Persistent logging: disabled
Trap logging: level notifications, 44534 message lines logged
Logging to 172.20.16.2 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
44534 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled
Logging to 172.20.16.29 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
34355 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering disabled

 

1 Accepted Solution

Accepted Solutions

It excatly what you need'

When you do show log you see what save in buffer not what send to syslog.

So these commands is what you need.

View solution in original post

6 Replies 6

Richard Burts
Hall of Fame
Hall of Fame

We do not have enough information to be able to solve your issue. A significant clue about the issue is this part of the posted output "Buffer logging: disabled". When you do show log, it displays the content of the logging buffer, but that logging seems to be disabled. Please post the output of the command show run | include log

HTH

Rick

thanks for your reply. belowresult of the show command in router:

R-2800#show run | include log

service timestamps log datetime msec
logging trap notifications
logging source-interface FastEthernet0/1
logging 172.20.16.29
logging 172.20.16.2
snmp-server enable traps syslog
login local
login local
login local
login local

thanks Mr. are the below commands helpful for solve this problem?

#logging buffered informational
#logging buffered 64000
#logging history
#logging persistent

M02@rt37
VIP
VIP

Hello @chpmotry,

Verify that the router's log buffer is not full or disabled. The "sh logging" output you provided shows that buffer logging is disabled. If the buffer is full or disabled, it may prevent logs from being displayed.

Also, ensure that the correct log output settings are configured. The "sh logging" output shows that console logging and monitor logging are both set to "level debugging," but no logs are displayed for either of them. Double-check that the console and monitor outputs are properly configured to display the logs.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

thanks a lot for your reply.

are the below commands helpful for solve this problem:

#logging buffered informational
#logging buffered 64000
#logging history
#logging persistent

It excatly what you need'

When you do show log you see what save in buffer not what send to syslog.

So these commands is what you need.