08-08-2025 04:21 AM
I want to configure logging on an IOS XR device so that:
Syslog server (Graylog) receives all log messages
Splunk server receives only user login and logout messages
I need to configure them separately so that the filters apply only to the Splunk server without affecting the logs sent to Graylog. Could you advise on the best way to achieve this on IOS XR?
Syslog config is below:
logging trap notifications
logging facility local7
logging 172.20.48.1 vrf default port 12301
logging source-interface Loopback0
logging hostnameprefix PE02
08-08-2025 04:40 AM
logging host <A.B.C.D> discriminator <disc>
logging discriminator <disc> severity <severity-level>
logging discriminator <disc> msg-body include "TEXT"
MHM
08-08-2025 04:45 AM
the command "logging discriminator' is not supported on IOS XR . it is supported by IOS XE
08-08-2025 04:58 AM
logging ? <<- can I see option appear to you
MHM
08-08-2025 05:14 AM
08-08-2025 05:18 AM
sorry I dont have idea how you can solve this
discriminator <<- is missing
suppress will effect both server
thanks
MHM
08-08-2025 05:27 AM
check this way if you can
under logging host
see if there is suppress
MHM
08-10-2025 10:06 PM
This config is like a solution, I tested is and it run
logging 172.22.48.30 vrf mgmt port default
logging 172.22.48.30 vrf mgmt discriminator
match2 SECURITY-SSHD-6
08-08-2025 07:55 AM
Hello @ElshanMammadli5597,
on Cisco IOS XR you cannot directly filter or discriminate syslog messages per syslog server destination at the router itself.
So there are basically 2 options:
HTH!
08-10-2025 10:07 PM
This config is like a solution, I tested is and it run
logging 172.22.48.30 vrf mgmt port default
logging 172.22.48.30 vrf mgmt discriminator
match2 SECURITY-SSHD-6
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