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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...