<?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: Subsearch Not Filtering Results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445360#M126336</link>
    <description>&lt;P&gt;Sorry that was a typo. should read:&lt;/P&gt;

&lt;P&gt;place="that_place" | rename ip AS src&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 07:36:05 GMT</pubDate>
    <dc:creator>jcullins21</dc:creator>
    <dc:date>2018-06-14T07:36:05Z</dc:date>
    <item>
      <title>Subsearch Not Filtering Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445358#M126334</link>
      <description>&lt;P&gt;I am trying to pull a list of filtered IPs from one index and then use that list as a reference to see external traffic from another index. When I run the subsearch command alone it works perfectly and gives me the list I desired. But when I throw the outer search in the mix it gives me all the IP addresses associated with "that_place" and nothing is filtered. &lt;/P&gt;

&lt;P&gt;Index= two sourcetype=two dest_ip!=22.*&lt;BR /&gt;
[ search index=one sourcetype=one &lt;BR /&gt;
os_type="Thing_1" OR os_type="Thing_2"  OR os_type="Thing_3" &lt;BR /&gt;
NOT os_type!="Thing_4"&lt;BR /&gt;
NOT os_description="Thing_5"&lt;BR /&gt;
NOT os_description="Thing_6"&lt;BR /&gt;
NOT os_hostname="Thing_7"&lt;BR /&gt;
place="that_place" rename ip AS src | dedup src | table src]&lt;BR /&gt;
| table src,dest_ip,dest_port,bytes_in,bytes_out&lt;/P&gt;

&lt;P&gt;I'm pretty new to Splunk and I know there has to be a better way to complete a simple search across different indexes.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445358#M126334</guid>
      <dc:creator>jcullins21</dc:creator>
      <dc:date>2020-09-29T19:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Not Filtering Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445359#M126335</link>
      <description>&lt;P&gt;place="that_place" rename ip AS src&lt;BR /&gt;&lt;BR /&gt;
In your rename command, there is no leading pipe or its typo ?&lt;/P&gt;

&lt;P&gt;Anyways I think better to move dedup in outer search&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:16:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445359#M126335</guid>
      <dc:creator>sushantmhatre</dc:creator>
      <dc:date>2018-06-13T21:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Not Filtering Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445360#M126336</link>
      <description>&lt;P&gt;Sorry that was a typo. should read:&lt;/P&gt;

&lt;P&gt;place="that_place" | rename ip AS src&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 07:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Not-Filtering-Results/m-p/445360#M126336</guid>
      <dc:creator>jcullins21</dc:creator>
      <dc:date>2018-06-14T07:36:05Z</dc:date>
    </item>
  </channel>
</rss>

