--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016-09-02 02:31:27 +0530 [info]: using configuration file: <ROOT>
<source>
@type tail
path /home/test/td-agent/td.%Y%m%d.log
pos_file /var/log/td-agent/td.pos
tag json.*
format json
read_from_head true
</source>
<filter json.**>
@type record_transformer
renew_record true
enable_ruby true
<record>
new_field ${record}
logfile ${tag.partition("td-agent.").last}
</record>
</filter>
<match json.**>
@type stdout
</match>
</ROOT>
2016-09-02 02:31:27 +0530 [info]: following tail of /home/test/td-agent/td.20160902.log
2016-09-02 02:31:27 +0530 json.home.test.td-agent.td.20160902.log: {"new_field":"","logfile":"td.20160902.log"}
$cat /home/test/td-agent/td.20160902.log
{"name":"abc","hostname":"xyz","msg":"Searching..","time":"2016-04-12T16:16:33.202Z"}
Any idea if anything changed in latest distribution? I am not sure which version I had used last time.
Thanks Masahiro, it worked!