Dashboards & Visualizations

view strange behavior

DTERM
Contributor

I've got the following code in a view. It works fine with one strange exception. I see the text "Loading..." in the upper right hand side of the view when I include the HTML portion (in bold below). If I remove the HTML, the "Loading..." text disappears. Now the view contents and the HTML work so I don't see what could be "Loading". Any clue as to what is causing this? Thanks.

    <?xml version="1.0"?>

<view template="dashboard.html">

  **<module name="HTML" layoutPanel="viewHeader">
    <param name="html"><![CDATA[
    <h1 align="center">Customer Activity</h1>
    <h2> bla bla</h2>
    <h3> more bla bla</h3>
    <a align="right" href="/en-US/app/MyApp/about_dashboard">Customer Home</a>
    <br>
    odalsfaslj saljdfasjf
    ]]></param>
  </module>**

<label>Customer Activity</label>
  <module name="GenericHeader" layoutPanel="panel_row1_col1">
    <param name="label">Customer Activity (Most ACTIVE)</param>
      <param name="invervalInSeconds">300</param>
      <module name="HiddenSearch" autoRun="True" layoutPanel="panel_row1_col1_grp1">
    <param name="search"> 
              index="MyApp" sourcetype="client" | timechart count by client 
    </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>
</view>
Tags (1)
0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

The 'Loading' text will get stuck there whenever there is an exception being thrown in the Javascript. In the future you can go to 'Tools > Error Console' in firefox to see the text of the error.

The problem here is simply that you have not included the SideviewUtils module. This is mentioned as a requirement on the homepage of the Sideview Utils documentation. If you use any of the modules from the app, you have to also include the invisible module whose name is "SideviewUtils" somewhere on the page.

Take a closer look at the documentation, both the intro pages in Sideview Utils and dont forget the specific documentation around the HTML module.

View solution in original post

sideview
SplunkTrust
SplunkTrust

The 'Loading' text will get stuck there whenever there is an exception being thrown in the Javascript. In the future you can go to 'Tools > Error Console' in firefox to see the text of the error.

The problem here is simply that you have not included the SideviewUtils module. This is mentioned as a requirement on the homepage of the Sideview Utils documentation. If you use any of the modules from the app, you have to also include the invisible module whose name is "SideviewUtils" somewhere on the page.

Take a closer look at the documentation, both the intro pages in Sideview Utils and dont forget the specific documentation around the HTML module.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...