Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simulator with GELF codec not working, NullPointerException #2610
With beta.2, the pipeline simulator does not show simulations results but stays at "Loading" forever, while a NullPointerException is thrown according to server log. Initially occured Graylog2/graylog-plugin-pipeline-processor#40
Apply pipeline logic to simulation messages and show results.
Tried several raw messages in simulation with GELF codec, simulation result missing, exception thrown in log:
Steps to Reproduce (for bugs)
referenced this issue
Aug 4, 2016
Mostly, I use three stages for my pipelines: First stage separates log type based on a certain field value or based on a certain input (GELF-Kafka). Second stage does extraction/normalization of fields, third stage sends to appropriate stream.
Did some digging: The simulator stops working as soon I connect a pipeline to the default stream which contains a
Idea: Maybe the reason for the NullPointerException is that a simulated message itself does not contain an input? Therefore the comparison of from_input fails as there is not comparable value?
Have a look at https://github.com/Graylog2/graylog-plugin-pipeline-processor/blob/master/src/main/java/org/graylog/plugins/pipelineprocessor/functions/FromInput.java#L58-L59
Edit: If this is the case, maybe it would make sense to allow setting a simulated input. This would allow the simulation of rules which contain