Fluentd Parser Plugin to add choice for format
option for elasticsearch logs with in_tail
plugin.
Installation
install with gem
or fluent-gem
command as:
# for fluentd
$ gem install fluent-parser-elasticsearch
# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-parser-elasticsearch
Usage
After installing this plugin, it has got ready to use this 3rd party format like below.
<source>
type tail
tag elasticsearch.general_log
format elasticsearch
path /var/log/elasticsearch/elasticsearch.log
pos_file /var/log/td-agent/elasticsearch.log.pos
</source>
<match elasticsearch.*>
type stdout
</match>
TODO
Pull requests are very welcome!!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright
Copyright (c) 2014- Kentaro Yoshida (@yoshi_ken)
License
Apache License, Version 2.0