<?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: Multi source  with one index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671666#M230144</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The inclusive condition also worked...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 05:34:50 GMT</pubDate>
    <dc:creator>nithys</dc:creator>
    <dc:date>2023-12-13T05:34:50Z</dc:date>
    <item>
      <title>Multi source  with one index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671504#M230113</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need some help in searching,&amp;nbsp;I have 1 index but it has multiple sources,&lt;/P&gt;&lt;P&gt;Index = Index1&lt;/P&gt;&lt;P&gt;Source = source 1&lt;BR /&gt;Source = source 2&lt;BR /&gt;Source = source 3&lt;/P&gt;&lt;P&gt;Source = source 4&lt;/P&gt;&lt;P&gt;Source = source 5&lt;/P&gt;&lt;P&gt;Source = source 6&lt;/P&gt;&lt;P&gt;Source = source 7&lt;/P&gt;&lt;P&gt;Now i have a requirement to create an alert search with only first 4 source and exclude the remaining three source 5,6,7&lt;BR /&gt;&lt;BR /&gt;I tried using below query&lt;BR /&gt;&lt;BR /&gt;Index = Index1 source IN ("source 1","source 2","source 3","source 4")&lt;BR /&gt;&lt;BR /&gt;when i tried to exclude 4,5,6 source,getting error.Can you help on this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Index = Index1&lt;BR /&gt;source IN ("source 1","source 2","source 3","source 4")&lt;BR /&gt;source&amp;nbsp; NOT IN ("source 4","source 5","source 3","source 6")&lt;BR /&gt;or&lt;BR /&gt;Index = Index1 source ! IN ("source 4","source 5","source 6")&lt;BR /&gt;source IN ("source 1","source 2","source 3","source 4")&lt;BR /&gt;source ! IN ("source 4","source 5","source 3","source 6")&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 04:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671504#M230113</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2023-12-12T04:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multi source  with one index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671509#M230114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260549"&gt;@nithys&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to put the NOT operatore befor the field, not before IN:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = Index1
source IN ("source 1","source 2","source 3","source 4")
NOT source IN ("source 4","source 5","source 3","source 6")&lt;/LI-CODE&gt;&lt;P&gt;Anyway, only for my curiosity: the field source should be unique, so the first (inclusive) condition should be sufficient and the second (exclusive) condition shouldn't be mandatory.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 07:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671509#M230114</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-12T07:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multi source  with one index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671666#M230144</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The inclusive condition also worked...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 05:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-source-with-one-index/m-p/671666#M230144</guid>
      <dc:creator>nithys</dc:creator>
      <dc:date>2023-12-13T05:34:50Z</dc:date>
    </item>
  </channel>
</rss>

