# it is a sample to store batch process statistics into elasticsearch to visualize with kibana.
# this guide using following plugins.
# * fluent-plugin-watch-process
# * fluent-plugin-record-reformer
# * fluent-plugin-elasticsearch
type record_reformer
output_tag reformed.${tag}
enable_ruby false
# add hostname key into record
hostname ${hostname}
type elasticsearch
host localhost
port 9200
logstash_format true
logstash_prefix logstash
type_name batch
# write record interval
flush_interval 10sec