<?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: Searching over list from subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256577#M76810</link>
    <description>&lt;P&gt;Yes The Subsearch with generate the OR condition like that..&lt;BR /&gt;
Could you share the query that you tried (and failed), we can see any possible issues with that?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 14:38:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-10-02T14:38:02Z</dc:date>
    <item>
      <title>Searching over list from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256574#M76807</link>
      <description>&lt;P&gt;I don't seem to be able to wrap my head around this search.  I have a set of data that uses a unique ID to tie a chain of actions together across multiple events.  I want to search through the index, find the IDs from all of the events that match &lt;CODE&gt;match_criteria1&lt;/CODE&gt;, then return any event in the index that has one of those IDs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name   ID   other field
------ ---  ----------------
event1  A   match_criteria1
event2  B   match_criteria1
event3  C   match_criteria1
event4  A   something
event5  B   something
event6  D   something else
event7  E   other data
event8  E   other data 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should return:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name   ID   other field
------ ---  ----------------
event1  A   match_criteria1
event2  B   match_criteria1
event3  C   match_criteria1
event4  A   something
event5  B   something
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 13:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256574#M76807</guid>
      <dc:creator>adam_reber</dc:creator>
      <dc:date>2015-10-02T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Searching over list from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256575#M76808</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Blah sourcetype=blah [search index=Blah sourcetype=blahh other_field=match_criteria1 | stats count by ID | table ID ] | table name ID other_field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Oct 2015 13:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256575#M76808</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-02T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Searching over list from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256576#M76809</link>
      <description>&lt;P&gt;Hmm.. that's exactly what I've seen examples of and tried, but it isn't returning any results.  I need to do an eval on the criteria field, perhaps that is messing it up.&lt;/P&gt;

&lt;P&gt;If you append a search like that, which is generating a single column table, is it equivalent to &lt;BR /&gt;
"field=a OR field=b OR field=c"?&lt;BR /&gt;
 - OR -&lt;BR /&gt;
"a OR b OR c"&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 14:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256576#M76809</guid>
      <dc:creator>adam_reber</dc:creator>
      <dc:date>2015-10-02T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Searching over list from subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256577#M76810</link>
      <description>&lt;P&gt;Yes The Subsearch with generate the OR condition like that..&lt;BR /&gt;
Could you share the query that you tried (and failed), we can see any possible issues with that?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 14:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-over-list-from-subsearch/m-p/256577#M76810</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-02T14:38:02Z</dc:date>
    </item>
  </channel>
</rss>

