hello, everyone
logstash 7.16.3 on docker-compose
version: '3.4'
services:
new-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: new-elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- TZ=Asia/Shanghai
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
volumes:
- ./elk-data:/usr/share/elasticsearch/data
- ./conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 29200:9200
- 29300:9300
networks:
- new-elk
restart: unless-stopped
new-logstash:
image: docker.elastic.co/logstash/logstash:7.16.3
container_name: new-logstash
environment:
- TZ=Asia/Shanghai
ports:
- 15044:5044
- 15045:5045
- 15046:5046
volumes:
- ./pipeline/:/usr/share/logstash/pipeline/
networks:
- new-elk
restart: unless-stopped
new-kibana:
image: docker.elastic.co/kibana/kibana:7.16.3
container_name: new-kibana
ports:
- 15601:5601
depends_on:
- new-elasticsearch
environment:
- VIRTUAL_PORT=5601
- VIRTUAL_HOST=elk.bar.org
- ELASTICSEARCH_URL="http://new-elasticsearch:9200"
- ELASTICSEARCH_HOSTS="http://new-elasticsearch:9200"
- TZ=Asia/Shanghai
networks:
- new-elk
restart: unless-stopped
networks:
new-elk:
detailed
Using bundled JDK: /usr/share/logstash/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[FATAL] 2022-01-27 12:08:07.548 [main] Logstash - Logstash stopped processing because of an error: (LoadError) load error: rubygems/text -- java.lang.NoClassDefFoundError: org/jruby/util/Sprintf
org.jruby.exceptions.LoadError: (LoadError) load error: rubygems/text -- java.lang.NoClassDefFoundError: org/jruby/util/Sprintf
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/user_interaction.rb:10) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification_policy.rb:1) ~[?:?]
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/specification.rb:15) ~[?:?]
at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.clear_paths(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:328) ~[?:?]
at usr.share.logstash.lib.bootstrap.bundler.setup!(/usr/share/logstash/lib/bootstrap/bundler.rb:62) ~[?:?]
at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:89) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: org/jruby/util/Sprintf
at org.jruby.util.RegexpSupport.unescapeEscapedNonAscii(RegexpSupport.java:399) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.util.RegexpSupport.unescapeNonAscii(RegexpSupport.java:131) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.util.RegexpSupport.preprocess(RegexpSupport.java:63) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyRegexp.preprocessCheck(RubyRegexp.java:499) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.lexer.LexingCommon.checkRegexpFragment(LexingCommon.java:1151) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.ParserSupport.newRegexpNode(ParserSupport.java:1403) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.RubyParser$428.execute(RubyParser.java:4638) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.RubyParser.yyparse(RubyParser.java:1698) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.RubyParser.yyparse(RubyParser.java:1589) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.RubyParser.parse(RubyParser.java:5744) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.Parser.parse(Parser.java:133) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.Parser.parse(Parser.java:87) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.parser.Parser.parse(Parser.java:94) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.parseFileAndGetAST(Ruby.java:2527) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.parseFile(Ruby.java:2482) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.parseFile(Ruby.java:2469) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.loadFile(Ruby.java:2780) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:234) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:535) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.require(LoadService.java:402) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:981) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.require(RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel$INVOKER$s$1$0$require.call(RubyKernel$INVOKER$s$1$0$require.gen) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:417) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:376) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:175) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:96) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:81) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:30) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runInterpreter(Ruby.java:1218) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.loadFile(Ruby.java:2785) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:234) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:535) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.require(LoadService.java:402) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:981) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.require(RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel$INVOKER$s$1$0$require.call(RubyKernel$INVOKER$s$1$0$require.gen) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:417) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:376) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:175) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:96) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:81) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:30) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runInterpreter(Ruby.java:1218) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.loadFile(Ruby.java:2785) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:234) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:535) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.require(LoadService.java:402) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:981) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel.require(RubyKernel.java:974) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel$INVOKER$s$1$0$require.call(RubyKernel$INVOKER$s$1$0$require.gen) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:417) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:376) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:175) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:316) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.INTERPRET_ROOT(Interpreter.java:96) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:81) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.interpreter.Interpreter.execute(Interpreter.java:30) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.IRTranslator.execute(IRTranslator.java:42) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runInterpreter(Ruby.java:1218) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.loadFile(Ruby.java:2785) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$ResourceLibrary.load(LibrarySearcher.java:234) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LibrarySearcher$FoundLibrary.load(LibrarySearcher.java:34) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:887) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.smartLoadInternal(LoadService.java:535) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.runtime.load.LoadService.autoloadRequire(LoadService.java:406) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyKernel$1.load(RubyKernel.java:202) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyModule$Autoload.getConstant(RubyModule.java:5040) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyModule.getAutoloadConstant(RubyModule.java:4855) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyModule.getAutoloadConstant(RubyModule.java:4848) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyModule.resolveUndefConstant(RubyModule.java:4237) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyModule.getConstantFromNoConstMissing(RubyModule.java:4208) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.targets.ConstantLookupSite.searchModuleForConst(ConstantLookupSite.java:128) ~[jruby-complete-9.2.20.1.jar:?]
at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.RUBY$method$clear_paths$0(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:328) ~[?:?]
at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.RUBY$method$clear_paths$0$__VARARGS__(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems.rb:325) ~[?:?]
at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207) ~[jruby-complete-9.2.20.1.jar:?]
at usr.share.logstash.lib.bootstrap.bundler.RUBY$method$setup!$0(/usr/share/logstash/lib/bootstrap/bundler.rb:62) ~[?:?]
at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207) ~[jruby-complete-9.2.20.1.jar:?]
at usr.share.logstash.lib.bootstrap.environment.RUBY$script(/usr/share/logstash/lib/bootstrap/environment.rb:89) ~[?:?]
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) ~[?:?]
at org.jruby.ir.Compiler$1.load(Compiler.java:89) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runScript(Ruby.java:1205) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runNormally(Ruby.java:1128) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runNormally(Ruby.java:1146) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.Ruby.runFromMain(Ruby.java:958) ~[jruby-complete-9.2.20.1.jar:?]
at org.logstash.Logstash.run(Logstash.java:161) [logstash-core.jar:?]
at org.logstash.Logstash.main(Logstash.java:71) [logstash-core.jar:?]
When I change it to mirror 7.15.0 is ok , it is a bug ?