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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

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 ...