Skip to content

Commit bc64147

Browse files
committed
Correct the code example for adding alternative inputs
1 parent e0e8cf5 commit bc64147

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ALTERNATIVE-INPUTS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ Various other Logstash filters can produce the needed input fields (`program` an
77
----------------
88

99
```
10-
grok {
11-
match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST} %{DATA:program}(?:\[%{POSINT}\])?: %{GREEDYDATA:message}" }
12-
overwrite => ["timestamp", "message"]
10+
filter {
11+
grok {
12+
match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST} %{DATA:program}(?:\[%{POSINT}\])?: %{GREEDYDATA:message}" }
13+
overwrite => ["timestamp", "message"]
14+
}
1315
}
1416
```
1517

0 commit comments

Comments
 (0)