File tree 4 files changed +52
-52
lines changed
files/image_config/rsyslog
4 files changed +52
-52
lines changed Original file line number Diff line number Diff line change @@ -64,34 +64,6 @@ template(name="WelfRemoteFormat" type="string" string="%TIMESTAMP% id=firewall t
64
64
:::date-year%-%timereported:::date-month%-%timereported:::date-day% %timereported:::date-hour%:%timereported:::date-minute%:%timereported\
65
65
:::date-second%\" fw=\"{{ fw_name }}\" pri=%syslogpriority% msg=\"%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\"\n")
66
66
67
- #
68
- # Set the default permissions for all log files.
69
- #
70
- $FileOwner root
71
- $FileGroup adm
72
- $FileCreateMode 0640
73
- $DirCreateMode 0755
74
- $Umask 0022
75
-
76
- #
77
- # Where to place spool and state files
78
- #
79
- $WorkDirectory /var/spool/rsyslog
80
-
81
- #
82
- # Include all config files in /etc/rsyslog.d/
83
- #
84
- $IncludeConfig /etc/rsyslog.d/*.conf
85
-
86
- #
87
- # Suppress duplicate messages and report "message repeated n times"
88
- #
89
- $RepeatedMsgReduction on
90
-
91
- ###############
92
- #### RULES ####
93
- ###############
94
-
95
67
#
96
68
# Remote syslog logging
97
69
#
@@ -134,3 +106,31 @@ $RepeatedMsgReduction on
134
106
*.{{ severity }}
135
107
action(type="omfwd" Target="{{ server }}" Port="{{ port }}" Protocol="{{ proto }}" Template="{{ template }}"{{ options }})
136
108
{% endfor %}
109
+
110
+ #
111
+ # Set the default permissions for all log files.
112
+ #
113
+ $FileOwner root
114
+ $FileGroup adm
115
+ $FileCreateMode 0640
116
+ $DirCreateMode 0755
117
+ $Umask 0022
118
+
119
+ #
120
+ # Where to place spool and state files
121
+ #
122
+ $WorkDirectory /var/spool/rsyslog
123
+
124
+ #
125
+ # Include all config files in /etc/rsyslog.d/
126
+ #
127
+ $IncludeConfig /etc/rsyslog.d/*.conf
128
+
129
+ #
130
+ # Suppress duplicate messages and report "message repeated n times"
131
+ #
132
+ $RepeatedMsgReduction on
133
+
134
+ ###############
135
+ #### RULES ####
136
+ ###############
Original file line number Diff line number Diff line change
1
+ [aliases]
2
+ test =pytest
Original file line number Diff line number Diff line change @@ -49,6 +49,17 @@ template(name="WelfRemoteFormat" type="string" string="%TIMESTAMP% id=firewall t
49
49
:::date-year%-%timereported:::date-month%-%timereported:::date-day% %timereported:::date-hour%:%timereported:::date-minute%:%timereported\
50
50
:::date-second%\" fw=\"kvm-host\" pri=%syslogpriority% msg=\"%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\"\n")
51
51
52
+ #
53
+ # Remote syslog logging
54
+ #
55
+
56
+ # The omfwd plug-in provides the core functionality of traditional message
57
+ # forwarding via UDP and plain TCP. It is a built-in module that does not need
58
+ # to be loaded.
59
+
60
+ *.*
61
+ action(type="omfwd" Target="3.3.3.3" Port="514" Protocol="udp" Template="SONiCForwardFormat")
62
+
52
63
#
53
64
# Set the default permissions for all log files.
54
65
#
@@ -76,15 +87,3 @@ $RepeatedMsgReduction on
76
87
###############
77
88
#### RULES ####
78
89
###############
79
-
80
- #
81
- # Remote syslog logging
82
- #
83
-
84
- # The omfwd plug-in provides the core functionality of traditional message
85
- # forwarding via UDP and plain TCP. It is a built-in module that does not need
86
- # to be loaded.
87
-
88
- *.*
89
- action(type="omfwd" Target="3.3.3.3" Port="514" Protocol="udp" Template="SONiCForwardFormat")
90
-
Original file line number Diff line number Diff line change @@ -51,6 +51,17 @@ template(name="WelfRemoteFormat" type="string" string="%TIMESTAMP% id=firewall t
51
51
:::date-year%-%timereported:::date-month%-%timereported:::date-day% %timereported:::date-hour%:%timereported:::date-minute%:%timereported\
52
52
:::date-second%\" fw=\"kvm-host\" pri=%syslogpriority% msg=\"%syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\"\n")
53
53
54
+ #
55
+ # Remote syslog logging
56
+ #
57
+
58
+ # The omfwd plug-in provides the core functionality of traditional message
59
+ # forwarding via UDP and plain TCP. It is a built-in module that does not need
60
+ # to be loaded.
61
+
62
+ *.*
63
+ action(type="omfwd" Target="3.3.3.3" Port="514" Protocol="udp" Template="SONiCForwardFormat")
64
+
54
65
#
55
66
# Set the default permissions for all log files.
56
67
#
@@ -78,15 +89,3 @@ $RepeatedMsgReduction on
78
89
###############
79
90
#### RULES ####
80
91
###############
81
-
82
- #
83
- # Remote syslog logging
84
- #
85
-
86
- # The omfwd plug-in provides the core functionality of traditional message
87
- # forwarding via UDP and plain TCP. It is a built-in module that does not need
88
- # to be loaded.
89
-
90
- *.*
91
- action(type="omfwd" Target="3.3.3.3" Port="514" Protocol="udp" Template="SONiCForwardFormat")
92
-
You can’t perform that action at this time.
0 commit comments