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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...