Splunk Search

How to to plot Cluster/Choropleth map with source data (hostname only)

rashi83
Path Finder

Created a lookup file with static Latitude and Longitude for 2 countries and used this search:

| inputlookup test_geo_db | geostats count

But I can't see map plotted with it?

0 Karma

niketn
Legend

What are the field names for latitude and longitude in the lookup test_geo_db

If you have not used the arguments latfield and longfield along with geostats it assumes default latitude and longitude fields as lat and lon respectively. Refer to Splunk documentation for proper use of geostats.

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Geostats#Syntax

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

rashi83
Path Finder

I do not get any results for this string -
| inputlookup test_geo_db | geostats latfield=eventlat longfield=eventlong

0 Karma

harshpatel
Contributor

you have to pass file names same as the lookup file i.e.

| inputlookup test_geo_db | geostats latfield=latitude longfield=longitutude
0 Karma

harshpatel
Contributor

Can you please share the results of | inputlookup test_geo_db? and if you could tell us what do you see as the result if you can't see the map it would be helpful. Thanks.

0 Karma

rashi83
Path Finder

I can see results for :
| inputlookup test_geo_db as
hostname latitude longitutude
us 32.7767 96.797
em 52.1386 0.4668

I do not see any points on the MAP

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...