fluentd.conf
<source>
@type tail
path /tmp/log-test.log #...or where you placed your Apache access log
pos_file /tmp/log-test.log.pos # This is where you record file position
tag foobar.json #fluentd tag!
format json # one JSON per line
time_key time_field # optional; default = time
</source>
<match **>
@type stdout
</match>
create log file
touch /tmp/log-test.log
run
td-agent -c ./config.conf
write data to file
echo '{"time":1362020400,"host":"192.168.0.1","size":777,"method":"PUT"}' >> /tmp/log-test.log