Refine your search:

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.

asked 03 May '12, 14:04

gcgrtorres's gravatar image

gcgrtorres
412
accept rate: 0%

edited 12 Jun '12, 13:02

hexx's gravatar image

hexx ♦
14.5k91670


One Answer:

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

answered 12 Jun '12, 13:20

hexx's gravatar image

hexx ♦
14.5k91670
accept rate: 55%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×36

Asked: 03 May '12, 14:04

Seen: 971 times

Last updated: 12 Jun '12, 13:20

Copyright © 2005-2012 Splunk Inc. All rights reserved.