<?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 Get top 20 queries for avarage execution time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-top-20-queries-for-avarage-execution-time/m-p/549766#M156016</link>
    <description>&lt;P&gt;Hello there &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I've extracted from the log, using rex, the time, called OSY_time and each individual slow query, called Query.&lt;/P&gt;&lt;P&gt;I want to get from here a graphs that shows the top 20 queries, for average time, in a specified time range.&lt;/P&gt;&lt;P&gt;| eval seconds = tonumber(trim(OSY_timing)) | streamstats avg(seconds) as sec_avg by Query |sort -sec_avg | top 20 sec_avg&lt;/P&gt;&lt;P&gt;What I want to get is in x axis the query, and in Y the avg_time.&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;Thanks for any reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Apr 2021 08:02:14 GMT</pubDate>
    <dc:creator>marco_carolo</dc:creator>
    <dc:date>2021-04-29T08:02:14Z</dc:date>
    <item>
      <title>Get top 20 queries for avarage execution time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-top-20-queries-for-avarage-execution-time/m-p/549766#M156016</link>
      <description>&lt;P&gt;Hello there &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I've extracted from the log, using rex, the time, called OSY_time and each individual slow query, called Query.&lt;/P&gt;&lt;P&gt;I want to get from here a graphs that shows the top 20 queries, for average time, in a specified time range.&lt;/P&gt;&lt;P&gt;| eval seconds = tonumber(trim(OSY_timing)) | streamstats avg(seconds) as sec_avg by Query |sort -sec_avg | top 20 sec_avg&lt;/P&gt;&lt;P&gt;What I want to get is in x axis the query, and in Y the avg_time.&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;Thanks for any reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 08:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-top-20-queries-for-avarage-execution-time/m-p/549766#M156016</guid>
      <dc:creator>marco_carolo</dc:creator>
      <dc:date>2021-04-29T08:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get top 20 queries for avarage execution time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-top-20-queries-for-avarage-execution-time/m-p/549786#M156028</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233874"&gt;@marco_carolo&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Try this and select Visualization.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval seconds = tonumber(trim(OSY_timing)) | stats avg(seconds) as sec_avg by Query |sort -sec_avg | head 20 | table Query, sec_avg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, a like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 09:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-top-20-queries-for-avarage-execution-time/m-p/549786#M156028</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-04-29T09:02:57Z</dc:date>
    </item>
  </channel>
</rss>

