Cisco CDR
Imagine plotting your printer error count directly on a floorplan, or dropping count of failed backups on a campus map so you know which locations are having problems!
If you were to search for “Splunk custom map”, you might find as I have that the only customizations they talk about involve just putting *your* data on *existing* maps.
While this is useful, sometimes you need your own image used as a map. While looking, I found a couple of almost-solutions but nothing that solved the whole problem. It turns out that a large portion of this problem isn’t a “Splunk” problem, but will involve other products to build the maps themselves, so I decided to write this quick tutorial on how to build a map.
Having visited Washington D.C. a short time ago (for Splunk .conf 2018), I decided to try to make my own map out of an image I found on the internet of the national mall. I wanted this to consist of my own custom “map” that I could place in a dashboard in Splunk, and have data be populated into it just like any other map. The techniques here should apply to anything from a campus map to a floorplan.
The steps involved are (Current Step Highlighted below)
The term for this is to “create a tileset” of that image.
MapTiler.com has a downloadable free utility that can do this. The free version has these shortcomings:
But even with those limitations, for a proof of concept it’s fine. According to their site, it’s only $29 to remove the watermark and allow customizable zoom levels. Note we’re not endorsing this product or anything like that, but I did find it seems to work OK for our limited example use case! I believe QGIS can also do all we would need, but it’s a far more capable and thus complex program. Still, if that is what floats your boat or if you have another favorite mapping program, by all means use that. Just know my instructions will be wrong. 🙂
When it’s finished, your source folder will have some files and some folder in it. The folders actually correspond to the zoom level, so that “12−15” we saw before will be obvious here too.
If you dig down into it, you’ll find the leaves of those folders will be PNG files.
Now that you have map tiles created out of your image, you’ll want to move on to the next post on Using Your Map Inside Splunk which makes it so you can use them as a map inside Splunk.
Great software ultimately has to empower you to achieve more in less time. This extends to the company behind it -- we have to remember to always use your time as efficiently as we can.
And here I am happy to say that we shortened our Product Overview video dramatically. The new one is only 4 minutes long, vs 11 for the old one. You can see it here:
NOTE: the old one showed more of the product and was definitely more complete. In fact this was deliberate because we used it both for new users and also to be a deeper onboarding video for everyday users. However it was a bit too long for anyone who just wanted the short version and didnt want to spend 11 minutes of their day.