Getting Data In

Add hosts to Splunk multiselect UI

kirti_gupta12
Path Finder

I want to populate the list of hosts in the multiselect input option in Splunk.

index=someIndexName * host!="notThis*" | stats values(host) as host

I can see the list of hosts getting populated in Splunk. However, they are not getting populated in multiselect list. It says "populating" and nothing shows up.

0 Karma
1 Solution

vnravikumar
Champion

Hi

Try like below

<form>
  <label>multiselect</label>
  <fieldset submitButton="false">
    <input type="multiselect" token="field1">
      <label>field1</label>
      <fieldForLabel>host</fieldForLabel>
      <fieldForValue>host</fieldForValue>
      <search>
        <query>index=_internal 
| stats count by host</query>
      </search>
    </input>
  </fieldset>
</form>

View solution in original post

vnravikumar
Champion

Hi

Try like below

<form>
  <label>multiselect</label>
  <fieldset submitButton="false">
    <input type="multiselect" token="field1">
      <label>field1</label>
      <fieldForLabel>host</fieldForLabel>
      <fieldForValue>host</fieldForValue>
      <search>
        <query>index=_internal 
| stats count by host</query>
      </search>
    </input>
  </fieldset>
</form>
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...