td_agent_filter 'test_filter' do
type 'record_transformer'
tag 'webserver.*'
params(
record: [ { host_param: %q|"#{Socket.gethostname}"| } ]
)
end
root@2f63c0354550:/etc/td-agent/conf.d# cat test_filter.conf
# This file was generated by Chef for 2f63c0354550
# Do NOT modify this file by hand!
<filter webserver.*>
type record_transformer
<record>
host_param "#{Socket.gethostname}"
</record>
</filter>
cc @yyuu
Result: