All Apps and Add-ons

External search command 'getlocalhost' returned error code 1

gcgrtorres
Engager

Unable to run Splunk S.O.S on indexer, there is no Server to query in the drop down list. I get the following error when I select the app home page

[subsearch]: External search command 'getlocalhost' returned error code 1.  External search command 'getallhosts' returned error code 1.

hexx
Splunk Employee
Splunk Employee

This indicates that the getlocalhost.py python search command did not execute properly. We should be able to find out what happened by :

  • Looking in $SPLUNK_HOME/var/log/splunk/python.log
  • Running the command manually with $SPLUNK_HOME/bin/splunk cmd python getinternalhost.py
  • If the former command doesn't show anything of interest, set export PYTHONVERBOSE=1 then run it again and let us know what output you get.
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...