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

Feature - support section arguments #131

Closed simonasr closed 1 year ago

simonasr commented 5 years ago

Hi ;) These changes will let you configure section parameters like <buffer tag, key1, key2> (solves #118) For example: you can use this code to configure ElasticSearch output:

td_agent_match 'output_es' do
  type 'elasticsearch'
  tag 'logs.**'
  parameters(
    hosts: 'localhost:9200',
    logstash_prefix: 'fluent-${key1}.${key2}',
    'buffer tag, key1, key2' => {
      timekey: '1d'
    }
  )
end

This code will result configuration which will route logs to different indices based on specific keys in message.

<match logs.**>
  @type elasticsearch
  index_name elastic.${key1}.${key2}
  <buffer tag, key1, key2>
    timekey 1d
  </buffer>
</match>

More information related to section parameters:

simonasr commented 5 years ago

@yyuu - any chance this PR gets reviewed? : 🙏 😉

scalp42 commented 4 years ago

@simonasr would it fix https://github.com/treasure-data/chef-td-agent/issues/142 as well?

@yyuu any chance to get this reviewed and merged? 👍

evandam commented 4 years ago

Hi @yyuu and @simonasr, any updates on getting this merged? It would be a big help for us!

simonasr commented 4 years ago

@simonasr would it fix #142 as well?

@scalp42 it should.

But this repository looks abandoned 😢

scalp42 commented 3 years ago

@yyuu should we fork it?

marijus-ravickas commented 3 years ago

Howdy guys, any news on this PR merge?