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??
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
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
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
@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
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