I have the following configured for input. My situation that I have a mix of different file formats that I need to process.
Some files are the generic type of file, that have the same start pattern for multiline, (a date) however I am running into the problem where I have some files that are just purely json format, and seem to be getting caught up in the multiline. Am just quickly wondering if here is a workaround, or the right way to do it. Don't really want to be running different ports if I can avoid it.
Thanks in advance.
input {
beats {
port => 4445
codec => multiline {
pattern => "^\d+"
negate => true
what => "previous"
}
}
}