# 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
# add hostname key into record
@type record_transformer
hostname ${hostname}
@type elasticsearch
host localhost
port 9200
logstash_format true
logstash_prefix logstash
type_name batch
# write record interval
flush_interval 10sec