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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...