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
Get Updates on the Splunk Community!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...