Dashboards & Visualizations

SingleValue module not populating

HallDev
New Member

I am having trouble building an advanced dashboard per Developer Manual: Build Advanced Views. When I attempt to populate a SingleValue module with a HiddenSavedSearch all I see in the view is the SingleValue widget with "..."; however, if I use the simple dashboard XML everything works fine. Any pointers or ideas on what could be going on? This could be and instance of Single Value Not Working Since 4.2, but I don't think it applies as I only have the one SingleValue.

<view refresh="300" template="dashboard.html">
    <label>View Title</label>

    <module name="AccountBar" layoutPanel="appHeader">
        <param name="mode">lite</param>
    </module>
    <module name="AppBar" layoutPanel="navigationHeader"/>

    <module name="HiddenSavedSearch" layoutPanel="panel_row1_col1_grp1" group="Panel Title">
        <param name="savedSearch">My_Saved_Search</param>
        <module name="SingleValue">
            <param name="classField">range</param>
        </module>
    </module>
</view>

Edit: Thanks to Draineh's template, it looks like I was missing autoRun="True" as an attribute of HiddenSavedSearch

0 Karma
1 Solution

Drainy
Champion
<module name="HiddenSavedSearch" layoutPanel="panel_row1_col1" group="My Saved Search" autoRun="True">
    <param name="savedSearch">My_Saved_Search</param>
    <param name="groupLabel">My Saved Search</param>
    <module name="ViewstateAdapter">
      <param name="savedSearch">My_Saved_Search</param>
      <module name="HiddenFieldPicker">
        <param name="strictMode">True</param>
        <module name="JobProgressIndicator">
          <module name="SingleValue">
            <param name="classField">range</param>
          </module>
        </module>
      </module>
    </module>
  </module>

To save time I have pasted my singlevalues 🙂
That is the template I use for every saved search, if it still fails then please update your question with the saved search string.

View solution in original post

Drainy
Champion
<module name="HiddenSavedSearch" layoutPanel="panel_row1_col1" group="My Saved Search" autoRun="True">
    <param name="savedSearch">My_Saved_Search</param>
    <param name="groupLabel">My Saved Search</param>
    <module name="ViewstateAdapter">
      <param name="savedSearch">My_Saved_Search</param>
      <module name="HiddenFieldPicker">
        <param name="strictMode">True</param>
        <module name="JobProgressIndicator">
          <module name="SingleValue">
            <param name="classField">range</param>
          </module>
        </module>
      </module>
    </module>
  </module>

To save time I have pasted my singlevalues 🙂
That is the template I use for every saved search, if it still fails then please update your question with the saved search string.

Drainy
Champion

Good to hear 🙂 Happy Splunking

0 Karma

HallDev
New Member

This template works for me. Thanks. Edit: After working with this template, it looks like my problem was missing the autoRun attribute of the HiddenSavedSearch module

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...