07-02-2023 08:06 PM - edited 07-02-2023 09:54 PM
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
Solved! Go to Solution.
07-03-2023 12:07 AM
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.
07-02-2023 09:22 PM
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
07-02-2023 09:55 PM - edited 07-02-2023 09:59 PM
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
07-02-2023 11:11 PM
thanks Mr. are the below commands helpful for solve this problem?
#logging buffered informational
#logging buffered 64000
#logging history
#logging persistent
07-02-2023 09:37 PM
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.
07-02-2023 10:12 PM - edited 07-02-2023 10:13 PM
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
07-03-2023 12:07 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide