All Apps and Add-ons

_geo does not plot on google maps

preethiswamy
Explorer

Good Evening All, I am new to splunk and I need to a POC integrating with google maps. I appreciate any help. I have created a lookup table us_cities, configured transforms/props.conf. In fact I even have the below command resulting in the response "4 results with location information ( 4 distinct locations ) over all time" but I don't see anything plotted on the map. Also, the geo results tab shows the right lat,long retrieved from the lookup table for all the 4 locations.

| inputlookup us_cities.csv | search city="Chattanooga" | eval _geo=lat+","+long

1 Solution

martin_mueller
SplunkTrust
SplunkTrust

The built-in maps are only available since version 6, so most info on the internet predates that.

If you have fields lat and long, you can append this to your search:

... | geostats count latfield=lat longfield=long 

That will compute geo-based bins, similar to time-based bins in timechart, for various zoom levels. Don't forget to switch the visualization to Map, and see http://docs.splunk.com/Documentation/Splunk/6.1.1/SearchReference/geostats for reference of geostats.
Additionally, check out http://apps.splunk.com/app/1603/ for examples.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

The built-in maps are only available since version 6, so most info on the internet predates that.

If you have fields lat and long, you can append this to your search:

... | geostats count latfield=lat longfield=long 

That will compute geo-based bins, similar to time-based bins in timechart, for various zoom levels. Don't forget to switch the visualization to Map, and see http://docs.splunk.com/Documentation/Splunk/6.1.1/SearchReference/geostats for reference of geostats.
Additionally, check out http://apps.splunk.com/app/1603/ for examples.

preethiswamy
Explorer

This worked. Thanks Martin.

0 Karma

preethiswamy
Explorer

Thank you Martin, I am checking it out now.

0 Karma

preethiswamy
Explorer

Thanks Martin. I want to map out cities and most answers on splunk seem to point to google maps. I just started looking into geostats, any quick tips?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Have you considered using the built-in Splunk Maps?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...