Hi,
In addition to the usual monitoring use cases, I'm interested in using fluentd in "batch" mode.
This very simple example is almost what I'm looking for:
<source>
@type exec
command uptime
format tsv
keys stdout
tag uptime_tag
time_format %Y-%m-%d %H:%M:%S
</source>
<match uptime_tag>
@type file
format stdout
path /home/scott/fluent/out
flush_at_shutdown true
</match>
The only thing missing is that I want fluentd to exit after the one sample is collected rather than continue indefinitely. Something like:
% td-agent -c myfile.conf --batch
I'm new to fluentd, so my apologies if this is obvious.
Thanks,
Scott