Dashboards & Visualizations

How to use custom tiles in Splunk maps offline, without using a separate map server?

shashankraina
Engager

Hi All,

The current map functionality in Splunk does not give enough zoom level analysis and also does not have street level information about the world.

This can be achieved by using a custom map tile in a separate map server which requires internet connectivity.

The Splunk server in my organization does not have internet connectivity and I want to use the custom map tiles for greater flexibility in maps.

Any ideas??

1 Solution

MuS
Legend

Hi shashankraina,

You can store your map tiles inside etc/apps/YourAppName/appserver/static/YourMaptilesDirectory/ and use it like this in your map dashboard:

 <option name="mapping.tileLayer.url">/static/app/YourAppName/YourMaptilesDirectory/{z}/{x}/{y}.png</option>

Hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi shashankraina,

You can store your map tiles inside etc/apps/YourAppName/appserver/static/YourMaptilesDirectory/ and use it like this in your map dashboard:

 <option name="mapping.tileLayer.url">/static/app/YourAppName/YourMaptilesDirectory/{z}/{x}/{y}.png</option>

Hope this helps ...

cheers, MuS

RBosch
Engager

Hi MuS,

I tried your suggestion for the search app:
I placed the tiles in ${SPLUNK_HOME}/etc/apps/search/appserver/static/YourMaptilesDirectory
and placed /static/app/search/YourMaptilesDirectory/{z}/{x}/{y}.png. But no luck.

I decided to test by run a random search and select a map. The provided by Splunk works and I can zoom in to a point. To select the tiles I placed earlier, I clicked Format, Tiles and filled in the form with /static/app/search/YourMaptilesDirectory/{z}/{x}/{y}.png. I altered the zoomlevel-range to the zoomlevels I downloaded (10-19).
What I get are small boxes here and there with crosses in them, which means that the files could not be loaded.

The system is isolated, so can't test with the openstreetmap tileserver.

I hope you or anyone else could shed a light on the problem.

Thanks,

RBosch

0 Karma

MuS
Legend

@RBosch, Splunk supports map zoom level between 0-9 not 10-19 see docs http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Geostats

I have in my custom map directory 349526 png files and can access them by calling this URL

 http[s]://yoursplunkservername:yourport/en-GB/static/app/appname/mapdirectory/9/1/1.png

Please verify this, also check the Splunk web logs for any hint.

cheers, MuS

0 Karma

RBosch
Engager

Hi @MuS,

Got it working. Was the wrong browser. The boxes I mentioned were an indication that the tiles (png) failed to load.
Splunkmaps indeed won't support the zoom levels 10 to 19, but the tiles I downloaded did, which was the whole idea in the first place. See my question 😉

Thanks for the example url which put me on the right track.

Regards, RBosch

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...