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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...