Splunk Search

How to embed a Splunk element inside an HTML element (e.g. in a table)

benholfeld
New Member

For some custom UI improvement, I need to arrange Splunk input elements in a certain way, e.g. align them horizontally... so I created an html table and can put drop-downs in there, but I couldn't find a way to put a Splunk element inside an html element. How is that possible?

What I was hoping is something like this:

<html>
<table><tr>
<td>xyy</td>
<td>
<splunk>
<input ...
</splunk>
</td>
</tr></table>
</html>
Tags (4)
0 Karma

jaffar20
Explorer

I'm having the same issue. Did you ever get an answer to this?

0 Karma

Raghav2384
Motivator

Hello,

Create tokens related to the drop downs by populating searches and you can call the token I side tags.

Docs: search for token usage in splunk docs.

Example, let's say I have a token called $username$ defined. I can call that token from the html code.

$username $

Hope this helps,
Thanks,
Raghav

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...