Refine your search:

I did * | geoip clientip

yet I get an error:

"External search command 'geoip' returned error code 1. First 1000 (of 9218) bytes of script output:" followed by the script output.

A screenshot is here:

http://tinypic.com/r/2hnb1cp/7

asked 10 Dec '10, 21:00

hunterppp's gravatar image

hunterppp
12
accept rate: 0%

edited 15 Dec '10, 18:23

jrodman's gravatar image

jrodman ♦
7.0k21027


2 Answers:

You can do:

* | geoip clientip

This will pipe all events in the index into the geoip tool.

link

answered 10 Dec '10, 21:04

ftk's gravatar image

ftk ♦
6.8k1727
accept rate: 38%

@ftk I've updated the question with an error, any help?

(10 Dec '10, 22:31) hunterppp

Hmm. I don't think that screenshot tells us much as to what the error is. There should be a python.log in $SPLUNK_HOME/var/log/splunk/ That should have the full error message.

(13 Dec '10, 13:37) ftk ♦

Looks like you're getting an exception that splunk doesn't know how to parse. The main thing is it's returning failure (a nonzero exit code). You may want to capture from inside the script how it's being invoked and run it independently to investigate.

link

answered 15 Dec '10, 18:25

jrodman's gravatar image

jrodman ♦
7.0k21027
accept rate: 41%

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:

Asked: 10 Dec '10, 21:00

Seen: 918 times

Last updated: 09 Apr '11, 09:22

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