Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin doesn't work with Elasticsearch on cloud cloud_id & api_key settings. #190

Open
mashhurs opened this issue Apr 28, 2023 · 0 comments

Comments

@mashhurs
Copy link
Contributor

Logstash information:

Please include the following information:

  1. Logstash version (e.g. bin/logstash --version): 8.7.0
  2. Logstash installation source (e.g. built from source, with a package manager: DEB/RPM, expanded from tar or zip archive, docker)
  3. How is Logstash being run (e.g. as a service/service manager: systemd, upstart, etc. Via command line, docker/kubernetes)
  4. How was the Logstash Plugin installed
  • embedded logstash-input-elasticsearch, v4.16.0
    JVM (e.g. java -version): bundled JDK

If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:

  1. JVM version (java -version)
  2. JVM installation source (e.g. from the Operating System's package manager, from source, etc).
  3. Value of the JAVA_HOME environment variable if set.

OS version (uname -a if on a Unix-like system):

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Please include a minimal but complete recreation of the problem,
including (e.g.) pipeline definition(s), settings, locale, etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.

Provide logs (if relevant):

[2023-04-28T16:35:00,482][ERROR][logstash.javapipeline    ][main] Pipeline error {:pipeline_id=>"main", :exception=>#
<Elasticsearch::Transport::Transport::Errors::Unauthorized: [401] >, :backtrace=>
["/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-transport-
7.17.7/lib/elasticsearch/transport/transport/base.rb:218:in `__raise_transport_error'", 
"/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-transport-
7.17.7/lib/elasticsearch/transport/transport/base.rb:341:in `perform_request'", 
"/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-transport-
7.17.7/lib/elasticsearch/transport/transport/http/manticore.rb:91:in `perform_request'", 
"/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-transport-7.17.7/lib/elasticsearch/transport/client.rb:197:in 
`perform_request'", "/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-7.17.7/lib/elasticsearch.rb:41:in 
`method_missing'", "/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/elasticsearch-api-
7.17.7/lib/elasticsearch/api/actions/ping.rb:38:in `ping'", "/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-
elasticsearch-4.16.0/lib/logstash/inputs/elasticsearch.rb:541:in `test_connection!'", 
"/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-input-elasticsearch-4.16.0/lib/logstash/inputs/elasticsearch.rb:261:in 
`register'", "/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/logstash-mixin-ecs_compatibility_support-1.3.0-
java/lib/logstash/plugin_mixins/ecs_compatibility_support/target_check.rb:48:in `register'", "/usr/share/logstash/logstash-
core/lib/logstash/java_pipeline.rb:237:in `block in register_plugins'", "org/jruby/RubyArray.java:1865:in `each'", 
"/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:236:in `register_plugins'", "/usr/share/logstash/logstash-
core/lib/logstash/java_pipeline.rb:395:in `start_inputs'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:320:in 
`start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:194:in `run'", "/usr/share/logstash/logstash-
core/lib/logstash/java_pipeline.rb:146:in `block in start'"], "pipeline.sources"=>["config string"], :thread=>"#
<Thread:0x6c74160e@/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/reload.rb:71 run>"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant