Skip to content

yudai09/fluent-plugin-postfix

Repository files navigation

Fluent::Plugin::Postfix

Fluentd plugin to parse and merge postfix syslog. This plugin is a clone of fluent-plugin-sendmail written by muddydixon.

Configuration

<source>
  type postfix
  path /var/log/maillog
  pos_file /var/log/td-agent/mail.log.pos
  tag postfixlog
</source>

This plugin emit record like below:

2014-08-19T09:25:10Z    postfixlog
{
	"client":"localhost[127.0.0.1]",
	"from":"<[email protected]>",
	"authid":"user",
	"to":[
		{
		"recipient":"<[email protected]>",
		"relay":"gmail-smtp-in.l.google.com[74.125.23.27]:25",
		"status":["sent","250 2.0.0 OK 1408440312 ar2si14557666pbc.249 - gsmtp"]
		},
		{
		"recipient":"<[email protected]>",
		"relay":"none",
		"status":["deferred","connect to example.com[93.184.216.119]:25: Connection timed out"]
		}
	]
}

TODO

Write test code (This plugin is worked on CentOS release 6.5, fluentd 0.10.50, and Postfix 2.6.6.)

ChangeLog

See CHANGELOG.md for details.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2014 muddydixon. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages