summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-09-08 11:08:59 -0700
committerhagbard <vyosdev@derith.de>2018-09-08 11:08:59 -0700
commit8c3b06d04512a2fb7f9f0db08fbdc8325f356866 (patch)
treeea342df66811ca50ba7425df7b64abfb2ff4e8c4 /data
parent37bc4c58de2744f9c1b814955f8a8f7057b9f45b (diff)
downloadvyos-1x-8c3b06d04512a2fb7f9f0db08fbdc8325f356866.tar.gz
vyos-1x-8c3b06d04512a2fb7f9f0db08fbdc8325f356866.zip
T836: template for global rsyslog.conf
Diffstat (limited to 'data')
-rw-r--r--data/templates/rsyslog/rsyslog.conf59
1 files changed, 59 insertions, 0 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf b/data/templates/rsyslog/rsyslog.conf
new file mode 100644
index 000000000..0910bd662
--- /dev/null
+++ b/data/templates/rsyslog/rsyslog.conf
@@ -0,0 +1,59 @@
+# /etc/rsyslog.conf Configuration file for rsyslog.
+#
+
+#################
+#### MODULES ####
+#################
+
+$ModLoad imuxsock # provides support for local system logging
+$ModLoad imklog # provides kernel logging support (previously done by rklogd)
+#$ModLoad immark # provides --MARK-- message capability
+
+$OmitLocalLogging no
+$SystemLogSocketName /run/systemd/journal/syslog
+
+$KLogPath /proc/kmsg
+
+# provides UDP syslog reception
+#$ModLoad imudp
+#$UDPServerRun 514
+
+# provides TCP syslog reception
+#$ModLoad imtcp
+#$InputTCPServerRun 514
+
+###########################
+#### GLOBAL DIRECTIVES ####
+###########################
+
+#
+# Use traditional timestamp format.
+# To enable high precision timestamps, comment out the following line.
+#
+$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+
+# Filter duplicated messages
+$RepeatedMsgReduction on
+
+#
+# Set the default permissions for all log files.
+#
+$FileOwner root
+$FileGroup adm
+$FileCreateMode 0640
+$DirCreateMode 0755
+$Umask 0022
+
+
+#
+# Include all config files in /etc/rsyslog.d/
+#
+$IncludeConfig /etc/rsyslog.d/*.conf
+
+###############
+#### RULES ####
+###############
+# Emergencies are sent to everybody logged in.
+
+*.emerg :omusrmsg:*
+