treasure-data / chef-td-agent

Chef Cookbook for td-agent (Treasure Agent or Fluentd)
https://supermarket.chef.io/cookbooks/td-agent
Apache License 2.0
127 stars 121 forks source link

add filter LWRP #74

Closed scalp42 closed 8 years ago

scalp42 commented 8 years ago

cc @yyuu

Result:

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>
yyuu commented 8 years ago

:+1:

Thanks!