Skip to content

Commit a6cba17

Browse files
committed
Avoid to use deprecated grok patterns
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 37a0de7 commit a6cba17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extracts the first IP address that matches in the log.
4646
<parse>
4747
@type grok
4848
<grok>
49-
pattern %{COMBINEDAPACHELOG}
49+
pattern %{HTTPD_COMBINEDLOG}
5050
time_format "%d/%b/%Y:%H:%M:%S %z"
5151
</grok>
5252
<grok>
@@ -173,7 +173,7 @@ This generates following events:
173173
grok_failure_key grokfailure
174174
<grok>
175175
name apache_log
176-
pattern %{COMBINEDAPACHELOG}
176+
pattern %{HTTPD_COMBINEDLOG}
177177
time_format "%d/%b/%Y:%H:%M:%S %z"
178178
</grok>
179179
<grok>
@@ -190,7 +190,7 @@ This generates following events:
190190

191191
This will add keys like following:
192192

193-
* Add `grok_name: "apache_log"` if the record matches `COMBINEDAPACHELOG`
193+
* Add `grok_name: "apache_log"` if the record matches `HTTPD_COMBINEDLOG`
194194
* Add `grok_name: "ip_address"` if the record matches `IP`
195195
* Add `grok_name: "rest_message"` if the record matches `GREEDYDATA`
196196

0 commit comments

Comments
 (0)