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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

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 ...