Fluentular

a Fluentd regular expression editor

Configuration

Copy and paste to fluent.conf or td-agent.conf

<source>
  type tail
  path /var/log/foo/bar.log
  pos_file /var/log/td-agent/foo-bar.log.pos
  tag foo.bar
  format /^(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3})Z (?<log_level>\w+) \[(?<module>\w+)\] (?<message>.*)/
  time_format %Y-%m-%d %H:%M:%S.%L
</source>

Data Inspector

Attributes

Key Value
time 2022/12/06 03:26:14 +0000

Records

Key Value
log_level info
module MyApplication
message Starting logging - (MyApplication.java:100)