03-26-2019 03:00 AM
Hi,
I want my switch to send a log to syslog server when
1. config changed
2. user login(success or fail)
After setting (as below), syslog server only receive interface up/down logs,
What setting am I missing?
===Devices===
Switch: 2960L
Syslog server: 10.0.1.22:51405(UDP)
===Setting===
logging on
logging host 10.0.1.22 transport udp port 51405
logging trap 7
logging userinfo
logging reload 7
login on-success log every 1
login on-failure log every 1
archive
log config
logging enable
notify syslog contenttype plaintext
hidekeys
03-26-2019 05:51 AM
03-26-2019 07:41 PM
03-27-2019 01:23 AM
03-05-2021 07:15 AM
Little late to the party. I was just having the same problem and adding the following fixed it for me
login on-success log every 1
login on-failure log every 1
11-25-2021 04:32 AM
Even later to the party...despite having the above configuration in place, I don't see a log message in my logging buffer or sent to syslog when the configuration is saved (write memory) on some devices.
I expect to see this: %SYS-6-PRIVCFG_ENCRYPT_SUCCESS: Successfully encrypted private config file
But see nothing...Any ideas of extensions to the above required on different releases of IOS perhaps?
01-17-2024 12:28 PM
Hello, I have configured and sent logs to external syslog (trap information). But the syslog only shows port up and down status. How is it possible that when configuration changes, that information is pushed to syslog?
01-17-2024 01:01 PM
Hello,
post your configuration, as well as the output of 'show logging'...
01-18-2024 07:44 AM
I config:
logging host x.x.x.x
logging traps information
!
archive
log config
logging enable
logging size 500
hidekeys
notify syslog
!
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