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

Fluentd 1.9 support

Open ben-bourdin451 opened this issue 4 years ago • 1 comments

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
  • ...

ben-bourdin451 avatar Feb 12 '21 17:02 ben-bourdin451

You might need to set imdsv2 true

slw07g avatar May 13 '22 11:05 slw07g