Cisco Logging level question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2018 05:34 AM - edited 03-08-2019 03:31 PM
Currently we have logging level set to 7 debugging on our switches and we're seeing mostly interface up/down messages coming through to our syslog server. I have been asked to setup logging so that we also see traps sent any time a user logs into a switch in our syslog server. Is this possible to do and which logging level should I set to accomplish this?
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2018 06:20 AM
Hi, you can try using access-list logging function.
For instance:
conf t
access-list 23 permit ..... log
line vty 0 4
access-class 23 in
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2018 06:37 AM
You can use the command "login on-success log" to log the username when someone logs into a switch. If you want to log login failures you can use "login on-failure log" command also.
HTH
