<?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 use multiple AND &amp;amp; OR condition? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627055#M9302</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252905"&gt;@fivesevenfeeeet&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use parenthesis in boolean conditions to define rules:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (sampleIndex) ((Jane London) OR (John Spain) OR (Terry France))
| stats name, country, address&lt;/LI-CODE&gt;&lt;P&gt;the AND condition isn't mandatory in searches (it's mandatory in eval).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 10:48:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-01-13T10:48:21Z</dc:date>
    <item>
      <title>How to use multiple AND &amp; OR condition?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627053#M9301</link>
      <description>&lt;P&gt;Hello, I'm looking to create a query that helps to search the following conditions.&lt;/P&gt;&lt;P&gt;For example, get the address for&lt;/P&gt;&lt;P&gt;1. John from Spain&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Jane from London&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Terry from France&lt;/P&gt;&lt;P&gt;My current methodology is to run each query one by one for each examples.&lt;/P&gt;&lt;P&gt;index IN ( sampleIndex)&lt;BR /&gt;John AND Spain&lt;BR /&gt;| stats name, country, address&lt;BR /&gt;&lt;BR /&gt;After running the above query, I run for the next example.&lt;BR /&gt;index IN ( sampleIndex)&lt;BR /&gt;Jane AND London&lt;BR /&gt;| stats name, country, address&lt;/P&gt;&lt;P&gt;Running 1 query for 1 example will become tedious if I have thousand of examples to go through.&lt;/P&gt;&lt;P&gt;It is possible to get some help on creating query that help to run similar logic like the following,&lt;/P&gt;&lt;P&gt;index IN ( sampleIndex)&lt;BR /&gt;Jane AND London OR&lt;BR /&gt;John AND Spain OR&amp;nbsp;&lt;BR /&gt;Terry AND France&lt;BR /&gt;| stats name, country, address&lt;/P&gt;&lt;P&gt;Sorry if my question isn't clear.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:20:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627053#M9301</guid>
      <dc:creator>fivesevenfeeeet</dc:creator>
      <dc:date>2023-01-13T10:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple AND &amp; OR condition?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627055#M9302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252905"&gt;@fivesevenfeeeet&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use parenthesis in boolean conditions to define rules:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (sampleIndex) ((Jane London) OR (John Spain) OR (Terry France))
| stats name, country, address&lt;/LI-CODE&gt;&lt;P&gt;the AND condition isn't mandatory in searches (it's mandatory in eval).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627055#M9302</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-13T10:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use multiple AND &amp; OR condition?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627073#M9304</link>
      <description>&lt;P&gt;Life saver, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-use-multiple-AND-amp-OR-condition/m-p/627073#M9304</guid>
      <dc:creator>fivesevenfeeeet</dc:creator>
      <dc:date>2023-01-13T14:47:11Z</dc:date>
    </item>
  </channel>
</rss>

