summaryrefslogtreecommitdiffstats
path: root/tools/etc/rsyslog.d/45-frr.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/etc/rsyslog.d/45-frr.conf')
-rw-r--r--tools/etc/rsyslog.d/45-frr.conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/etc/rsyslog.d/45-frr.conf b/tools/etc/rsyslog.d/45-frr.conf
new file mode 100644
index 0000000..75b20d7
--- /dev/null
+++ b/tools/etc/rsyslog.d/45-frr.conf
@@ -0,0 +1,48 @@
+# The lines below cause all FRR daemons and process to go
+# to /var/log/frr/frr.log, then drops the message so it does
+# not also go to /var/log/syslog, so the messages are not duplicated
+
+$outchannel frr_log,/var/log/frr/frr.log
+if $programname == 'babeld' or
+ $programname == 'bgpd' or
+ $programname == 'bfdd' or
+ $programname == 'eigrpd' or
+ $programname == 'frr' or
+ $programname == 'isisd' or
+ $programname == 'fabricd' or
+ $programname == 'ldpd' or
+ $programname == 'nhrpd' or
+ $programname == 'ospf6d' or
+ $programname == 'ospfd' or
+ $programname == 'pimd' or
+ $programname == 'pim6d' or
+ $programname == 'pathd' or
+ $programname == 'pbrd' or
+ $programname == 'ripd' or
+ $programname == 'ripngd' or
+ $programname == 'vrrpd' or
+ $programname == 'watchfrr' or
+ $programname == 'zebra'
+ then :omfile:$frr_log
+
+if $programname == 'babeld' or
+ $programname == 'bgpd' or
+ $programname == 'bfdd' or
+ $programname == 'eigrpd' or
+ $programname == 'frr' or
+ $programname == 'isisd' or
+ $programname == 'fabricd' or
+ $programname == 'ldpd' or
+ $programname == 'nhrpd' or
+ $programname == 'ospf6d' or
+ $programname == 'ospfd' or
+ $programname == 'pimd' or
+ $programname == 'pim6d' or
+ $programname == 'pathd' or
+ $programname == 'pbrd' or
+ $programname == 'ripd' or
+ $programname == 'ripngd' or
+ $programname == 'vrrpd' or
+ $programname == 'watchfrr' or
+ $programname == 'zebra'
+ then stop