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.

Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...