fluent-plugin-ec2-metadata icon indicating copy to clipboard operation
fluent-plugin-ec2-metadata copied to clipboard

tagset misdetection -unknown placeholder - for not simple values

Open LDevOps opened this issue 5 years ago • 0 comments

For a record that does not contain a simple value (i.e. starting with the tagset phrase), the plugin returns no such attribute. Example of configuration fragment:

   <record>
         my_json {"hostname":"${tagset_name}","instance_id":"${instance_id}","instance_type":"${instance_type}"}
    </record>

So they want to get JSON format for the record, it is not possible to use tagset_ (the others like instance_id - not tag - work).

Warn in log:

[warn]: #0 ec2-metadata: unknown placeholder ${tagset_name} found in a tag {...}

I've made a simple proposal to change to #50

LDevOps avatar Feb 26 '20 12:02 LDevOps