Refine your search:

when i used host="xxx" | geoip dstip , it returns "External search command 'geoip' returned error code 1. First 1000 (of 557330) bytes of script output:" but still output results , now in the same search, but using host="xxx" | geoip srcip , there are no error messages. The fields extraction is correct as expected. what's possibly wrong with this? Thanks

asked 23 May '11, 20:42

hjwang's gravatar image

hjwang
3121227
accept rate: 17%

edited 24 May '11, 11:55

ziegfried's gravatar image

ziegfried ♦
10.1k1618

another problem is when i used geoip command in saved search then put it on the views, i found that graph can not be displayed out. But if i type the same command in search bar, this would be shown, something strange!!

(24 May '11, 01:00) hjwang

One Answer:

The problem is that this version of the geoip command crashes on some specific IP addresses. This will be fixed in the new version that should be released really soon.

The second problem is that the old version of the geoip command does not explicitly require input fields. The new version will do this automatically and will work when there is no automatic field discovery (like when used in saved searches). As a workaround for now, you can explicitly require the field:

<your search> | fields srcip | geoip srcip

or

<your serach> srcip=* | geoip srcip
link

answered 24 May '11, 11:20

ziegfried's gravatar image

ziegfried ♦
10.1k1618
accept rate: 52%

edited 24 May '11, 11:21

Thanks a lot, ziegfried. it's really helpful.

(24 May '11, 19:10) hjwang
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:

×294

Asked: 23 May '11, 20:42

Seen: 1,350 times

Last updated: 24 May '11, 19:10

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