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

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

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Different logging trap levels for different hosts

Is it possible to set different logging trap levels for different logging hosts from the same source device?

For example: from Router A, I want to send "logging trap debugging" to host B at 10.10.10.10 but only "logging trap notifications" to host C at 10.10.10.11.

Can't seem to find a workaround for this...

2 REPLIES

Re: Different logging trap levels for different hosts

It's not possible to do that. The "logging trap" is a global config command and setting it to send traps for a particular level, it does that for all the hosts you are sending traps to.

Cheers

New Member

Re: Different logging trap levels for different hosts

You might try this:

Configure Device A to send "logging trap debugging" to host B

Configure host B's syslogd to log the debug & info, and forward the notifications and up to host A:

Host B's /etc/syslog.conf entry (use the appropriate facility):

local7.debug;local7.info /var/log/devicelogs #save debug and info locally

local7.notice;local7.warning;local7.err;local7.crit;local7.alert;local7.emerg @10.10.10.11 #log notice and higher remotely

398
Views
0
Helpful
2
Replies