<?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 How to create average duration over time overlay in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490172#M136907</link>
    <description>&lt;P&gt;I have a time chart that displays the average duration of calls for each day in the time range, the time range is set with a time picker. The call duration is parsed out using the rex command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "Duration : (?&amp;lt;hh&amp;gt;\d+):(?&amp;lt;mm&amp;gt;\d+):(?&amp;lt;ss&amp;gt;\d+\.\d+)" | eval dur = (hh * 3600) + (mm * 60) + ss | timechart span=1d avg(dur)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The current results look like:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7735iB45C160E1732A756/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I am looking for something like this with the dashed line like so:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7736i69EA0E6353C96E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 19:08:09 GMT</pubDate>
    <dc:creator>kmedara</dc:creator>
    <dc:date>2019-09-25T19:08:09Z</dc:date>
    <item>
      <title>How to create average duration over time overlay in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490172#M136907</link>
      <description>&lt;P&gt;I have a time chart that displays the average duration of calls for each day in the time range, the time range is set with a time picker. The call duration is parsed out using the rex command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "Duration : (?&amp;lt;hh&amp;gt;\d+):(?&amp;lt;mm&amp;gt;\d+):(?&amp;lt;ss&amp;gt;\d+\.\d+)" | eval dur = (hh * 3600) + (mm * 60) + ss | timechart span=1d avg(dur)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The current results look like:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7735iB45C160E1732A756/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I am looking for something like this with the dashed line like so:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7736i69EA0E6353C96E26/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 19:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490172#M136907</guid>
      <dc:creator>kmedara</dc:creator>
      <dc:date>2019-09-25T19:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create average duration over time overlay in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490173#M136908</link>
      <description>&lt;P&gt;please elaborate, what will be the data populating the chart overlay?&lt;BR /&gt;
try this search anywhere, in the case you are perusing some sort of running average:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-7 increment=2h
| eval _time = starttime 
| eval duration = random()%1000 + 3000
| sort - _time
| timechart span=4h avg(duration) as avg_dur
| streamstats time_window=24h avg(avg_dur) as dur_running_avg
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490173#M136908</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-09-25T20:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create average duration over time overlay in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490174#M136909</link>
      <description>&lt;P&gt;streamstats avg(avg_dur) was exactly what I needed, thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490174#M136909</guid>
      <dc:creator>kmedara</dc:creator>
      <dc:date>2019-09-25T20:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create average duration over time overlay in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490175#M136910</link>
      <description>&lt;P&gt;cool,&lt;/P&gt;

&lt;P&gt;converting to an answer, kindly accept it so other will know it worked for you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 21:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-average-duration-over-time-overlay-in-timechart/m-p/490175#M136910</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-09-25T21:21:22Z</dc:date>
    </item>
  </channel>
</rss>

