# 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 watch_process # specify output tag tag batch_process # filter specific user owned process. if no need to filter, delete this line. lookup_user batchuser # ps command execute interval time interval 10s 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