<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to edit my XML for drop-down inputs to properly filter on expected field values? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241857#M15011</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 16:50:36 GMT</pubDate>
    <dc:creator>fmpa_isaac</dc:creator>
    <dc:date>2016-06-30T16:50:36Z</dc:date>
    <item>
      <title>How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241853#M15007</link>
      <description>&lt;P&gt;I have an issue with my drop-down inputs in my dashboard. If I select a dest port 80 from my list, I expect to only see dest port 80 in my results. However, it's also filtering on the source port 80. How can I stop this behavior, because it's occurring in other dashboards that I have?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="Dest_Port" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select a Dest Port:&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;sourcetype="udp:514" host="172.20.1.62" | stats values(Dest_Port) as Dest_Port | mvexpand Dest_Port | sort Dest_Port&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Dest_Port&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Dest_Port&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="URL" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select URL&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;sourcetype="udp:514" host="172.20.1.62" | stats values(URL) as URL | mvexpand URL | sort URL&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;URL&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;URL&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;sourcetype="udp:514" host="172.20.1.62" $User$ $Action$ $Src_IP$ $Dest_IP$ $Dest_Port$ $URL$ | table _time, User, Src_IP, Src_Port, Dest_IP, Dest_Port, Rule_Action, URL&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241853#M15007</guid>
      <dc:creator>fmpa_isaac</dc:creator>
      <dc:date>2016-06-30T16:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241854#M15008</link>
      <description>&lt;P&gt;Also, what I am seeing is that it looks for the value of what I am searching for all throughout the raw data.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241854#M15008</guid>
      <dc:creator>fmpa_isaac</dc:creator>
      <dc:date>2016-06-30T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241855#M15009</link>
      <description>&lt;P&gt;in your search I don't see anything before $Dest_Port$ and In your dropdown input there isn't the prefix; in this way you don't use the field and the search is limited to the string from the dropdown.&lt;BR /&gt;
You should use a prefix in the dropdown input as the following      &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;prefix&amp;gt;Dest_Port="&amp;lt;/prefix&amp;gt;
&amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or in the search you shoud insert: &lt;BR /&gt;
Dest_Port="$Dest_Port$" instead of $Dest_Port$.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241855#M15009</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241856#M15010</link>
      <description>&lt;P&gt;Try adding fieldnames to each. Like this (adjust for correct field names)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="udp:514" host="172.20.1.62" User="$User$" Action="$Action$" Src_IP="$Src_IP$" Dest_IP="$Dest_IP$"  Dest_Post="$Dest_Port$" URL=" $URL$" | table _time, User, Src_IP, Src_Port, Dest_IP, Dest_Port, Rule_Action, URL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241856#M15010</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-30T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241857#M15011</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241857#M15011</guid>
      <dc:creator>fmpa_isaac</dc:creator>
      <dc:date>2016-06-30T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my XML for drop-down inputs to properly filter on expected field values?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241858#M15012</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 16:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-XML-for-drop-down-inputs-to-properly-filter-on/m-p/241858#M15012</guid>
      <dc:creator>fmpa_isaac</dc:creator>
      <dc:date>2016-06-30T16:50:41Z</dc:date>
    </item>
  </channel>
</rss>

