<?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: Query execution time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437681#M172547</link>
    <description>&lt;P&gt;Hi @benji00 &lt;/P&gt;

&lt;P&gt;I'm not clear if you have already extracted the fields - if not that would be the best approach. &lt;/P&gt;

&lt;P&gt;However, a quick and dirty way is to do the extraction inline:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=3dexperience host=io-ws-3de*pr COMPLETE_QUERY|rex "COMPLETE_QUERY\]\[(?P&amp;lt;response_time&amp;gt;\d+)"|timechart avg(response_time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Mar 2019 10:20:44 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2019-03-12T10:20:44Z</dc:date>
    <item>
      <title>Query execution time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437680#M172546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;When searching through Splunk the following request:&lt;BR /&gt;
    index=3dexperience host=io-ws-3de*pr COMPLETE_QUERY&lt;BR /&gt;
I am receiving events as written below:&lt;BR /&gt;
2019-03-12 08:32:40.629 | [http-nio-8094-exec-4]   | DEBUG | c.d.federated_search.utils.Log       |  |  |  | [577] ##### [TIMER][CVServlet][COMPLETE_QUERY][113][ms] #####&lt;BR /&gt;
2019-03-12 08:27:09.782 | [http-nio-8094-exec-6]   | DEBUG | c.d.federated_search.utils.Log       |  |  |  | [444] ##### [TIMER][CVServlet][COMPLETE_QUERY][118][ms] #####&lt;/P&gt;

&lt;P&gt;My final objective is to have a timechart  of the COMPLET_QUERY execution time in ms with the content of the next [] after the [COMPLETE_QUERY] one.&lt;BR /&gt;
Any idea? How to know if the log is a known format?&lt;BR /&gt;
I am currently trying by extracting new fields and using delimiters...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437680#M172546</guid>
      <dc:creator>benji00</dc:creator>
      <dc:date>2020-09-29T23:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query execution time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437681#M172547</link>
      <description>&lt;P&gt;Hi @benji00 &lt;/P&gt;

&lt;P&gt;I'm not clear if you have already extracted the fields - if not that would be the best approach. &lt;/P&gt;

&lt;P&gt;However, a quick and dirty way is to do the extraction inline:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=3dexperience host=io-ws-3de*pr COMPLETE_QUERY|rex "COMPLETE_QUERY\]\[(?P&amp;lt;response_time&amp;gt;\d+)"|timechart avg(response_time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:20:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437681#M172547</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-12T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query execution time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437682#M172548</link>
      <description>&lt;P&gt;Hello @nickhillscpl,&lt;BR /&gt;
Thanks for you feedback.&lt;BR /&gt;
Yes finally I used the extractong fields mode by using delimiters and it is working correctly. Not sure if it is the most efficient way but it is working.&lt;BR /&gt;
Your way seems quite clean... why do you say it is a dirty way ?&lt;BR /&gt;
Anyway I am going to accept your comment. &lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 12:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-execution-time/m-p/437682#M172548</guid>
      <dc:creator>benji00</dc:creator>
      <dc:date>2019-03-13T12:18:15Z</dc:date>
    </item>
  </channel>
</rss>

