SumoLogic / fluentd-output-sumologic

Fluentd output plugin to deliver logs or metrics to Sumo Logic.
https://rubygems.org/gems/fluent-plugin-sumologic_output
Apache License 2.0
29 stars 28 forks source link

Allow to add custom fields via config #56

Closed sumo-drosiek closed 4 years ago

sumo-drosiek commented 4 years ago

Expose custom_fields configuration parameter, which is going to be merged with record's fields.

Example:

record[:fields] = "foo=bar"
custom_fields = "lorem=ipsum"

is going to generate

headers['X-Sumo-Fields']='foo=bar,lorem=ipsum'
sumo-drosiek commented 4 years ago

@samjsong Could you take care about reviewers? I don't have permissions for this repo :) We also need add support in the k8s-collection, I will take care about it when this PR will be resolved