Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Sending syslog event ids as snmp-trap?

Hi All,

I am wondering is there a way of converting or sending syslog messages as an snmp-trap?

As an example - could the following be sent to an snmp-trap receiver to be displayed in our monitoring tool:

%ASA-1-104001: (Primary) Switching to ACTIVE (cause: string).

The reason I am wanting to try and acomplish this is to have much more control over what is sent to the monitoring system and this appears to be best done by specific message ids.

If there are differences between platforms - I am looking to do this for routers, switches, and ASA firewalls.

Lastly - is there a way of doing this so that only certain messages are sent to one host, and all syslog messages are sent to another for tracking purposes?


Cisco Employee

Re: Sending syslog event ids as snmp-trap?

A direct mapping between syslog and traps is not possible. That is, you cannot create a trap that has varbinds specific to the ASA-1-104001 syslog message. However, the ASA does support the CISCO-SYSLOG-MIB which allows syslog messages to be encapsulated in SNMP traps. The traps will essentially contain varbinds for the facility, severy, mnemonic, description text, and timestamp.

The good news is that these syslog traps are available on most switches and routers in addition to the ASA. To enable these traps on the ASA, configure:

snmp-server enable traps syslog

The same command holds true for IOS.

CreatePlease to create content