99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
-
+
-
+
-
+
|
<verbatim>
;; If we don't get a header then we know something went badly wrong
(expect:required in "Init" = 1 "Header" #/This is a header/)
</verbatim>
<h3>Catch and ignore errors</h3>
The rules are applied in the order they are specified in the command file. Once a rule is hit in the log file no other rules are tested. You can use this to create a catch all and then add exceptions. In this example ERROR 244 is false and should be ignored:
The rules are applied in the order they are specified in the command file. Once a rule is hit in the log file no other rules are tested. You can use this to create a catch all and then add exceptions. In this example ERROR 244 is false and should not be flagged as an error. The expect:ignore rule will match and so the expect:error rule never gets triggered.
<verbatim>
(expect:ignore in "Body" = 1 "FALSE ERROR" #/ERROR 244/)
(expect:error in "Body" = 0 "ERROR BLAH" #/error/i) ;; disallow any errors
(expect:error in "Body" = 0 "ERROR BLAH" #/error/i) ;; disallow errors
</verbatim>
<h3>Expire rules</h3>
Any rule can have a date set beyond which it will no longer be applied. This is intended to be used on ignore rules that are only intended to be temporarily applied. The date format is MM/DD/YYYY:
<verbatim>
(expect:ignore in "Body" < 99 "These are real but I want to ignore them for now" #/ERROR 1234/ expires: "02/04/2011")
</verbatim>
This kind of rule is best written as "< N" where N is more than you are ever likely to get of these that you want to ignore.
This kind of rule is often best written as "< N" where N is more than you are ever likely to get of these that you want to ignore.
<h3>Values</h3>
Extract values from your logfile and apply simple rules for pass/fail checks.
Syntax is:
|