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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...