Splunk Search

SearchLister module SearchSelectLister_0_1_0 was not given a search or a saved search name to power itself and thus cannot render any data

jangid
Builder

Whats wrong in my xml?

<fieldset autoRun="true">
        <input type="time" searchWhenChanged="true">
            <default>Last 12 Hours</default>
        </input>
        <input type="dropdown" token="JT_JOB_ID">
            <label>Select Job ID</label>
            <populatingsavedsearch fieldForValue="JT_JOB" fieldForLabel="JT_JOB">cob_job_list</populatingsavedsearch>
        </input>
</fieldset>

myapp/local/savedsearches.conf

[cob_job_list]
is_visible = false
search = eventtype=counters_jt | table JT_JOB | dedup JT_JOB | sort JT_JOB

Tags (1)
1 Solution

sideview
SplunkTrust
SplunkTrust

when you use <populatingSearch> and <populatingSavedSearch>, the tags are case-sensitive and they have to be in camel-case like that, not all lowercase. I think that's your only problem.

The simplified XML doesn't have validation that could tell you that you have an undefined param and you have no populatingSavedSearch param, so it's only telling you about the latter problem.

View solution in original post

sideview
SplunkTrust
SplunkTrust

when you use <populatingSearch> and <populatingSavedSearch>, the tags are case-sensitive and they have to be in camel-case like that, not all lowercase. I think that's your only problem.

The simplified XML doesn't have validation that could tell you that you have an undefined param and you have no populatingSavedSearch param, so it's only telling you about the latter problem.

jangid
Builder

If I load this search (cob_job_list) its give me list of all available ID and If I use search terms here it'll also fill the combo but problem with only populatingsavedsearch.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...