<?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 come the text input token is not filtering out all results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418345#M120296</link>
    <description>&lt;P&gt;Why are you using an outer join? Do you want the events from index cms_vm to be always displayed or to be displayed when the join condition matches. You can use join type=inner for that case.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 19:16:38 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-10-05T19:16:38Z</dc:date>
    <item>
      <title>How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418340#M120291</link>
      <description>&lt;P&gt;I'm having trouble filtering results using a text input token.  &lt;/P&gt;

&lt;P&gt;When I enter the name of an application, the record with the correct app name is returned but so are other fields where the Application is listed as Unknown/null.  I'm guessing this has something to do with the token being in a subsearch, but I can't seem to prevent the other rows being returned.&lt;/P&gt;

&lt;P&gt;Let's say I'm searching for Application "test".  I just want to see the first row, instead I see:&lt;BR /&gt;
&lt;STRONG&gt;VM         IP        OperatingSystem_Code        Application        BusinessAppOwner       BusinessAppSME       ITAppOwner        ITAppSME&lt;/STRONG&gt;&lt;BR /&gt;
Test       1.2.3   Windows                                  Test                    Person A                          Person B                      Person C              Person D&lt;BR /&gt;
Test1     4.5.6   Wndows                                   Unknown&lt;BR /&gt;
Test2     7.8.9    Linux                                        Unknown&lt;BR /&gt;
Test3    10.1.2   Linux                                        Unknown&lt;BR /&gt;
.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
    &amp;lt;label&amp;gt;VM&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;prefix&amp;gt;VM="&amp;lt;/prefix&amp;gt;
    &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;input type="text" token="appfield" searchWhenChanged="true"&amp;gt;
    &amp;lt;label&amp;gt;Application&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;prefix&amp;gt;Application="&amp;lt;/prefix&amp;gt;
    &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
  &amp;lt;/input&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;VM&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=cms_vm OperatingSystem_Code=*2008* $vmname$ | dedup VM| eval VM=upper(VM)| join type=outer VM [search index="cms_app_server" earliest="10/01/2018:00:00:00" latest="10/01/2018:24:00:00" "$appfield$" | fields VM Application]| join type=outer Application [search index="cms_application" earliest=1 latest=now() | dedup Code | fields Application BusinessAppOwner BusinessAppSME ITAppOwner ITAppSME] | table VM IP OperatingSystem_Code Application BusinessAppOwner BusinessAppSME ITAppOwner ITAppSME| fillnull value=Unknown Application| rename Asset AS "Asset Type", OperatingSystem_Code AS "Operating System"
      &amp;lt;earliest&amp;gt;1537848000&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;1537934400&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 18:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418340#M120291</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T18:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418341#M120292</link>
      <description>&lt;P&gt;Can you give &lt;CODE&gt;Application= “$apptoken$”&lt;/CODE&gt; in your search &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:01:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418341#M120292</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-05T19:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418342#M120293</link>
      <description>&lt;P&gt;Consider adding Application=* to eliminate any null values.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418342#M120293</guid>
      <dc:creator>nswondem</dc:creator>
      <dc:date>2018-10-05T19:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418343#M120294</link>
      <description>&lt;P&gt;Here's an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search index="cms_app_server" earliest="10/01/2018:00:00:00" latest="10/01/2018:24:00:00" Application=* "$appfield$" | fields VM Application]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418343#M120294</guid>
      <dc:creator>nswondem</dc:creator>
      <dc:date>2018-10-05T19:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418344#M120295</link>
      <description>&lt;P&gt;I've tried doing that, but I still get the same issue where the Unknown results still appear.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418344#M120295</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T19:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418345#M120296</link>
      <description>&lt;P&gt;Why are you using an outer join? Do you want the events from index cms_vm to be always displayed or to be displayed when the join condition matches. You can use join type=inner for that case.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418345#M120296</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-05T19:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418346#M120297</link>
      <description>&lt;P&gt;I want to see all events, not just ones where the condition matches. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418346#M120297</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418347#M120298</link>
      <description>&lt;P&gt;I've tried this too.  When I try this null values still appear in the stats table not just the record that fits the token criteria.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418347#M120298</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T19:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418348#M120299</link>
      <description>&lt;P&gt;your VM field is the key between index cms_vm and cms_app_server.&lt;BR /&gt;
Since your VM  values Test, Test1, Test2, Test3 is present in outer query so all the rows are appearing.&lt;BR /&gt;
You are searching on Application field within the inner query, so the inner query is giving you only first row but due to outer quesry you are getting all the rows which have blank application and then you have one more outer join.&lt;BR /&gt;
Your  where should be just before table-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|where Application="$appfield$" | table VM IP OperatingSystem_Code Application BusinessAppOwner BusinessAppSME ITAppOwner ITAppSME|
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418348#M120299</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2020-09-29T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418349#M120300</link>
      <description>&lt;P&gt;Yeah I know it's tricky with the outer joins.  I tried your suggestion but get "No results found" even when all tokens are on 'Select *'&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418349#M120300</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418350#M120301</link>
      <description>&lt;P&gt;If the appfield token has the value, then it should be able to filter in the where clause. if appfield is TEST then you should get first row. Did you try removing the quotes like where Application=$appfield$&lt;/P&gt;

&lt;P&gt;Also you can see the runtime token value on the  dashboard URL as form.appfield=value, so that can help to check if the token is populating correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418350#M120301</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-05T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How come the text input token is not filtering out all results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418351#M120302</link>
      <description>&lt;P&gt;The token looks like it's populating correctly based on the dashboard URL.  I also tried removing the quotes, but it still doesn't provide any results.  &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-the-text-input-token-is-not-filtering-out-all-results/m-p/418351#M120302</guid>
      <dc:creator>gbwilson</dc:creator>
      <dc:date>2018-10-05T20:22:20Z</dc:date>
    </item>
  </channel>
</rss>

