fluent-plugin-ec2-metadata
fluent-plugin-ec2-metadata copied to clipboard
Fluentd 1.9 support
It looks like this plugin doesn't work with the latest version of fluentd
'fluent-plugin-ec2-metadata' version '0.1.3'
'fluentd' version '1.9.1'
Using the following filter policy:
<filter **>
@type ec2_metadata
<record>
hostname ${tagset_Name}
instance_id ${instance_id}
private_ip ${private_ip}
account_id ${account_id}
ami_id ${image_id}
</record>
</filter>
My logs show all of the above fields as being empty. The keys do exist though so the plugin does seem to do something
Making calls to the following on the instance returns expected results
- http://169.254.169.254/latest/dynamic/instance-identity/document
- http://169.254.169.254/latest/meta-data/local-ipv4
- ...
You might need to set imdsv2 true