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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...