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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...