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 | |
| 10 | # Journal-style logging |
| 11 | # Limit to no more than 2000 entries in one minute and enable the |
| 12 | # journal workaround to avoid duplicate entries |
| 13 | module(load="imjournal" StateFile="/var/log/state" |
| 14 | RateLimit.Interval="60" |
| 15 | RateLimit.Burst="2000") |
| 16 | |
| 17 | # Template for Redfish messages |
| 18 | # "<timestamp> <MessageId>,<MessageArgs>" |
| 19 | template(name="IPMISELTemplate" type="list") { |
| 20 | property(name="timereported" dateFormat="rfc3339") |
| 21 | constant(value=" ") |
| 22 | property(name="$!IPMISEL_MESSAGE_ID") |
| 23 | constant(value=", ") |
| 24 | property(name="$!IPMISEL_MESSAGE_ARGS") |
| 25 | constant(value="\n") |
| 26 | } |
| 27 | |
| 28 | # If the journal entry has a Redfish MessageId, save as a Redfish event |
| 29 | if ($!IPMISEL_MESSAGE_ID != "") then { |
| 30 | action(type="omfile" file="/var/log/ipmi_sel" template="IPMISELTemplate") |
| 31 | } |
| 32 | |
| 33 | # |
| 34 | # Include all config files in /etc/rsyslog.d/ |
| 35 | # |
| 36 | $IncludeConfig /etc/rsyslog.d/*.conf |