Skip to content

Commit

Permalink
Correct the code example for adding alternative inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
whyscream committed Feb 4, 2024
1 parent e0e8cf5 commit bc64147
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ALTERNATIVE-INPUTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Various other Logstash filters can produce the needed input fields (`program` an
----------------

```
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST} %{DATA:program}(?:\[%{POSINT}\])?: %{GREEDYDATA:message}" }
overwrite => ["timestamp", "message"]
filter {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST} %{DATA:program}(?:\[%{POSINT}\])?: %{GREEDYDATA:message}" }
overwrite => ["timestamp", "message"]
}
}
```

0 comments on commit bc64147

Please sign in to comment.