You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
JVM version (java -version)
JVM installation source (e.g. from the Operating System's package manager, from source, etc).
Value of the LS_JAVA_HOME environment variable if set.
Using bundled JDK: /Users/octo/Microservice/ELKLogs/logstash-8.10.3/jdk.app/Contents/Home
OS version (uname -a if on a Unix-like system):
Darwin macos 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64
macOS Sonoma 14.0
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.
1. run ELK success
2. close all terminal directly, not by ctrl+c
3. rerun and it just happened
Provide logs (if relevant):
➜ bin ./logstash -f ../logstash-8.10.3/config/logstash.conf
Using bundled JDK: /Users/octo/Microservice/ELKLogs/logstash-8.10.3/jdk.app/Contents/Home
Sending Logstash logs to /Users/octo/Microservice/ELKLogs/logstash-8.10.3/logs which is now configured via log4j2.properties
[2023-10-15T13:01:12,621][INFO ][logstash.runner ] Log4j configuration path used is: /Users/octo/Microservice/ELKLogs/logstash-8.10.3/config/log4j2.properties
[2023-10-15T13:01:12,632][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"8.10.3", "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 [x86_64-darwin]"}
[2023-10-15T13:01:12,637][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-15T13:01:12,706][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2023-10-15T13:01:13,786][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9601, :ssl_enabled=>false}
[2023-10-15T13:01:14,295][INFO ][org.reflections.Reflections] Reflections took 218 ms to scan 1 urls, producing 132 keys and 464 values
[2023-10-15T13:01:14,747][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-15T13:01:14,767][INFO ][logstash.outputs.elasticsearch][main] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["https://localhost:9200"]}
[2023-10-15T13:01:14,964][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://elastic:xxxxxx@localhost:9200/]}}
[2023-10-15T13:01:15,348][WARN ][logstash.outputs.elasticsearch][main] Restored connection to ES instance {:url=>"https://elastic:xxxxxx@localhost:9200/"}
[2023-10-15T13:01:15,360][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch version determined (8.10.3) {:es_version=>8}
[2023-10-15T13:01:15,361][WARN ][logstash.outputs.elasticsearch][main] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>8}
[2023-10-15T13:01:15,472][INFO ][logstash.outputs.elasticsearch][main] Not eligible for data streams because config contains one or more settings that are not compatible with data streams: {"index"=>"elklogtest-%{+yyyy.MM.dd}"}
[2023-10-15T13:01:15,472][INFO ][logstash.outputs.elasticsearch][main] Data streams auto configuration (`data_stream => auto` or unset) resolved to `false`
[2023-10-15T13:01:15,491][INFO ][logstash.outputs.elasticsearch][main] Using a default mapping template {:es_version=>8, :ecs_compatibility=>:v8}
[2023-10-15T13:01:15,515][INFO ][logstash.javapipeline ][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>1000, "pipeline.sources"=>["/Users/octo/Microservice/ELKLogs/logstash-8.10.3/config/logstash.conf"], :thread=>"#<Thread:0x4f70bd31 /Users/octo/Microservice/ELKLogs/logstash-8.10.3/logstash-core/lib/logstash/java_pipeline.rb:134 run>"}
[2023-10-15T13:01:16,499][INFO ][logstash.javapipeline ][main] Pipeline Java execution initialization time {"seconds"=>0.98}
[2023-10-15T13:01:16,722][INFO ][logstash.javapipeline ][main] Pipeline started {"pipeline.id"=>"main"}
[2023-10-15T13:01:16,725][INFO ][logstash.inputs.tcp ][main][1a9d65e53f979f52a527309dfbf80c70c486beee114c3d901f2c30b6b25f1f68] Starting tcp input listener {:address=>"0.0.0.0:9902", :ssl_enabled=>false}
[2023-10-15T13:01:16,745][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
warning: thread "[main]<tcp" terminated with exception (report_on_exception is true):
ArgumentError: wrong number of arguments (given 2, expected 0..1)
translate at /Users/octo/Microservice/ELKLogs/logstash-8.10.3/vendor/bundle/jruby/3.1.0/gems/i18n-1.14.1/lib/i18n.rb:210
inputworker at /Users/octo/Microservice/ELKLogs/logstash-8.10.3/logstash-core/lib/logstash/java_pipeline.rb:427
start_input at /Users/octo/Microservice/ELKLogs/logstash-8.10.3/logstash-core/lib/logstash/java_pipeline.rb:405
[2023-10-15T13:01:21,134][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: wrong number of arguments (given 2, expected 0..1)>, :backtrace=>["/Users/octo/Microservice/ELKLogs/logstash-8.10.3/vendor/bundle/jruby/3.1.0/gems/i18n-1.14.1/lib/i18n.rb:210:in `translate'", "/Users/octo/Microservice/ELKLogs/logstash-8.10.3/logstash-core/lib/logstash/java_pipeline.rb:427:in `inputworker'", "/Users/octo/Microservice/ELKLogs/logstash-8.10.3/logstash-core/lib/logstash/java_pipeline.rb:405:in `block in start_input'"]}
[2023-10-15T13:01:21,312][INFO ][logstash.javapipeline ][main] Pipeline terminated {"pipeline.id"=>"main"}
[2023-10-15T13:01:21,315][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.octo.Microservice.ELKLogs.logstash_minus_8_dot_10_dot_3.lib.bootstrap.environment.<main>(/Users/octo/Microservice/ELKLogs/logstash-8.10.3/lib/bootstrap/environment.rb:90) ~[?:?]
# logstash.conf
# Sample Logstash configuration for creating a simple
# Beats -> Logstash -> Elasticsearch pipeline.
input {
tcp {
port => "9902"
type => "nlog"
}
}
output {
elasticsearch {
hosts => ["https://localhost:9200"]
index => "elklogtest-%{+yyyy.MM.dd}"
document_id => "%{@timestamp}"
ssl_certificate_authorities => "/elasticsearch-8.10.3/config/certs/http_ca.crt"
user => "elastic"
password => "xxxxxxxxx"
}
}
The text was updated successfully, but these errors were encountered:
Logstash information:
Please include the following information:
bin/logstash --version
)Plugins installed: (
bin/logstash-plugin list --verbose
)JVM (e.g.
java -version
):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:
java -version
)LS_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):
The text was updated successfully, but these errors were encountered: