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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...