Comments (6)
Is this a entire configuration? Could you paste the log of fluentd/td-agent?
from fluent-plugin-s3.
/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.
The error itself is raised in fluentd
from fluent-plugin-s3.
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.
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.
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)
- Add support for AWS IAM Roles Anywhere HOT 3
- Add parameter to set HTTP "Accept-Encoding" header HOT 2
- Allow to ignore events that point to a file on s3 of size 0 HOT 3
- Only last event of the windows logs is sent to S3 with redundant entries in the file
- Add debug log after s3 put HOT 1
- gem dependency conflict HOT 2
- S3 output filling up /tmp HOT 2
- Invalid Credential Will Crash the Fluentd Worker HOT 1
- When match_regexp not matched, message is discarded HOT 1
- s3 input is not separating log entries HOT 2
- td-agent is throwing error error_class=Fluent::ConfigError error="'columnify' utility must be in PATH for -h compression" HOT 2
- td-agent is able to run columnify -h yet td-agent throwing err
- fluent-plugin-s3 doesn't seem to work with AWS short-term credentials
- Plugin not working on basic implementation HOT 1
- enable multiline parsing
- instance_profile_credentials are not allowing uploads to my S3 bucket
- Append file support HOT 3
- s3_object_key_format without index overwrites (not append) log files HOT 10
- Too many open files HOT 1
- SSE-C Encryption
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-s3.