Skip to content

ot-nemoto/fluent-plugin-maillog

Repository files navigation

Fluent::Plugin::Maillog

Build Status Coverage Status Code Climate

Aggregate a maillog for Postfix.

Installation

gem build fluent-plugin-maillog.gemspec
gem install fluent-plugin-maillog-0.9.0.gem

Config

param description type required default
tag レコードに付与するtag string yes nil
cache_dump_file キャッシュ中のmaillogを停止時にダンプするファイル
指定がない場合はキャッシュデータはダンプしない
string no nil
clean_interval_time キャッシュをcleanする間隔 integer no 60 (sec)
lifetime キャッシュ上の生存期間 integer no 3600 (sec)
revise_time 現時刻より time が未来になる場合、日付を1年前に変更するかどうか
これは maillog に year が含まれないことへの対応
bool no true
field 参照する field を指定 string no message

Usage

<source>
  type tail
  format /(?<message>.*)/
  path /var/log/maillog
  tag next
</source>

<match next>
  type maillog
  tag next.next
</match>

<match next.next>
  type stdout
</match>

Development

bundle install --path vendor/bundle

Testing

rake test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages