Splunk Dev

Create Panels Dynamically based on search results

slrobnson
Engager

All,

I am hoping someone to help me fine a solution for what I am trying to do. I have the following data from a search:

hostname,deviceid
host1,1
host2,2

What I am trying to do is to created panels for each host and display the hostname within that panel using the html tags. It should look like this:

.........................................................................
. host1 .
. .
. .
.........................................................................

.........................................................................
. host2 .
. .
. .
.........................................................................

Thank you in advance,

Stephen Robinson

Tags (1)

dwaddle
SplunkTrust
SplunkTrust

One way of doing this is via Sideview Utils and their "multiplexer" module. It is designed to make new dashboard panels based on search results. There may be other ways too, but I know the approach of @sideview works. See http://sideviewapps.com/apps/sideview-utils/

0 Karma

DalJeanis
Legend

There are lots of ways. For instance, you could set up a base search and then post-filter each panel using the data from your above search. (| head 1 for first panel, |head 2 | tail 1 for second panel, | head 3 | tail 1 for third panel etc)

https://answers.splunk.com/answers/170633/how-do-i-use-one-search-to-populate-a-bunch-of-pan.html

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...