Dashboards & Visualizations

advanced xml charting

splunkpoornima
Communicator

hi ,

i used the below XML code to create the bar chart for the durtaion count of TaskAction and if we drilldown it should the trend chart..

plz verify this XML and give inputs.. after running this code..its shows Splunk encountered the following unknown module: "count of duration" . The view may not load properly.






*
False
1


dashboard



source="C:\Users\20875\Desktop\taskmanager_log.txt"| transaction TaskAction startswith=START endswith=Succeeded|chart count(duration) by TaskAction

bar
TaskName
count
none


100%
160px

    <!-- we swap out the search to be a timechart.  -->
    <module name="HiddenSearch">
      <param name="search">source="C:\\Users\\20875\\Desktop\\taskmanager_log.txt"| transaction TaskAction startswith=START endswith=Succeeded|timechart count(duration) by TaskAction </param>
           <!-- this module will grab the value we clicked on and put it in as a searchterm,   series="someSourcetype".   -->
      <module name="ConvertToIntention">
        <param name="intention">
          <param name="name">addterm</param>
          <param name="arg">
   <param Value="TaskAction">$click.value$</param>
          </param>
 </param>

        <!-- finally, we render the search in another FlashChart, and we throw in a JobProgressIndicator for good measure. -->
        <module name="Count of Duration"></module>

        <!-- We throw in a header so we can tell the user what they clicked on. -->
        <module name="SimpleResultsHeader">
          <param name="entityName">results</param>
          <param name="headerFormat">Trendchart=$click.value$ $time$</param>
        </module>
        <module name="HiddenChartFormatter">
          <param name="chart">line</param>
          <param name="primaryAxisTitle.text">Time</param>
          <param name="secondaryAxisTitle.text">events per second</param>
          <param name="legend.placement">none</param>
          <module name="FlashChart">
            <param name="width">100%</param>
            <param name="height">160px</param>
          </module>
        </module>
      </module>
      </module>
    </module>
  </module>
</module>

pls provide inputs ..about wheather the above code is correct and also about the error

Tags (1)
0 Karma

Ayn
Legend

Uh, well the error message says it really...you got a module in there called "Count of Duration":

 <module name="Count of Duration"/>

Like the error message says, there's no module called that, and I don't know really what you're trying to do there.

bmacias84
Champion
0 Karma
Get Updates on the Splunk Community!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...