All Apps and Add-ons
Highlighted

Manually place location within Google Maps

Contributor

I'd like to manually set a location of servers around the country within the Google Maps app. Simply displaying where they listing if they are up or down (green=up, red=down).

The server locations don't change much, so manually specifying the locations is not a problem.

Is this possible?

0 Karma
Highlighted

Re: Manually place location within Google Maps

Splunk Employee
Splunk Employee

Yes, you can do this with a lookup with the latitudes and longitudes.

## host_geo.csv (don't include this line in the lookup file)
host,_geo
foobar123,"lat,lon"

Then you can use it in a search:

<search> ... | lookup host_geo.csv host 

To test your lookup for can also do:

 <search> ... | lookup host_geo.csv host | eval geo=_geo | table host geo
Highlighted

Re: Manually place location within Google Maps

Contributor

THANKS!

Where do you put the host_geo.csv? Within the Google Maps app folder?

0 Karma
Highlighted

Re: Manually place location within Google Maps

Splunk Employee
Splunk Employee

You could put it in the google maps app under the lookups folder. If it doesn't exist already you can create it. You can also upload it via the UI.

0 Karma