[container][latest] Rename and update barometer-collectd-latest
[barometer.git] / src / collectd / collectd_sample_configs-latest / logparser.conf
1 # Copyright 2019 Intel Corporation and OPNFV. All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #
15
16 LoadPlugin logparser
17
18 <Plugin logparser>
19   <Logfile "/var/log/syslog">
20     FirstFullRead false
21     <Message "pcie_errors">
22       DefaultType "pcie_error"
23       DefaultSeverity "warning"
24       <Match "aer error">
25         Regex "AER:.*error received"
26         SubmatchIdx -1
27       </Match>
28       <Match "incident time">
29         Regex "(... .. ..:..:..) .* pcieport.*AER"
30         SubmatchIdx 1
31         IsMandatory false
32       </Match>
33       <Match "root port">
34         Regex "pcieport (.*): AER:"
35         SubmatchIdx 1
36         IsMandatory true
37       </Match>
38       <Match "device">
39         PluginInstance true
40         Regex " ([0-9a-fA-F:\\.]*): PCIe Bus Error"
41         SubmatchIdx 1
42         IsMandatory false
43       </Match>
44       <Match "severity_mandatory">
45         Regex "severity="
46         SubMatchIdx -1
47       </Match>
48       <Match "nonfatal">
49         Regex "severity=.*\\([nN]on-[fF]atal"
50         TypeInstance "non_fatal"
51         IsMandatory false
52       </Match>
53       <Match "fatal">
54         Regex "severity=.*\\([fF]atal"
55         Severity "failure"
56         TypeInstance "fatal"
57         IsMandatory false
58       </Match>
59       <Match "corrected">
60         Regex "severity=Corrected"
61         TypeInstance "correctable"
62         IsMandatory false
63       </Match>
64       <Match "error type">
65         Regex "type=(.*),"
66         SubmatchIdx 1
67         IsMandatory false
68       </Match>
69      <Match "id">
70         Regex ", id=(.*)"
71         SubmatchIdx 1
72       </Match>
73     </Message>
74   </Logfile>
75 </Plugin>