Giter Club home page Giter Club logo

fluent-plugin-logdna's People

Contributors

andrewchubatiuk avatar beefcheeks avatar edwin-lai avatar gjanco avatar leeliu avatar lyhuang avatar matt-march avatar mdeltito avatar mrjohnnychang avatar nvanheuverzwijn avatar okkez avatar respectus avatar rram avatar tapas-saha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fluent-plugin-logdna's Issues

provide Response Code and Message if Server Error on Write

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:

raise 'Encountered server error' if response.code >= 400

Add a new fluentd configuration parameter to let user specify an alternate endpoint

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.

http proxy support

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.

Update fluentd logdna plugin gem

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?

Error: Unable to activate http-2.2.2, because http_parser.rb-0.8.0 conflicts with http_parser.rb (~> 0.6.0)

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.

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.