takus / fluent-plugin-ec2-metadata

Fluentd output plugin to add Amazon EC2 metadata into messages
Other
44 stars 28 forks source link

Fluentd >= 1.0 throw warnings on configurations #38

Closed taraspos closed 6 years ago

taraspos commented 6 years ago

Hello, I just noticed that fluentd keep complaining about configurations for this module: 2018-03-12 13:36:48 +0000 [warn]: section <record> is not used in <filter ***> of ec2_metadata plugin or parameter 'output_tag' in <filter ***> is not used.

but it is still needed. This is pretty confusing.

Config example:

<filter ***>
  @type ec2_metadata
  metadata_refresh_seconds 300
  output_tag ${tag}
  <record>
    instance_id ${instance_id}
    instance_type ${instance_type}
    private_ip ${private_ip}
  </record>
</filter>
cosmo0920 commented 6 years ago

In filter version of ec2_metadata plugin, you needn't to use output_tag parameter. Filter plugin cannot modify tag in record. And I send a PR to fix [warn]: section <record> is not used in <filter ***> of ec2_metadata plugin warnings.

taraspos commented 6 years ago

@cosmo0920 many thanks. Are you going to release gem v1.1.2?

cosmo0920 commented 6 years ago

v0.1.2 will be released soon by @takus.