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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...