<?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: Optimizing a search in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128125#M34779</link>
    <description>&lt;P&gt;The answer given by somesoni2 will make it more efficient. The other option is to create a summary index, then search the summary index.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2013 00:52:52 GMT</pubDate>
    <dc:creator>ShaneNewman</dc:creator>
    <dc:date>2013-11-05T00:52:52Z</dc:date>
    <item>
      <title>Optimizing a search in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128123#M34777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to do a search which basically  generates measures based on the value of a field such as X:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search logs|…..| timechart count(eval(X="1" OR X="2")) AS "A",  count(eval(X="1")) AS "B",  count(eval(X="2")) AS "C",  count(eval(X="3")) AS "D", count(eval(X="4" OR X="5" OR X="6")) as "E" span=1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;however, generating results takes for ever. If I remove some of the counts (like the one to generate "E") it becomes much faster. Is there anyway to better optimize this search?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128123#M34777</guid>
      <dc:creator>gimbil</dc:creator>
      <dc:date>2013-11-04T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing a search in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128124#M34778</link>
      <description>&lt;P&gt;Try following&lt;/P&gt;

&lt;P&gt;search logs|…..| eval countField=case(X="1" OR X="2","A",X="1","B",X="2","C",X="3","D",X="4" OR X="5" OR X="6","E",1=1,"E") | timechart count(eval(countfield="A"))AS "A",  count(countfield="B") AS "B",  count(eval(countfield="C")) AS "C",  count(eval(countfield="D")) AS "D", count(eval(countfield="E")) as "E" span=1d&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128124#M34778</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-04T21:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing a search in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128125#M34779</link>
      <description>&lt;P&gt;The answer given by somesoni2 will make it more efficient. The other option is to create a summary index, then search the summary index.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 00:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128125#M34779</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-05T00:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing a search in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128126#M34780</link>
      <description>&lt;P&gt;how to create a summary index and how will I call it in the search bar?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 15:09:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128126#M34780</guid>
      <dc:creator>mdmaala</dc:creator>
      <dc:date>2019-03-19T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing a search in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128127#M34781</link>
      <description>&lt;P&gt;@mdmaala &lt;/P&gt;

&lt;P&gt;Below link will help you.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/packetiq/SplunkArchitect/blob/master/Creating-and-Using-Summary-Indexes.md"&gt;https://github.com/packetiq/SplunkArchitect/blob/master/Creating-and-Using-Summary-Indexes.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 09:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Optimizing-a-search-in-splunk/m-p/128127#M34781</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-03-25T09:15:22Z</dc:date>
    </item>
  </channel>
</rss>

