README.md in fluent-plugin-watch-process-0.0.3 vs README.md in fluent-plugin-watch-process-0.1.0
- old
+ new
@@ -23,28 +23,31 @@
```
# for fluentd
$ gem install fluent-plugin-watch-process
# for td-agent
-$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-watch-process
+$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-watch-process -v 0.1.0
+
+# for td-agent2 (recommend)
+$ sudo td-agent-gem install fluent-plugin-watch-process -v 0.1.0
```
## Configuration
### Sample
It is a quick sample to output log to `/var/log/td-agent/td-agent.log` with td-agent.
`````
<source>
- type watch_process
+ @type watch_process
tag debug.batch.${hostname} # Required
lookup_user batchuser # Optional
interval 10s # Optional (default: 5s)
</source>
<match debug.**>
- type stdout
+ @type stdout
</match>
`````
After restarting td-agent, it will output process information to the td-agent.log like below.