<?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 improve the performance of our Splunk search query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112262#M29485</link>
    <description>&lt;P&gt;Do you ever use the &lt;CODE&gt;fields&lt;/CODE&gt; command to only retrieve the relevant fields ?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2014 19:24:35 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2014-11-13T19:24:35Z</dc:date>
    <item>
      <title>How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112261#M29484</link>
      <description>&lt;P&gt;We have indexed access logs into index="mpsapp", When we do a stats search or filter any records for these data for a particular month, it's extremely slow (took more than 1.5 hours for first query). Can you please tell us how to optimize this query?&lt;/P&gt;

&lt;P&gt;Sample Splunk Queries :&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;index="mpsapp" | stats count by response_code     (filtered time range only for October month, we have extracted the filed response_code in search node)&lt;/LI&gt;
&lt;LI&gt;source="&lt;EM&gt;mps&lt;/EM&gt;" date_year=2014 date_month=october response_code!=200&lt;/LI&gt;
&lt;LI&gt;date_year=2014 date_month=november site="fandango-web" path="%2F"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Total Events for the month of October is :  355,925,951 events (10/1/14 12:00:00.000 AM to 11/1/14 12:00:00.000 AM)&lt;BR /&gt;
Splunk Version : 6.1.4&lt;/P&gt;

&lt;P&gt;Is there any configuration level optimization required to speed-up the query response? Please share your suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112261#M29484</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2020-09-28T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112262#M29485</link>
      <description>&lt;P&gt;Do you ever use the &lt;CODE&gt;fields&lt;/CODE&gt; command to only retrieve the relevant fields ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 19:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112262#M29485</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-13T19:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112263#M29486</link>
      <description>&lt;P&gt;we haven't tried any fields command. Can you please give me some sample for fields command.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 19:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112263#M29486</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2014-11-13T19:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112264#M29487</link>
      <description>&lt;P&gt;Hi dhavamanis,&lt;/P&gt;

&lt;P&gt;try to use &lt;CODE&gt;index&lt;/CODE&gt; and any of the &lt;CODE&gt;metadata&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Metadata"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Metadata&lt;/A&gt; fields ( host, source or sourcetype) in your searches. Try to filter the fields as tight as possible in your base search or use &lt;CODE&gt;fields&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Fields#Examples"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Fields#Examples&lt;/A&gt; as @aljohnson_splunk  mentioned.&lt;/P&gt;

&lt;P&gt;Do not use &lt;CODE&gt;NOT&lt;/CODE&gt; searches, rather search for events that you want and need.&lt;/P&gt;

&lt;P&gt;Also, take a look at this great Answer of @jrodman about &lt;STRONG&gt;How do optimizations for field-based searches work&lt;/STRONG&gt; &lt;A href="http://answers.splunk.com/answers/172275/how-do-optimizations-for-field-based-searches-work.html#answer-172230"&gt;http://answers.splunk.com/answers/172275/how-do-optimizations-for-field-based-searches-work.html#answer-172230&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps to understand the possibilities to speed up your searches...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112264#M29487</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-13T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112265#M29488</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; sourcetype=access_combined
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Job Inspector: This search has completed and has returned 1,000 results by scanning 177,830 events in 14.393 seconds.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined | fields clientip bytes action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Job Inpector: This search has completed and has returned 1,000 results by scanning 177,835 events in 3.508 seconds.&lt;/P&gt;

&lt;P&gt;It's similar to using fast mode. Are you using fast mode? &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/Changethesearchmode"&gt;Set search mode to adjust your search experience&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Installation/Summaryofperformancerecommendations"&gt;Performance recommendations&lt;/A&gt; &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Installation/HowsearchtypesaffectSplunkperformance"&gt;How search types affect performance&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112265#M29488</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-13T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112266#M29489</link>
      <description>&lt;P&gt;Thanks!. We have accelerated the report and added to Dashboard. Using the summary index and its fetching results very fast.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112266#M29489</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2014-12-10T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112267#M29490</link>
      <description>&lt;P&gt;We have done the following things after doing R &amp;amp; D.&lt;/P&gt;

&lt;P&gt;1.Changed date range from real time to today.&lt;BR /&gt;
2.Set dashboard refresh time to every 5 minutes.&lt;BR /&gt;
3.Summary indexing&lt;BR /&gt;
4.Report acceleration &lt;BR /&gt;
5.Scheduled this search every 5 minutes so it will save in the cache.&lt;BR /&gt;
6.Search query optimization.&lt;BR /&gt;
7.Auto restart splunk daily at 2:00 AM UTC  so that memory will be released.&lt;BR /&gt;
8.Set high priority to this dashboard.&lt;BR /&gt;
7.Set high priority to this scheduled search.&lt;BR /&gt;
8.Run stats tables first then start charts.&lt;BR /&gt;
9.Changed the delimer of raw data from text files method to new way which will reduce the time while converting raw data to fields of delimiting proccess.&lt;BR /&gt;
10.Reduce the number of indexes and source type&lt;/P&gt;

&lt;P&gt;After all this my dashboards loading time reduced from 3 minutes to less than 10 seconds.&lt;/P&gt;

&lt;P&gt;Super fast&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 10:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112267#M29490</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-04-26T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve the performance of our Splunk search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112268#M29491</link>
      <description>&lt;P&gt;You can improve the performance by 10 X times by using Splunk meta data fields. I can help you in that please contact me in fiverr or Email (&lt;A href="mailto:hurdlej1@gmail.com"&gt;hurdlej1@gmail.com&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.fiverr.com/s2/affc9b7a8a"&gt;https://www.fiverr.com/s2/affc9b7a8a&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.fiverr.com/s2/608e8ed73f?utm_source=CopyLink_Mobile"&gt;https://www.fiverr.com/s2/608e8ed73f?utm_source=CopyLink_Mobile&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 13:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-the-performance-of-our-Splunk-search-query/m-p/112268#M29491</guid>
      <dc:creator>preactivity</dc:creator>
      <dc:date>2019-08-31T13:24:48Z</dc:date>
    </item>
  </channel>
</rss>

