Splunk Search

Besides latitude, longitude, and the search result values, how do I include the location name in a Splunk 6.2.5 map popup?

htkwan
Path Finder

Hello,

I would like to provide the name of the location, besides the latitude, longitude & values. My search is:

 geostats outputlatfield=Geo_Location outputlongfield="-" latfield=Geo_Lt longfield=Geo_Lg latest(Value) by ID

The fields Geo_Location, Geo_Lt, & Geo_lg are from a lookup table.

alt text

Tags (3)
0 Karma
1 Solution

htkwan
Path Finder

We've found a workaround: Eval ID=ID + "@" + Geo_Location

View solution in original post

0 Karma

htkwan
Path Finder

We've found a workaround: Eval ID=ID + "@" + Geo_Location

0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

Just add it to your functions:

geostats outputlatfield=Geo_Location outputlongfield="-" latfield=Geo_Lt longfield=Geo_Lg latest(Value), latest(Location) as Location by ID

Assuming, that is, that your location field is called Location

0 Karma

jeffland
SplunkTrust
SplunkTrust

What is the name of the location? Is it a field in your search?

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 ...