cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1123
Views
0
Helpful
2
Replies

Different logging trap levels for different hosts

6aganguly
Level 1
Level 1

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 2

liviu.gheorghe
Spotlight
Spotlight

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

Regards, LG
*** Please Rate All Helpful Responses ***

bjellig
Level 1
Level 1

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