Splunk Dev

Why is my external results provider written in JAVA is slow to start up?

dharte
New Member

I have an external results provider (ERP) written in Java. When I execute a search the ERP is fired and results returned to Splunk. All of that works fine except there is a speed issue with the ERP. If I do a simple search there is always an overhead to that search. If I view the results of the search via the Job Inspector I see my dispatch.fetch always represents a significant portion (over 90%) of the search time. If I refer to my search log I can identify one line that is taking four seconds to execute, refer below. Note, it doesn't matter how complex or simple the search is, the overhead at the SearchOperator:stdin line below remains around the same time.

02-12-2018 16:34:14.088 INFO UserManager - Unwound user context: admin -> NULL
02-12-2018 16:34:14.088 INFO UserManager - Setting user context: admin
02-12-2018 16:34:14.088 INFO UserManager - Done setting user context: NULL -> admin
02-12-2018 16:34:14.088 INFO UserManager - Unwound user context: admin -> NULL
02-12-2018 16:34:18.168 INFO SearchOperator:stdin - Initializing from configuration

02-12-2018 16:34:18.171 INFO LineBreakingProcessor - Initializing
02-12-2018 16:34:18.179 INFO regexExtractionProcessor - Initializing
02-12-2018 16:34:18.180 INFO PipelineComponent - Launching the pipelines for set 0.

Can you help me that why is this happening or is there a diagnostic I can run to hunt this issue down?

Tags (3)
0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...