12-31-2003 01:23 PM - edited 03-02-2019 12:38 PM
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...
01-02-2004 10:55 AM
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
01-06-2004 09:00 AM
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
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