<?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: Splunk AVG Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562406#M195604</link>
    <description>&lt;P&gt;I am not exactly sure what you are trying to visualise. Is it like a rolling average of the daily maximums, or a cumulative average i.e. average from the start to each day, or something like that?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 11:51:05 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-08-06T11:51:05Z</dc:date>
    <item>
      <title>Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562388#M195592</link>
      <description>&lt;P&gt;I am consuming some data using an API, I want to calculate avg time it took for all my customer, after each ingestion (data consumed for a particular customer), I print a time matrix for that customer.&lt;/P&gt;&lt;P&gt;timechart span=24h avg(total_time)&lt;/P&gt;&lt;P&gt;Now to calculate average I cannot simply extract the time field and do avg(total_time), because if customerA completes ingestion in 1 hour, and customerB takes 24 hours, customer A will be logged 24 times and B will be logged once, giving me inaccurate results and bringing down the average.&lt;/P&gt;&lt;P&gt;How do I create a filter let's say time duration is 7 days, so I get only those log lines for a particular customer which has the maximum total_time over a period of 7 days. i.e one log line per customer that has max total_time over a period of 7 days for that particular customer.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:30:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562388#M195592</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T08:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562390#M195593</link>
      <description>&lt;LI-CODE lang="markup"&gt;timechart span=24h avg(total_time) by customer&lt;/LI-CODE&gt;&lt;P&gt;How are you getting 24 events for customerA if they only ingested once?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562390#M195593</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562391#M195594</link>
      <description>&lt;P&gt;The ingestion time for customer A is let's suppose close to 1 hour, so in 24 hours there will be 24 events logged, let's say 50mins, 61mins, 54 mins ... and so on, so there will be 24 events for customer A, customer B takes roughly 24 hours and got ingested once, so now i want the avg (max(customerA), max(customer B)) over a certain period of time let's say 7 days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562391#M195594</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562392#M195595</link>
      <description>&lt;P&gt;The process is cyclic and continuous, it keeps happening again and again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562392#M195595</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T09:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562396#M195599</link>
      <description>&lt;LI-CODE lang="markup"&gt;| timechart span=24h max(total_time) as max_time by customer
| stats avg(max_time) as average by customer&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562396#M195599</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562401#M195602</link>
      <description>&lt;P&gt;The timechart part works. But adding stats line after that doesn't give any visualization and stats&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 09:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562401#M195602</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T09:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562406#M195604</link>
      <description>&lt;P&gt;I am not exactly sure what you are trying to visualise. Is it like a rolling average of the daily maximums, or a cumulative average i.e. average from the start to each day, or something like that?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 11:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562406#M195604</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T11:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562408#M195605</link>
      <description>&lt;P&gt;if I have 10 customers A, B, C and so on, each customer is doing it's own ingestion at it's own speed,&amp;nbsp; after each ingestion, each customer will produce a log line. This process is cyclic and continuous, so let's suppose A completed ingestion 10 times in 24 hours, B completed ingestion 5 times in 24 hours and so on... what I want is&lt;BR /&gt;&lt;BR /&gt;avg(max time taken by A , max time taken by B, maximum time taken by C,...... and so on)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562408#M195605</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T12:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562409#M195606</link>
      <description>&lt;P&gt;OK so the stats needs to get the average for all customers each day&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=24h max(total_time) as max_time by customer
| stats avg(max_time) as average by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562409#M195606</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562417#M195609</link>
      <description>&lt;P&gt;I am seeing blank responses&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-06 at 6.37.10 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15452i55B69171CD8F7339/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-06 at 6.37.10 PM.png" alt="Screenshot 2021-08-06 at 6.37.10 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-06 at 6.37.18 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15453i3C00C3149A690496/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-06 at 6.37.18 PM.png" alt="Screenshot 2021-08-06 at 6.37.18 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562417#M195609</guid>
      <dc:creator>rai4shambhavi</dc:creator>
      <dc:date>2021-08-06T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk AVG Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562422#M195610</link>
      <description>&lt;P&gt;Try it this way around&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin _time span=24h
| stats max(total_time) as max_time by _time customer
| timechart span=24h avg(max_time) as average&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-AVG-Query/m-p/562422#M195610</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-06T14:13:18Z</dc:date>
    </item>
  </channel>
</rss>

