# Multiple http filters

**URL:** <https://discuss.elastic.co/t/multiple-http-filters/226181>\
**Category:** Logstash\
**Created:** [April 2, 2020, 8:56am UTC](https://discuss.elastic.co/t/multiple-http-filters/226181 "2020-04-02T08:56:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akhilsharma.in](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akhilsharma.in](https://discuss.elastic.co/u/akhilsharma.in)\
**Post date:** [April 2, 2020, 8:56am UTC](https://discuss.elastic.co/t/multiple-http-filters/226181/1 "2020-04-02T08:56:42Z")

</div>

We've multiple conf files which have http filters in them. And they are running simultaneously at a time. Running multiple http filters at a time seems to give us problems. Please help us to understand if its the behavior of Logstash that it cannot run multiple http filter conf files at a time or we need to improve it?

TIA

---

<div class="post-metadata">

**Author:** ![akhilsharma.in](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akhilsharma.in](https://discuss.elastic.co/u/akhilsharma.in)\
**Post date:** [April 2, 2020, 11:39am UTC](https://discuss.elastic.co/t/multiple-http-filters/226181/2 "2020-04-02T11:39:37Z")

</div>

There are 3 conf files which are making http requests separately every 5 minutes. On seeing the logs, we have seen if any of these files run at a same time then only one call processes and other gives error.

We also see below error log at the end of log file, after this Logstash starts again automatically.

Have pasted the error log below:

[2020-04-02T06:01:00,576][WARN][logstash.inputs.udp] UDP listener died {:exception=\>java.nio.channels.ClosedSelectorException, :backtrace=\>["sun.nio.ch.SelectorImpl.keys(SelectorImpl.java:68)", "org.jruby.util.io.SelectorPool.put(SelectorPool.java:88)", "org.jruby.util.io.SelectExecutor.selectEnd(SelectExecutor.java:59)", "org.jruby.util.io.SelectExecutor.go(SelectExecutor.java:44)", "org.jruby.RubyIO.select(RubyIO.java:3405)", "org.jruby.RubyIO$INVOKER$s$0$3$select.call(RubyIO$INVOKER$s$0$3$select.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:743)", "org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:77)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:83)", "org.jruby.ir.instructions.CallBase.interpret(CallBase.java:428)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:355)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:83)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:179)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:165)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:200)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:161)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:73)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:109)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:95)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "amp.logstash.logstash\_minus\_6\_dot\_3\_dot\_0.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$inputworker$0(/amp/logstash/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:512)", "amp.logstash.logstash\_minus\_6\_dot\_3\_dot\_0.logstash\_minus\_core.lib.logstash.pipeline.RUBY$method$inputworker$0$ **VARARGS** (/amp/logstash/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:77)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:93)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:145)", "amp.logstash.logstash\_minus\_6\_dot\_3\_dot\_0.logstash\_minus\_core.lib.logstash.pipeline.RUBY$block$start\_input$1(/amp/logstash/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:505)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:145)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:71)", "org.jruby.runtime.Block.call(Block.java:124)", "org.jruby.RubyProc.call(RubyProc.java:289)", "org.jruby.RubyProc.call(RubyProc.java:246)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:104)", "java.lang.Thread.run(Thread.java:748)"]}  
[2020-04-02T06:01:00,607][ERROR][org.logstash.Logstash] java.lang.OutOfMemoryError: Java heap space

---

<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 30, 2020, 11:45am UTC](https://discuss.elastic.co/t/multiple-http-filters/226181/3 "2020-04-30T11:45:22Z")

</div>

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