# Error while starting logstash

**URL:** <https://discuss.elastic.co/t/error-while-starting-logstash/354631>\
**Category:** Logstash\
**Tags:** windows\
**Created:** [March 4, 2024, 11:38am UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631 "2024-03-04T11:38:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhia\_Said](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhia_said/32/132310_2.png) [@Dhia\_Said](https://discuss.elastic.co/u/Dhia_Said)\
**Post date:** [March 4, 2024, 11:38am UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/1 "2024-03-04T11:38:05Z")

</div>

hello  
i am new to logstash and i had this error while launching logstash , i didn't know the cause of it, btw i am using it on windows :

```auto
[2024-03-04T12:04:49,450][ERROR][logstash.agent] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (RuntimeError) \n\n\tyou might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command\n\nno such file to load -- io/netty/netty-transport-native-unix-common/4.1.100.Final/netty-transport-native-unix-common-4.1.100.Final.jar (LoadError)", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:120)", "org.logstash.execution.AbstractPipelineExt.initialize(AbstractPipelineExt.java:186)", "org.logstash.execution.AbstractPipelineExt$INVOKER$i$initialize.call(AbstractPipelineExt$INVOKER$i$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:847)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1319)", "org.jruby.ir.instructions.InstanceSuperInstr.interpret(InstanceSuperInstr.java:139)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:128)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:90)", "org.jruby.RubyClass.newInstance(RubyClass.java:931)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:90)", "org.jruby.ir.instructions.CallBase.interpret(CallBase.java:548)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:88)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:238)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:228)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:291)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:328)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.ir.interpreter.Interpreter.INTERPRET_BLOCK(Interpreter.java:116)", "org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)", "org.jruby.runtime.Block.call(Block.java:144)", "org.jruby.RubyProc.call(RubyProc.java:352)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:111)", "java.base/java.lang.Thread.run(Thread.java:840)"]}

```

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [March 4, 2024, 12:36pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/2 "2024-03-04T12:36:34Z")

</div>

Hi @Dhia_Said,

Welcome to the community! Which version of Logstash are you using?

> Unable to configure plugins: (RuntimeError) \n\n\tyou might need to reinstall the gem which depends on the missing jar

It looks like a potential plugin configuration issue. Can you share your config?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [March 4, 2024, 2:18pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/3 "2024-03-04T14:18:14Z")

</div>

As Carly said, might be something related to config or the installation package which you used is not OK. Show us configs.  
Which input plugin are you using, which OS and LS version?

Additionally, you can:

1. Reinstall Logstash

2. If still the same error exist, try only with .zip/tar

---

<div class="post-metadata">

**Author:** ![Dhia\_Said](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhia_said/32/132310_2.png) [@Dhia\_Said](https://discuss.elastic.co/u/Dhia_Said)\
**Post date:** [March 4, 2024, 3:44pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/4 "2024-03-04T15:44:29Z")

</div>

i'm using 8.12 , and this is the config file of logstash that i created it

```auto
input { stdin { } }

filter {
  grok {
    match => { "message" => "%{COMBINEDAPACHELOG}" }
  }
  date {
    match => ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
  }
}

output {
  elasticsearch { hosts => ["localhost:9200"] }
  stdout { codec => rubydebug }
}

```

---

<div class="post-metadata">

**Author:** ![Dhia\_Said](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhia_said/32/132310_2.png) [@Dhia\_Said](https://discuss.elastic.co/u/Dhia_Said)\
**Post date:** [March 4, 2024, 3:45pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/5 "2024-03-04T15:45:24Z")

</div>

i'm using Windows as operating system

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [March 4, 2024, 4:11pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/6 "2024-03-04T16:11:17Z")

</div>

Save your .conf and unzip the LS package again. LS 8.x is working fine on Windows platform. Maybe you have an issue with JDK however LS is using own, and will se a trace in logstash-plain.log.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [March 4, 2024, 6:27pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/7 "2024-03-04T18:27:45Z")

</div>

Please test this .conf. If this doesn't work, you have problem with LS package.

```auto
input {
  generator {
       message => '66.249.64.64 - - [01/Dec/2023:13:16:13 +0100] "GET /wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff2?5.17.0 HTTP/1.1" 304 - "https://site.com/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.min.css?ver=5.17.0" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"'
	   count => 1
  }
 } 

filter {
  grok {
    match => { "message" => "%{COMBINEDAPACHELOG}" }
  }
  date {
    match => ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
  }
}

output {
    stdout {codec => rubydebug{} }
}

```

---

<div class="post-metadata">

**Author:** ![Dhia\_Said](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhia_said/32/132310_2.png) [@Dhia\_Said](https://discuss.elastic.co/u/Dhia_Said)\
**Post date:** [March 5, 2024, 12:03pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/8 "2024-03-05T12:03:26Z")

</div>

it works , and my config file has a missing } in the end of the code , thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 2, 2024, 12:03pm UTC](https://discuss.elastic.co/t/error-while-starting-logstash/354631/9 "2024-04-02T12:03:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
