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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...