Aggregate a maillog for Postfix.
gem build fluent-plugin-maillog.gemspec
gem install fluent-plugin-maillog-0.9.0.gem
| 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 |
<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>
bundle install --path vendor/bundle
rake test
