Splunk Search

How to edit my geostats search for a simple map visualization? Getting "no match found"

seetharamanss
Explorer

Hi,

I'm trying to do a simple MAP visualization with the search below, but it is throwing me error no match found. Is there any thing I'm missing out?

host = "hostname" sourcetype = "sourcetypelog"  MarketName =SINGAPORE | geostats latfield=1.3667 longfield=103.8 count by MarketName
0 Karma
1 Solution

sundareshr
Legend

Try this

... | eval lat="1.3667" | eval lon="103.8"| geostats latfield=lat longfield=lon count by MarketName

View solution in original post

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

latfield/longfield are meant to be the field names for latitude and longitude, not the field values.

0 Karma

sundareshr
Legend

Try this

... | eval lat="1.3667" | eval lon="103.8"| geostats latfield=lat longfield=lon count by MarketName
0 Karma

seetharamanss
Explorer

Thank you . It worked

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...