We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I downloaded the latest logstash, but got this error:
[2023-10-09T15:46:32,653][ERROR][logstash.javapipeline ][main] Pipeline error {:pipeline_id=>"main", :exception=>#<NoMethodError: undefined method `dig' for #<String:0x2c382dc4>>,
Logstash information:
Logstash: logstash-8.10.2-darwin-aarch64 OS: macOS 14 Sonoma (M1 pro)
run logstash ./bin/logstash -f config/myquery.conf
myquery.conf
input { elasticsearch { hosts => "https://kibanaxxx.com" user => "username" password => "password" index => "data-*" query => ' { "query": {...} } ' } } output { csv { fields => ["message"] path => "~/Downloads/%{type}.%{+yyyy.MM.dd.HH}.log" } }
Provide logs (if relevant):
[2023-10-09T15:46:29,484][INFO ][logstash.runner ] Log4j configuration path used is: /Users/foobar/Workspace/tools/logstash/config/log4j2.properties [2023-10-09T15:46:29,487][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"8.10.2", "jruby.version"=>"jruby 9.4.2.0 (3.1.0) 2023-03-08 90d2913fda OpenJDK 64-Bit Server VM 17.0.8+7 on 17.0.8+7 +indy +jit [arm64-darwin]"} [2023-10-09T15:46:29,488][INFO ][logstash.runner ] JVM bootstrap flags: [-Xms1g, -Xmx1g, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djruby.compile.invokedynamic=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true, -Djruby.regexp.interruptible=true, -Djdk.io.File.enableADS=true, --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED, --add-opens=java.base/java.security=ALL-UNNAMED, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.nio.channels=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, --add-opens=java.management/sun.management=ALL-UNNAMED] [2023-10-09T15:46:29,505][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2023-10-09T15:46:29,733][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false} [2023-10-09T15:46:29,932][INFO ][org.reflections.Reflections] Reflections took 41 ms to scan 1 urls, producing 132 keys and 464 values [2023-10-09T15:46:30,639][INFO ][logstash.javapipeline ] Pipeline `main` is configured with `pipeline.ecs_compatibility: v8` setting. All plugins in this pipeline will default to `ecs_compatibility => v8` unless explicitly configured otherwise. [2023-10-09T15:46:30,648][INFO ][logstash.javapipeline ][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>10, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>1250, "pipeline.sources"=>["/Users/foobar/Workspace/tools/logstash/config/myquery.conf"], :thread=>"#<Thread:0x3068c1c3 /Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:134 run>"} [2023-10-09T15:46:30,902][INFO ][logstash.javapipeline ][main] Pipeline Java execution initialization time {"seconds"=>0.25} [2023-10-09T15:46:32,653][ERROR][logstash.javapipeline ][main] Pipeline error {:pipeline_id=>"main", :exception=>#<NoMethodError: undefined method `dig' for #<String:0x2c382dc4>>, :backtrace=>["/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/elasticsearch-7.17.7/lib/elasticsearch.rb:66:in `verify_elasticsearch'", "/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/elasticsearch-7.17.7/lib/elasticsearch.rb:40:in `method_missing'", "/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/elasticsearch-api-7.17.7/lib/elasticsearch/api/actions/ping.rb:38:in `ping'", "/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/logstash-input-elasticsearch-4.17.2/lib/logstash/inputs/elasticsearch.rb:666:in `test_connection!'", "/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/logstash-input-elasticsearch-4.17.2/lib/logstash/inputs/elasticsearch.rb:314:in `register'", "/Users/foobar/Workspace/tools/logstash-8.10.2/vendor/bundle/jruby/3.1.0/gems/logstash-mixin-ecs_compatibility_support-1.3.0-java/lib/logstash/plugin_mixins/ecs_compatibility_support/target_check.rb:48:in `register'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:237:in `block in register_plugins'", "org/jruby/RubyArray.java:1987:in `each'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:236:in `register_plugins'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:395:in `start_inputs'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:320:in `start_workers'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:194:in `run'", "/Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:146:in `block in start'"], "pipeline.sources"=>["/Users/foobar/Workspace/tools/logstash/config/myquery.conf"], :thread=>"#<Thread:0x3068c1c3 /Users/foobar/Workspace/tools/logstash-8.10.2/logstash-core/lib/logstash/java_pipeline.rb:134 run>"} [2023-10-09T15:46:32,656][INFO ][logstash.javapipeline ][main] Pipeline terminated {"pipeline.id"=>"main"} [2023-10-09T15:46:32,662][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil} [2023-10-09T15:46:32,673][INFO ][logstash.runner ] Logstash shut down. [2023-10-09T15:46:32,682][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit org.jruby.exceptions.SystemExit: (SystemExit) exit at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:795) ~[jruby.jar:?] at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:758) ~[jruby.jar:?] at Users.foobar.Workspace.tools.logstash.lib.bootstrap.environment.<main>(/Users/foobar/Workspace/tools/logstash/lib/bootstrap/environment.rb:90) ~[?:?]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I downloaded the latest logstash, but got this error:
Logstash information:
Logstash: logstash-8.10.2-darwin-aarch64
OS: macOS 14 Sonoma (M1 pro)
run logstash
./bin/logstash -f config/myquery.conf
myquery.conf
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: