11-26-2008 04:13 AM - edited 03-04-2019 12:30 AM
hi, i have configured syslog server and it is working fine, i want only specific logs on my syslog server i.e vpn user login time and logout time only. don't want any thing else. How can i configure it.
Thanks
11-26-2008 04:18 AM
You'll find the message in your syslog like:
Nov 26 2008 05:03:49 Athena : %ASA-6-302015: Built outbound UDP connection 376604 for outside.....
The %ASA-6-302015 is the message number. In config mode type:
no logging message 302015
You have to do this for every message you don't want to log.
HTH,
John
11-26-2008 04:25 AM
hi,
i only want vpn messages to be log. no other messages to be logged on syslog server.
Is there any way to log only specific messages and the rest of messages will not be logged.
11-26-2008 05:08 AM
Unfortunately, not that I'm aware of. When you set your logging level, it logs everything from that level down. So if you set the logging level to 5, it logs 1 - 5 messages. You then have to tell it what messages you don't want to log.
HTH,
John
11-26-2008 07:41 AM
To minimize the number of messages that you have to disable, you can set the log-level to the most restrictive (7/alerts), and promote the messages that you want to see to that level:
logging trap alerts
logging message 302015 level alerts
11-26-2008 07:48 AM
Oops! That would be level "emergencies" instead of "alerts" (numerically, 0 not 7). Also, you might want to look at the "logging list
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