<?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: Graph hourly events multiplied by avgevent duration (in hours), in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466781#M30621</link>
    <description>&lt;P&gt;think I worked it out. Just added&lt;/P&gt;

&lt;P&gt;| stats avg(result) by date_hour&lt;/P&gt;</description>
    <pubDate>Sun, 05 Apr 2020 03:16:36 GMT</pubDate>
    <dc:creator>c799651</dc:creator>
    <dc:date>2020-04-05T03:16:36Z</dc:date>
    <item>
      <title>Graph hourly events multiplied by avgevent duration (in hours),</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466778#M30618</link>
      <description>&lt;P&gt;Hi I have data with captures events  (phone calls). I would like to graph in hourly buckets the total calls per hour multiplied by the avg call duration.&lt;/P&gt;

&lt;P&gt;I have fumbled around and been able to present the two components in separate charts but failed when trying to merge both charts into one with the multiplication performed.&lt;/P&gt;

&lt;P&gt;First Search&lt;/P&gt;

&lt;P&gt;index=mydata sourcetype=cer &lt;BR /&gt;
| bin _time span=1h&lt;BR /&gt;
| eval date_hour=strftime(_time, "%H")&lt;BR /&gt;
| stats count AS B_Number first(date_hour) AS date_hour BY _time&lt;BR /&gt;
| stats avg(B_Number) BY date_hour&lt;/P&gt;

&lt;P&gt;Second Search.&lt;/P&gt;

&lt;P&gt;index=mydata sourcetype=cer &lt;BR /&gt;
| bin _time span=1h&lt;BR /&gt;
| eval date_hour=strftime(_time, "%H") | eval Callhours=CallDurationSecs/3600&lt;BR /&gt;
| stats avg(Callhours) BY date_hour&lt;/P&gt;

&lt;P&gt;How do I combine these searches with the muliplication applied.&lt;BR /&gt;
Eg Search 1 Hour 1 result equals    .00112299&lt;BR /&gt;
Search 1 Hour 1 result equals          35555&lt;BR /&gt;
Desired result for hour 1  399.21 (.00112299*35555)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466778#M30618</guid>
      <dc:creator>c799651</dc:creator>
      <dc:date>2020-09-30T04:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graph hourly events multiplied by avgevent duration (in hours),</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466779#M30619</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=mydata sourcetype=cer
| eval Callhours=CallDurationSecs/3600
| timechart span=1h count as B_Number avg(Callhours) as Callhours values(eval(strftime(_time, "%H"))) AS date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats avg(B_Number) as A avg(Callhours) as B BY date_hour
| eval result= A * B
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know your time range, logs. I guess &lt;CODE&gt;stats&lt;/CODE&gt; maybe works&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 01:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466779#M30619</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T01:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Graph hourly events multiplied by avgevent duration (in hours),</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466780#M30620</link>
      <description>&lt;P&gt;Thanks very much this worked. But when I used "visualisation"  Splunk is graphing A, B and result by hour.&lt;BR /&gt;
How do I just show result by Hour in the column chart?&lt;/P&gt;

&lt;P&gt;Thanks Again&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 02:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466780#M30620</guid>
      <dc:creator>c799651</dc:creator>
      <dc:date>2020-04-05T02:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Graph hourly events multiplied by avgevent duration (in hours),</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466781#M30621</link>
      <description>&lt;P&gt;think I worked it out. Just added&lt;/P&gt;

&lt;P&gt;| stats avg(result) by date_hour&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 03:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Graph-hourly-events-multiplied-by-avgevent-duration-in-hours/m-p/466781#M30621</guid>
      <dc:creator>c799651</dc:creator>
      <dc:date>2020-04-05T03:16:36Z</dc:date>
    </item>
  </channel>
</rss>

