example1.conf in fluent-plugin-watch-process-0.0.3 vs example1.conf in fluent-plugin-watch-process-0.1.0
- old
+ new
@@ -4,33 +4,31 @@
# * fluent-plugin-watch-process
# * fluent-plugin-record-reformer
# * fluent-plugin-elasticsearch
<source>
- type watch_process
+ @type watch_process
# specify output tag
- tag batch_process
+ 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
</source>
-<match batch_process>
- type record_reformer
- output_tag reformed.${tag}
- enable_ruby false
+# add hostname key into record
+<filter batch.process>
+ @type record_transformer
<record>
- # add hostname key into record
- hostname ${hostname}
+ hostname ${hostname}
</record>
-</match>
+</filter>
-<match reformed.*>
- type elasticsearch
+<match batch.*>
+ @type elasticsearch
host localhost
port 9200
logstash_format true
logstash_prefix logstash
type_name batch