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!

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

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