Git Product home page Git Product logo

Comments (4)

jayslife avatar jayslife commented on August 17, 2024

Hello,

Its been awhile since i've worked with this plug-in and I remember having a similar issue. Take a look at the copy plugin https://docs.fluentd.org/output/copy. This is mostly likely what your looking for.

Jason

from fluent-plugin-aws-elasticsearch-service.

cosmo0920 avatar cosmo0920 commented on August 17, 2024

Yeah, @jayslife answer is right.
AWS ES Output plugin should emit nothing.
Instead, we can reprecate Fluentd events with copy plugin.

from fluent-plugin-aws-elasticsearch-service.

nareshnani529 avatar nareshnani529 commented on August 17, 2024

Thanks for the reply @cosmo0920 @jayslife

I tried with Copy plugin but not working. Could you give us an example here that will be great!

Config that I tried with :

<source>
        @type forward
        @id input_forward
</source>

<filter *.**>
  @type record_transformer
 <record>
    container_id ${record["container_id"]}
  </record>
</filter>

<match *.**>
        type aws-elasticsearch-service
        logstash_format true
        logstash_prefix ${tag[0]}
        include_tag_key true
        tag_key "Application_name"
        flush_interval 5s

    <buffer>
      flush_at_shutdown true
      flush_mode immediate
      flush_thread_count 8
      flush_thread_interval 1
      flush_thread_burst_interval 1
      retry_forever true
      retry_type exponential_backoff
    </buffer>

        <endpoint>
                url https://vpc-xxxx.us-east-1.es.amazonaws.com
                region us-east-1
                access_key_id "xxxx"
                secret_access_key "xxxx"
        </endpoint>
</match>

<match *.**>
type copy
      <store>
        type s3
        aws_key_id "xxxxx"
        aws_sec_key "xxxx"
        s3_bucket "logstream-testbucket"
        s3_region "us-east-1"
        path logs/
        buffer_path /var/log/td-agent/buffer/s3
        time_slice_format %Y-%m-%d/%H
        time_slice_wait 10m
        </store>
        </match>

from fluent-plugin-aws-elasticsearch-service.

cosmo0920 avatar cosmo0920 commented on August 17, 2024

This issue should be continued to #58.
This issue should be closing.

from fluent-plugin-aws-elasticsearch-service.

Related Issues (20)

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.