logdna / fluent-plugin-logdna Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Current Behavior:
When performing a write
operation in which an error of >= 400
raises the ambiguous error 'Encountered server error'
.
Desired Behavior:
The desired behavior would be to provide the actual response.code
and, if available, response.message
or similar.
Line/Modification Requested:
Currently in master, in file fluent-plugin-logdna/lib/fluent/plugin/out_logdna.rb, line 44 reads raise 'Encountered server error' if response.code >= 400
. Link:
As of now, the LogDNA plugin for fluentd
, does not provide an option to specify an alternate endpoint for pushing the logs. The URL is hardcoded with /logs/ingest
(see here), resulting in the logs always being pushed to the only one specific endpoint.
A new configuration parameter, within fleuntd
's configuration file, is needed to be introduced so that the user can override the default, i.e. /logs/ingest
. This could be useful in many situations wherein pushing to the mentioned default endpoint may not be desired. This would also enable the LogDNA development team to expose many other alternate endpoints in the future, for whatever reasons; and the user can start consuming those according to their needs by overriding the default one.
It appears this plugin does not support forward proxies.
Being able to manually specify a proxy host as a configuration option and consume standard proxy environment variables if set, would be greatly appreciated.
The latetst version(0.1.7) of fluentd logdna plugin was updated more than a year ago(April 20, 2017) but last updates were done 2 months ago, can you please keep fluentd logdna plugin gem up-to-date?
I have seen the socket getting stuck frequently these days. I notice that there is no timeout set on the persistent http call.
The httprb library doesn't set an implicit timeout and need to be set before sending requests.
Reference: https://github.com/httprb/http/wiki/Timeouts
Hi,
My environment is: td-agent 4.4.1 fluentd 1.15.2 (c32842297ed2c306f1b841a8f6e55bdd0f1cb27f)
My fluentd config is:
<match **>
@type logdna
api_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hostname test
tags web,dev
</match>
After I started the fluentd, fluentd crashed immediately.
Here is the fluentd log:
2023-02-02 19:10:23 -0800 [info]: #0 starting fluentd worker pid=140851 ppid=140846 worker=0
2023-02-02 19:10:23 -0800 [error]: #0 unexpected error error_class=Gem::ConflictError error="Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)"
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems.rb:217:in `rescue in try_activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems.rb:210:in `try_activate'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluent-plugin-logdna-0.4.0/lib/fluent/plugin/out_logdna.rb:46:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/compat/call_super_mixin.rb:42:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:203:in `block in start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:192:in `block (2 levels) in lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `each'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:191:in `block in lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `each'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:178:in `lifecycle'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/root_agent.rb:202:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:248:in `start'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/engine.rb:147:in `run'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:764:in `block in run_worker'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:1037:in `main_process'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/supervisor.rb:755:in `run_worker'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/lib/fluent/command/fluentd.rb:381:in `<top (required)>'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/lib/ruby/gems/2.7.0/gems/fluentd-1.15.2/bin/fluentd:15:in `<top (required)>'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `load'
2023-02-02 19:10:23 -0800 [error]: #0 /opt/td-agent/bin/fluentd:23:in `<top (required)>'
2023-02-02 19:10:23 -0800 [error]: #0 /usr/sbin/td-agent:15:in `load'
2023-02-02 19:10:23 -0800 [error]: #0 /usr/sbin/td-agent:15:in `<main>'
2023-02-02 19:10:23 -0800 [error]: #0 Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0) path=nil error_class=Gem::ConflictError error="Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)"
2023-02-02 19:10:23 -0800 [error]: #0 suppressed same stacktrace
2023-02-02 19:10:23 -0800 [error]: Worker 0 finished unexpectedly with status 2
2023-02-02 19:10:23 -0800 [info]: Received graceful stop
Am I the only one who got this error? I'm using a couple other plugins, is it a conflict? Thanks.
Log Ingest API has env parameter which is not supported by fluentd logdna plugin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.