<?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: Determine query speed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87884#M22460</link>
    <description>&lt;P&gt;Yes, you can do the math in inspect, and get the same answers, but I was hoping there's an existing command that provides more info. &lt;/P&gt;

&lt;P&gt;Is there a query that populates inspect?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2011 17:14:12 GMT</pubDate>
    <dc:creator>vbumgarner</dc:creator>
    <dc:date>2011-04-25T17:14:12Z</dc:date>
    <item>
      <title>Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87882#M22458</link>
      <description>&lt;P&gt;What's the best way to determine how many events I'm pulling off disk during a query, and what numbers am I looking for?&lt;/P&gt;

&lt;P&gt;Here's a query I wrote that takes a stab at it, but if there's a better and/or existing way, I'd like to hear it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | eval n=time() | eval s=len(_raw) 
| stats count sum(s) as bytes min(n) as min max(n) as max avg(s) as "Average event size" 
| eval megs=bytes/1024/1024 | eval "Megabytes per second" = megs/(max-min) 
| eval "Events per second" = count/(max-min)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note:&lt;BR /&gt;
Turn off Field Discovery. On a test machine with good disks, I'm seeing 2,500 with Field Discovery on, and 15,000 with Field Discovery off.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2011 21:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87882#M22458</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-04-24T21:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87883#M22459</link>
      <description>&lt;P&gt;Does the "Inspect search job" not work for you?  ie.  This search has completed and has returned 6 results by scanning 72 events in 0.149 seconds.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2011 17:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87883#M22459</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2011-04-25T17:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87884#M22460</link>
      <description>&lt;P&gt;Yes, you can do the math in inspect, and get the same answers, but I was hoping there's an existing command that provides more info. &lt;/P&gt;

&lt;P&gt;Is there a query that populates inspect?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2011 17:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87884#M22460</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-04-25T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87885#M22461</link>
      <description>&lt;P&gt;I think this is a good question, we discussed a few performance issues with splunk and never got a clear answer what a good value is ... Splunk never come up with a command to measure the amount of events per second, so i think it doesnt exist. &lt;/P&gt;

&lt;P&gt;what are your values ? we never reach 50'000 events per second, we get values around 1700 Events per second.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 14:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87885#M22461</guid>
      <dc:creator>Christian</dc:creator>
      <dc:date>2011-04-26T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87886#M22462</link>
      <description>&lt;P&gt;Actually, take the head 1000000 out of that query and see what you get. That appears to be hindering the performance greatly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 14:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87886#M22462</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-04-26T14:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87887#M22463</link>
      <description>&lt;P&gt;well i get a bit better values but i did the search on a different index where the average size of event is only 160 and not 500 as at the index before. This just to make sure Splunk doesn't read from FS Chache.&lt;/P&gt;

&lt;P&gt;My values :&lt;BR /&gt;
Index 1 : avg eventsize 503.08 events per second 2021.67&lt;BR /&gt;
Index 2 : avg eventsize 150.88 events per second 2731.79&lt;/P&gt;

&lt;P&gt;sorry to block your question with my problems &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; but this might be interesting for other people&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 14:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87887#M22463</guid>
      <dc:creator>Christian</dc:creator>
      <dc:date>2011-04-26T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87888#M22464</link>
      <description>&lt;P&gt;Wow, that seems really low.  What is your setup? Is this a VM?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 15:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87888#M22464</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-04-26T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87889#M22465</link>
      <description>&lt;P&gt;Take a look at $SPLUNK_HOME/share/splunk/search_mrsparkle/templates/parser/inspector.html&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87889#M22465</guid>
      <dc:creator>netwrkr</dc:creator>
      <dc:date>2020-09-28T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87890#M22466</link>
      <description>&lt;P&gt;Using the number of bytes of the event is not really a meaningful measure of disk performance, as event data is stored compressed, and it does not account for bytes read but not returned, nor bytes decompressed but not returned, not reads of the index itself as opposed to retrieval of the raw data.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 20:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87890#M22466</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-26T20:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87891#M22467</link>
      <description>&lt;P&gt;Also please note that this query (a "dense" query) that returns most of the raw data in an entire index, without having to seek for it, this mostly measures speed of decompression, which is CPU-bottlenecked. It does not tell you as much about disk seek or disk transfer rates.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 20:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87891#M22467</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-26T20:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87892#M22468</link>
      <description>&lt;P&gt;Using the number of bytes of the event is not really a meaningful measure of disk performance, as event data is stored compressed, and it does not account for bytes read but not returned, nor bytes decompressed but not returned, not reads of the index itself as opposed to retrieval of the raw data.&lt;/P&gt;

&lt;P&gt;Also please note that this query (a "dense" query) that returns most of the raw data in an entire index, without having to seek for it, this mostly measures speed of decompression, which is CPU-bottlenecked. It does not tell you as much about disk seek or disk transfer rates.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 20:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87892#M22468</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-26T20:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87893#M22469</link>
      <description>&lt;P&gt;Can you think of a query that would be better for testing disk seek?  Maybe date_second=0?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 20:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87893#M22469</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-04-26T20:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Determine query speed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87894#M22470</link>
      <description>&lt;P&gt;No, that will tend to measure decompression as well. Choose an extremely rare term, something that occurs in fewer than 1 in a million events, and time it a search for it over a given time range of data, e.g., search for "vbumgarburnerization".&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 20:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-query-speed/m-p/87894#M22470</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-26T20:57:29Z</dc:date>
    </item>
  </channel>
</rss>

