Splunk Search

How to resolve Error in 'similarity' command: External search command exited unexpectedly with non-zero error code 9?

soheil115
Engager

I use nlp-text-analytics app for similarity between two strings but I get above error

error1.jpg

 

when I run lines 1, 2, and 3, it gives a result of about 14,973,764 (3814*3926)

error2.jpg

 

It is interesting that if I reduce the data, for example, the output of the third line is  13.348.400 (3400* 3926 )  , it does not give an error and the result of the fourth line is returned.

error3.jpg

 

This means that the similarity command has problems with data above 13.5 million

my splunk is 8.2
nlp-text-analytics 1.1.3
python_upgrade_readiness_app  4.0.2 
 
Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The similarity command is not standard.  What app did it come with?

Have you looked at the search log to see if there are more details that might explain the cause of the error?  Find the search log by opening the Job Inspector then scrolling down to the bottom and clicking on the "search.log" link.

Based on the error code, I suspect you're running into a limitation, probably memory, but the search log should have that information.

Also check /var/log/messages for OOM killer messages.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...