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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...