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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...