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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...