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 /(?<path>(?<test_id>test_id=[0-9]+)&(?<param>param=.+))/
</source>

Data Inspector

Attributes

Key Value
time 2019/11/14 19:55:35 +0000

Records

Key Value
path test_id=111&param=hoge
test_id test_id=111
param param=hoge