fluentd @timestamp を挿入

http://qiita.com/joe_hrmn/items/a86de1d557506f0ef065

 

# td-agent-gem install fluent-plugin-record-reformer

 

td-agent.conf

-------------------------------------------------------
<match oreno.access>
type record_reformer
enable_ruby true
tag oreno.access.timestamp
<record>
@timestamp ${time.strftime('%Y-%m-%dT%H:%M:%S%z')}
</record>
</match>
-------------------------------------------------------