What is a good <source> format regex for this string?
05.02.2018 15:24:21.999|type|Element1|Element2|message
<source>
format RegEX?
path /home/filepath/*.log
pos_file /var/cache/fluentd/file.pos
tag mytag
@type tail
</source>
What is a good <source> format regex for this string?
05.02.2018 15:24:21.999|type|Element1|Element2|message
<source>
format RegEX?
path /home/filepath/*.log
pos_file /var/cache/fluentd/file.pos
tag mytag
@type tail
</source>
Here is the solution for fluentd
format /^(?<time>[^ ]* [^ ]*)\|(?<type>.*)\|(?<Component1>.*)\|(?<SubComponent2>.*)\|(?<message>.*)/
time_format %d.%m.%Y %H:%M:%S