Splunk Search

How to edit my search query to display a Map graph?

dhavamanis
Builder

We are trying to build the MAP with the query below. I can see some results in the statistics view but nothing is showing in Map (zip, Lat and Long). Can you please review this query and correct me if anything is wrong?

index="abcindex" | stats sum(Primary_Address_ZIP) as _geo_count by Primary_Address_ZIP | lookup geolookup Zipcode as Primary_Address_ZIP OUTPUT Lat, Long | where Lat not null AND Long not null | eval _geo=Lat+","+Long

Can you please help me on this?

0 Karma
1 Solution

somesoni2
Revered Legend

Try this

index="abcindex" 
| lookup geolookup Zipcode as Primary_Address_ZIP OUTPUT Lat, Long | where Lat not null AND Long not null 
| geostats latfield=Lat longfield=Long count by Primary_Address_ZIP

View solution in original post

somesoni2
Revered Legend

Try this

index="abcindex" 
| lookup geolookup Zipcode as Primary_Address_ZIP OUTPUT Lat, Long | where Lat not null AND Long not null 
| geostats latfield=Lat longfield=Long count by Primary_Address_ZIP

dhavamanis
Builder

thanks a lot.

0 Karma

dhavamanis
Builder

I am waiting for this answer for long time. Can you please do the needful.

0 Karma

dhavamanis
Builder

Can you please someone help me on this?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...