Getting Data In

How to use a drop-down menu to filter a Saved Search?

JoshuaJohn
Contributor

I have a saved search

|inputlookup 2040Info.csv 

It produces a table like this
alt text

How would I use drop-down menus to be able to see for example Status that is not use, or just information on ip 10.224.27.2?

0 Karma

woodcock
Esteemed Legend

Like this:

<form>
  <label>Your Label Here</label>
  <description>Your Description Here</description>
  <fieldset submitButton="false" autoRun="true">
    <input type="text" token="IPAddress_token" searchWhenChanged="true">
      <label>IP Address</label>
      <default>*</default>
    </input>
    <input type="dropdown" token="Status_token" searchWhenChanged="true">
      <label>Status</label>
      <choice value="*">ALL</choice>
      <choice value="In use">In use</choice>
      <choice value="foo">foo</choice>
      <choice value="bar">bar</choice>
      <default>*</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <title>Your Title Here</title>
      <table>
        <search>
          <query>|inputlookup 2040Info.csv | search IP_Address=$IPAddress_token$ Status=$Status_token$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">cell</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
</form>
0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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