Dashboards & Visualizations

Can I import the contents into an html tag data in any way in Simplexml?

kedjjang
Explorer

hello,

=================================== Simplexml ===================================
<[[form]>
<[[label]>Title/[/label]
<[fieldset submitButton="false"]>
<[html]>
<[style type="text/css"]>
.single-value .single-result {
font-size: 45px;
}
<[/style]>
<[/html]>
<[input type="time" token="time_ok1" searchWhenChanged="true"]>
<[label]><[/label]>
<[default]>
<[earliest]>@d<[/earliest]>
<[latest]>now<[/latest]>
<[/default]>
<[/input]>
<[/fieldset]>
<[row]>
<[html id="element1"]>

<[ul class="lst"]>

<[li class="bx"]>
<[dl]>
<[dt]>dataInput1<[/dt]>
<[dd]>search<[/dd]> <<<<< I want to put the data in the tags using the search statement.(SingleValue)
<[/dl]>
<[/li]>

<[/html]>
<[/row]>

Which should I approach?

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

This may be possible using the Custom Token example from the Splunk 6 Dashboard Examples App available at https://splunkbase.splunk.com/app/1603/

Once installed, go to http://your_host:8000/en-US/app/simple_xml_examples/custom_app_token and see if you can adapt this to your case.

woodcock
Esteemed Legend

You need the xmlkv command like this:

... | xmlkv

http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Xmlkv

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...