<?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 Search for the Rows If at Least One Row in the Whole source Meets a Criteria in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580177#M202158</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Suppose source1 is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/var/log/source1.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2 term_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 4 term_1&lt;BR /&gt;&lt;BR /&gt;source2 is:&lt;BR /&gt;/var/log/source2.log&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3 term_1&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;SPAN&gt;When searching for term_1, I want to see the results only from source1. Because source1 also has an event having term_2 in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 21:32:47 GMT</pubDate>
    <dc:creator>hpaknia</dc:creator>
    <dc:date>2022-01-06T21:32:47Z</dc:date>
    <item>
      <title>How to Search for the Rows If at Least One Row in the Whole source Meets a Criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580169#M202154</link>
      <description>&lt;P&gt;I want to search like:&lt;/P&gt;&lt;P&gt;index=whatever "term_1" AND (at least one event in the source of the found record contains term_2)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suppose source1 is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/var/log/source1.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2 term_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 4 term_1&lt;BR /&gt;&lt;BR /&gt;source2 is:&lt;BR /&gt;/var/log/source2.log&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3 term_1&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;SPAN&gt;When searching for term_1, I want to see the results only from source1. Because source1 also has an event having term_2 in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580169#M202154</guid>
      <dc:creator>hpaknia</dc:creator>
      <dc:date>2022-01-06T21:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Search for the Rows If at Least One Row in the Whole source Meets a Criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580173#M202156</link>
      <description>&lt;P&gt;I'm having difficulty understanding this &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;. Could you explain what you mean by source?&lt;BR /&gt;&lt;BR /&gt;Perhaps you could drop in literal event samples? I'm not following the example presented.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580173#M202156</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2022-01-06T21:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Search for the Rows If at Least One Row in the Whole source Meets a Criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580177#M202158</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Suppose source1 is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/var/log/source1.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2 term_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 4 term_1&lt;BR /&gt;&lt;BR /&gt;source2 is:&lt;BR /&gt;/var/log/source2.log&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3 term_1&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;SPAN&gt;When searching for term_1, I want to see the results only from source1. Because source1 also has an event having term_2 in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580177#M202158</guid>
      <dc:creator>hpaknia</dc:creator>
      <dc:date>2022-01-06T21:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Search for the Rows If at Least One Row in the Whole source Meets a Criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580185#M202160</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Suppose source1 is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/var/log/source1.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2 term_2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 4 term_1&lt;BR /&gt;&lt;BR /&gt;source2 is:&lt;BR /&gt;/var/log/source2.log&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;event 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;event 3 term_1&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;SPAN&gt;When searching for term_1, I want to see the results only from source1. Because source1 also has an event having term_2 in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simply,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Index=test host=testhost term_1 term_2 (source=source1 OR source=source2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will search for term1 AND term2, with source1 OR source2&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope that's what u r looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 00:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580185#M202160</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-01-07T00:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Search for the Rows If at Least One Row in the Whole source Meets a Criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580204#M202163</link>
      <description>&lt;P&gt;Not exactly. I close this question. I agree that the question is kind of ambiguous. I have to deeply learn how Splunk querying works to find my way around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Update: Not sure how I can close the question without deleting it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 05:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Search-for-the-Rows-If-at-Least-One-Row-in-the-Whole/m-p/580204#M202163</guid>
      <dc:creator>hpaknia</dc:creator>
      <dc:date>2022-01-07T05:46:00Z</dc:date>
    </item>
  </channel>
</rss>

