Hi,
I’m using Telegraf and its tail plugin to collect several logfiles.
Everything is send with data_format = “json” ( I can’t change this way for project reasons)
For classical logfile, I have no problem using this configuration:
[[inputs.tail]]
files = ["/my/log/path/example.log"]
name_override = "example_index"
from_beginning = true
watch_method = "inotify"
data_format = "grok"
grok_patterns = [""%{GROK1}"]
grok_custom_pattern_files = ["/etc/telegraf/grok/grok1.grok"]
However, This works only for my logfile having one line per log.
When it comes to multiline logfile, telegraf is not able to identify all the content of the log.
So I wish i could use [inputs.tail.multiline] or just add those parameters to my previous example:
pattern = "^%{TIMESTAMP_ISO8601:date}"
match_which_line = "previous"
invert_match = false
However it seems this method cant take files input as argument !
Is there really no solution for this ?
Thanks !