blob: d59ca0811c9cf8757527bda430b5916cd260ba78 [file] [log] [blame]
Vijay Khemkac32281b2019-08-20 11:59:14 -07001# if you experience problems, check
2# http://www.rsyslog.com/troubleshoot for assistance
3
4# rsyslog v3: load input modules
5# If you do not load inputs, nothing happens!
6# You may need to set the module load path if modules are not found.
7#
8# Ported from debian's sysklogd.conf
9
Amithash Prasasdf079ad72024-01-16 15:57:21 -080010# Preserve full-hostname
11$PreserveFQDN on
12
Vijay Khemkac32281b2019-08-20 11:59:14 -070013# Journal-style logging
14# Limit to no more than 2000 entries in one minute and enable the
15# journal workaround to avoid duplicate entries
16module(load="imjournal" StateFile="/var/log/state"
17 RateLimit.Interval="60"
18 RateLimit.Burst="2000")
19
20# Template for Redfish messages
21# "<timestamp> <MessageId>,<MessageArgs>"
22template(name="IPMISELTemplate" type="list") {
23 property(name="timereported" dateFormat="rfc3339")
24 constant(value=" ")
25 property(name="$!IPMISEL_MESSAGE_ID")
26 constant(value=", ")
27 property(name="$!IPMISEL_MESSAGE_ARGS")
28 constant(value="\n")
29}
30
Jayashree Dhanapal65d9cfa2021-06-15 18:03:57 +053031# Template for Redfish messages
32# "<timestamp> <MessageId>,<MessageArgs>"
33template(name="RedfishTemplate" type="list") {
34 property(name="timereported" dateFormat="rfc3339")
35 constant(value=" ")
36 property(name="$!REDFISH_MESSAGE_ID")
37 constant(value=",")
38 property(name="$!REDFISH_MESSAGE_ARGS")
39 constant(value="\n")
40}
41
42# If the journal entry has a IPMI SEL MESSAGE_ID, save as IPMI SEL
Vijay Khemkac32281b2019-08-20 11:59:14 -070043if ($!IPMISEL_MESSAGE_ID != "") then {
44 action(type="omfile" file="/var/log/ipmi_sel" template="IPMISELTemplate")
45}
46
Jayashree Dhanapal65d9cfa2021-06-15 18:03:57 +053047# If the journal entry has a Redfish MessageId, save as a Redfish event
48if ($!REDFISH_MESSAGE_ID != "") then {
49 action(type="omfile" file="/var/log/redfish" template="RedfishTemplate")
50}
Amithash Prasasd34247ac2024-01-16 16:13:48 -080051
52# At least one of the consoles will require streaming host console.
53module(load="imfile")
54
Vijay Khemkac32281b2019-08-20 11:59:14 -070055#
56# Include all config files in /etc/rsyslog.d/
57#
58$IncludeConfig /etc/rsyslog.d/*.conf