<?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: Splunk SPL best practice in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508717#M142132</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am not sure how to use multiple indexes without using IN in the query..i dont want to use OR as it takes only one index.i want to use 2 indexes&lt;BR /&gt;&lt;BR /&gt;Can you help?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 04:46:14 GMT</pubDate>
    <dc:creator>sivaranjiniG</dc:creator>
    <dc:date>2020-07-13T04:46:14Z</dc:date>
    <item>
      <title>Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508689#M142124</link>
      <description>&lt;P&gt;Will a parentheses Surrounded SPL queries make any difference?&lt;/P&gt;&lt;P&gt;For Example:&lt;BR /&gt;&lt;STRONG&gt;(index IN (“indexA*”,”indexB*”) source=”sourceA”) &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;index IN (“indexA*”,”indexB*”) source=”sourceA”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;this is a big query want to know if adding&amp;nbsp; parentheses make any difference in performance wise ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 15:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508689#M142124</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2020-07-12T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508700#M142128</link>
      <description>Yes, parentheses can make a difference, but in the example given they do not.&lt;BR /&gt;Examine the job inspector for each search to confirm.</description>
      <pubDate>Sun, 12 Jul 2020 17:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508700#M142128</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-12T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508705#M142129</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;To answer your question, the use of paranthesis doesn't affect the performance of your splunk query.&lt;/P&gt;&lt;P&gt;But on the other hand using a "=" instead of the "IN" function will help you; as IN is a function call and splunk processor will always first go to the function definition decode the function then resume the search query.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 21:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508705#M142129</guid>
      <dc:creator>adityagupta3010</dc:creator>
      <dc:date>2020-07-12T21:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508716#M142131</link>
      <description>&lt;P&gt;I checked job Inspect there is difference in seconds..as i said its a big query it may impact performance&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for suggesting me to check job inspect&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 04:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508716#M142131</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2020-07-13T04:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508717#M142132</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am not sure how to use multiple indexes without using IN in the query..i dont want to use OR as it takes only one index.i want to use 2 indexes&lt;BR /&gt;&lt;BR /&gt;Can you help?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 04:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508717#M142132</guid>
      <dc:creator>sivaranjiniG</dc:creator>
      <dc:date>2020-07-13T04:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SPL best practice</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508806#M142150</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator is translated into &lt;FONT face="courier new,courier"&gt;OR&lt;/FONT&gt;s before the query executes.&amp;nbsp; So&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN ("indexA*","indexB*")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;becomes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index "indexA*" OR index= "indexB*"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-SPL-best-practice/m-p/508806#M142150</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-13T12:42:54Z</dc:date>
    </item>
  </channel>
</rss>

