Splunk Search

Possible to place a graphic on a map in real-time every time an event occurs?

djconroy
Path Finder

I would like to use a map to pop a graphic up on a map for each time an event occurs in real-time.

I have use iplookup for other dashboards, but this will have to rely on a lookup table of locations corresponding zip codes. Rather than a heat map of event counts clustered, I would just like to pop up an image over each location for x seconds, or display images for the last x # of events.

I already have the real-time search that generates a table of the last 25 events with the field I need to cross-reference... outputting to a table with the latitude and longitude to populate the image. I just need to figure out how to pop the image on a map.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You'll need to write your own subclass of SimpleSplunkView (or related) in JS and use that in your dashboard. Within that, you can use mapping frameworks such as leaflet.js (included in Splunk 6) to do whatever you like on the map.

For a quick intro, Satoshi had a .conf presentation: Slides Recording App

martin_mueller
SplunkTrust
SplunkTrust

You should see a global variable L that lets you get right on creating Map objects.

0 Karma

rlough
Path Finder

leaflet.js is included in Splunk 6? How do I include it on my page? I've been importing it from their website.

0 Karma

djconroy
Path Finder

Thanks, I will check that out!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...