Logstash StackOverflow error due to large plug-in configuration file
This topic describes how to fix the error that you might get due to a large Universal Connector configuration file.
When you configure more than ten Universal Connectors on one collector, you might get the
following StackOverflow
error:
FATAL Logstash:109 - uncaught error (in thread Ruby-0-Thread-35: /usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:289)
java.lang.StackOverflowError: null
at org.logstash.config.ir.expression.EventValueExpression.toString(org/logstash/config/ir/expression/EventValueExpression.java:51) ~[logstash-core.jar:?]
at java.lang.StringConcatHelper.stringOf(java/lang/StringConcatHelper.java:453) ~[?:?]
at org.logstash.config.ir.expression.unary.Truthy.toRubyString(org/logstash/config/ir/expression/unary/Truthy.java:36) ~[logstash-core.jar:?]
at org.logstash.config.ir.compiler.EventCondition$Compiler.buildCondition(org/logstash/config/ir/compiler/EventCondition.java:112) ~[logstash-core.jar:?]
at org.logstash.config.ir.CompiledPipeline$CompiledExecution.lambda$compileDependencies$6(org/logstash/config/ir/CompiledPipeline.java:546) ~[logstash-core.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(java/util/stream/ReferencePipeline.java:197) ~[?:?]
To avoid the stack overflow error, you can aggregate all connections and use one of the following
optimized options.- Option 1
- If you are configuring all the Universal Connectors from the same database type but different account IDs.
- Options 2
- If you are configuring all the Universal Connectors from the same database type, within the same database account and with same account ID.