All Apps and Add-ons

error code in google maps app

hjwang
Contributor

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

0 Karma
1 Solution

ziegfried
Influencer

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

View solution in original post

ziegfried
Influencer

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

hjwang
Contributor

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

0 Karma

hjwang
Contributor

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

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...