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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...