Dashboards & Visualizations

adding random html to splunk view

DTERM
Contributor

How do I add random HTML code to the following Splunk view? (Or any view in general?) I just need to dress up the view with administrative overhead. Thanks.

<?xml version="1.0"?>

    <view template="dashboard.html">
      <label>1Hr(5min Refresh) - Customer Activity</label>
      <module name="GenericHeader" layoutPanel="panel_row1_col1">
        <param name="label">Customer Activity (Most ACTIVE)</param>
         <module name="AutoRefresh">
          <param name="invervalInSeconds">300</param>
           <module name="HiddenSearch" autoRun="True" layoutPanel="panel_row1_col1_grp1">
        <param name="search"> 
                  index="MyIndex" sourcetype="customer" | timechart count by customer 
        </param>
            <param name="earliest">-1h</param>
            <module name="HiddenChartFormatter">
              <param name="chart">line</param>
              <param name="chart.nullValueMode">connect</param>
              <param name="secondaryAxis.scale">log</param>
              <param name="primaryAxisTitle.text">Time</param>
              <param name="secondaryAxisTitle.text">Volume</param>
              <module name="FlashChart"/>
            </module>
          </module>
        </module>
      </module>
    </view>
Tags (1)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Using the advanced HTML functionality, the Sideview Utils app provides the ability to include arbitrary HTML in a view. There is a good example of this functionality in the S-O-S app.

http://splunk-base.splunk.com/apps/22279/sideview-utils

http://splunk-base.splunk.com/apps/29008/sos-splunk-on-splunk

View solution in original post

0 Karma

melting
Splunk Employee
Splunk Employee

For simple xml there is an html node:

There are a couple of built in cmds for advanced xml.

  1. StaticContentSample - Include raw HTML in the view xml
  2. ServerSideInclude - Include an html file to be included.

An example of StaticContentSample from nick:

<module name="StaticContentSample">
  <param name="text"><![CDATA[
    <a href="http://sideviewapps.com">my test link</a>
  ]]></param>
</module>

dwaddle
SplunkTrust
SplunkTrust

Using the advanced HTML functionality, the Sideview Utils app provides the ability to include arbitrary HTML in a view. There is a good example of this functionality in the S-O-S app.

http://splunk-base.splunk.com/apps/22279/sideview-utils

http://splunk-base.splunk.com/apps/29008/sos-splunk-on-splunk

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...