Coder Social home page Coder Social logo

Comments (6)

repeatedly avatar repeatedly commented on July 23, 2024

Is this a entire configuration? Could you paste the log of fluentd/td-agent?

from fluent-plugin-s3.

BDuelz avatar BDuelz commented on July 23, 2024

/var/log/td-agent/td-agent.log

2015-10-13 19:33:17 +0000 [info]: reading config file path="/etc/td-agent/td-agent.conf"
2015-10-13 19:33:17 +0000 [info]: starting fluentd-0.12.12
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.3.0'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-mixin-plaintextformatter' version '0.2.6'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.0.0'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-mongo' version '0.7.10'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '1.4.1'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-s3' version '0.5.9'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-scribe' version '0.10.14'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-td' version '0.10.27'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-td-monitoring' version '0.2.1'
2015-10-13 19:33:17 +0000 [info]: gem 'fluent-plugin-webhdfs' version '0.4.1'
2015-10-13 19:33:17 +0000 [info]: gem 'fluentd' version '0.12.12'
2015-10-13 19:33:18 +0000 [info]: adding match pattern="web__error" type="copy"
2015-10-13 19:33:18 +0000 [error]: config error file="/etc/td-agent/td-agent.conf" error="Other 's3' plugin already use same buffer_path: type = s3, buffer_path = /tmp/fluent-plugin-s3"
2015-10-13 19:33:18 +0000 [info]: process finished code=256
2015-10-13 19:33:18 +0000 [warn]: process died within 1 second. exit.
2015-10-13 19:33:35 +0000 [error]: dry run failed: Other 's3' plugin already use same buffer_path: type = s3, buffer_path = /tmp/fluent-plugin-s3

from fluent-plugin-s3.

BDuelz avatar BDuelz commented on July 23, 2024

The error itself is raised in fluentd

from fluent-plugin-s3.

BDuelz avatar BDuelz commented on July 23, 2024

Also, I want to say, if I don't use the copy output plugin, things work as expected:

<match web__error>
  type s3
  aws_key_id ACC_KEY
  aws_sec_key SEC_KEY
  s3_bucket log-bucket
  path web__error/
  buffer_path /tmp/fluent-plugin-s3
  s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
  time_slice_format %Y-%m-%d/%H
  flush_interval 15s
  utc
</match>

However, I need to be able to send logs to multiple locations.

from fluent-plugin-s3.

repeatedly avatar repeatedly commented on July 23, 2024

I tested s3 and copy and it worked. In addition, many users use s3 and copy so this combination should not be a problem.

Above configuration is your entire configuration?
If you use same buffer_path configuration across <match>, this error happens. Error configuration example is below.

<source>
  type forward
</source>

<match s3.**>
    type s3

    aws_key_id "#{ENV['AWS_ACCESS_KEY_ID']}"
    aws_sec_key "#{ENV['AWS_SECRET_ACCESS_KEY']}"
    s3_bucket fluent-plugin-s3
    path test1/
    buffer_path /tmp/fluent-plugin-s3
    flush_at_shutdown true
    utc
</match>

<match s3.**>
    type s3

    aws_key_id "#{ENV['AWS_ACCESS_KEY_ID']}"
    aws_sec_key "#{ENV['AWS_SECRET_ACCESS_KEY']}"
    s3_bucket fluent-plugin-s3
    path test2/
    buffer_path /tmp/fluent-plugin-s3
    flush_at_shutdown true
    utc
</match>

from fluent-plugin-s3.

BDuelz avatar BDuelz commented on July 23, 2024

You're totally right. I was using the same buffer_path in multiple config files. It works now.

Sorry to waste your time.

Cheers

from fluent-plugin-s3.

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.