LoginSignup
0
1

More than 5 years have passed since last update.

[td-agent] supervisordログをパースする際の正規表現

Posted at

インプット

2007-09-08 14:43:22,961 INFO RPC interface 'supervisor' initialized
2007-09-08 14:43:22,961 CRIT Running without any HTTP authentication checking
2007-09-08 14:43:22,962 INFO supervisord started with pid 27347

設定ファイル例

key: level,message のレコードがアウトプットされる。

### supervisord ###
<source>
  type        tail
  tag         supervisord
  format      /^(?<time>[^\]]*) (?<level>[A-Z]{4}) (?<message>.*)$/
  time_format %Y-%m-%d %H:%M:%S,%L
  path        /var/log/supervisor/supervisord.log
  pos_file    /var/log/td-agent/buffer/supervisord.pos
</source>

参考

td-agentの正規表現デバッグに便利なサイト

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1