Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 1 | # 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 Prasasd | f079ad7 | 2024-01-16 15:57:21 -0800 | [diff] [blame] | 10 | # Preserve full-hostname |
| 11 | $PreserveFQDN on |
| 12 | |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 13 | # Journal-style logging |
| 14 | # Limit to no more than 2000 entries in one minute and enable the |
| 15 | # journal workaround to avoid duplicate entries |
| 16 | module(load="imjournal" StateFile="/var/log/state" |
| 17 | RateLimit.Interval="60" |
| 18 | RateLimit.Burst="2000") |
| 19 | |
| 20 | # Template for Redfish messages |
| 21 | # "<timestamp> <MessageId>,<MessageArgs>" |
| 22 | template(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 Dhanapal | 65d9cfa | 2021-06-15 18:03:57 +0530 | [diff] [blame] | 31 | # Template for Redfish messages |
| 32 | # "<timestamp> <MessageId>,<MessageArgs>" |
| 33 | template(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 Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 43 | if ($!IPMISEL_MESSAGE_ID != "") then { |
| 44 | action(type="omfile" file="/var/log/ipmi_sel" template="IPMISELTemplate") |
| 45 | } |
| 46 | |
Jayashree Dhanapal | 65d9cfa | 2021-06-15 18:03:57 +0530 | [diff] [blame] | 47 | # If the journal entry has a Redfish MessageId, save as a Redfish event |
| 48 | if ($!REDFISH_MESSAGE_ID != "") then { |
| 49 | action(type="omfile" file="/var/log/redfish" template="RedfishTemplate") |
| 50 | } |
Amithash Prasasd | 34247ac | 2024-01-16 16:13:48 -0800 | [diff] [blame] | 51 | |
| 52 | # At least one of the consoles will require streaming host console. |
| 53 | module(load="imfile") |
| 54 | |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 55 | # |
| 56 | # Include all config files in /etc/rsyslog.d/ |
| 57 | # |
| 58 | $IncludeConfig /etc/rsyslog.d/*.conf |