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!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...