Giter Club home page Giter Club logo

Comments (6)

cosmo0920 avatar cosmo0920 commented on September 12, 2024

Your configuration aims to use fluent-plugin-s3 not fluent-plugin-ec2-metadata.
fluent-plugin-s3 does not have {instance_id} placeholder and fluent-plugin-ec2-metadata cannot substitute {instance_id} placeholder its outside.

from fluent-plugin-ec2-metadata.

et304383 avatar et304383 commented on September 12, 2024

I'm confused - what is the point of your plugin then? Can it not be used in a pipeline?

from fluent-plugin-ec2-metadata.

cosmo0920 avatar cosmo0920 commented on September 12, 2024
<match foo.**>
  @type ec2_metadata

  aws_key_id  YOUR_AWS_KEY_ID
  aws_sec_key YOUR_AWS_SECRET/KEY

  metadata_refresh_seconds 300 # Optional, default 300 seconds

  output_tag ${instance_id}.${tag}
  <record>
    # ...
  </record>
</match>

can substitute ${instance_id} because this match section aims to use ec2_metadata plugin.
But your configuration is not for ec2_metadata configuration.

Fluentd plugin cannot recognize other plugin settings in the pipeline.

from fluent-plugin-ec2-metadata.

et304383 avatar et304383 commented on September 12, 2024

It seems the best I could do is pass through your plugin and add an instance ID field to the record, correct?

from fluent-plugin-ec2-metadata.

cosmo0920 avatar cosmo0920 commented on September 12, 2024

It seems the best I could do is pass through your plugin and add an instance ID field to the record, correct?

It depends on your Fluentd configuration.
I have no enough your configuration information for advising.
Thanks.

from fluent-plugin-ec2-metadata.

bmihaescu avatar bmihaescu commented on September 12, 2024

@et304383 did you manage to pass the instanceID to S3 eventually ?
I know it was a long time ago :)

from fluent-plugin-ec2-metadata.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.