Skip to content

Commit dc0630f

Browse files
authored
Deal with optional newline in event (#2)
After ingesting a few more events we found out there are different variants on the system: single line events that worked just as we have them in the pattern so far multline events where the timestamp is the first line and then everything is in the next line, starting at the begin of the line mutline events where all but the first line with the timestamp are indented This new pattern should be able to deal with all of them.
1 parent 1b4d421 commit dc0630f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filter-10-header.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filter {
22

33
grok {
4-
match => ["message", "%{TIMESTAMP_ISO8601:oracledate} %{GREEDYDATA:message}"]
4+
match => ["message", "%{TIMESTAMP_ISO8601:oracledate}(\n)?%{SPACE}%{GREEDYDATA:message}"]
55
tag_on_failure => ["_grokparsefailure", "oracle_header_failed"]
66
id => "oracle_header"
77
overwrite => "message"

0 commit comments

Comments
 (0)