I have a large XML file that I'm trying to parse. But when I use max_lines
I somehow lose the @timestamp
field. Is there a way to use both?
input {
file {
path => [ "C:/temp/TEST/*.xml" ]
start_position => "beginning"
codec => multiline {
pattern => "^ZsExDrC"
what => "previous"
negate => true
auto_flush_interval => 2
# Problem: When 'max_line' is applied, @timestamp (and other fields) are stripped
max_lines => 15000
}
}
}