<?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: timechart by count, average(timetaken) by type in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265995#M176844</link>
    <description>&lt;P&gt;Thank you for your answers, but the issue i am facing here for count its showing separate bar, but i need both average and count displaying in single bar, is it possible.&lt;/P&gt;

&lt;P&gt;please find the below image, first two bars shows average time taken and second two bars shows count of each type, i want there four bars in two bars displaying average and count.&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/1806iCBCF53A8C5745DB5/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;thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 18:02:29 GMT</pubDate>
    <dc:creator>dukechandu</dc:creator>
    <dc:date>2016-09-06T18:02:29Z</dc:date>
    <item>
      <title>timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265992#M176841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i have data like below&lt;/P&gt;

&lt;P&gt;Type      count        timeTakenToexceute              time&lt;BR /&gt;
abc          2                            2 sec                            09-01-2016, 09-02-2016&lt;BR /&gt;
xyz            1                            1 sec                             09-01-2016&lt;/P&gt;

&lt;P&gt;needed timechart based on day, i am trying like below but missing count&lt;BR /&gt;
..... | timechart span=1d avg(timetaken) by type&lt;/P&gt;

&lt;P&gt;please help&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 15:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265992#M176841</guid>
      <dc:creator>dukechandu</dc:creator>
      <dc:date>2016-09-06T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265993#M176842</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bin span=1d _time | stats avg(timetaken) as average count by _time typ
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265993#M176842</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-06T16:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265994#M176843</link>
      <description>&lt;P&gt;Try like this. It will create fields like &lt;CODE&gt;AvgTime :Type&lt;/CODE&gt; and &lt;CODE&gt;Count :Type&lt;/CODE&gt;. E.g. AvgTime :abc, Count: xyz&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..... | timechart span=1d avg(timetaken) as AvgTime count as Count by type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265994#M176843</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-06T16:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265995#M176844</link>
      <description>&lt;P&gt;Thank you for your answers, but the issue i am facing here for count its showing separate bar, but i need both average and count displaying in single bar, is it possible.&lt;/P&gt;

&lt;P&gt;please find the below image, first two bars shows average time taken and second two bars shows count of each type, i want there four bars in two bars displaying average and count.&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/1806iCBCF53A8C5745DB5/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;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265995#M176844</guid>
      <dc:creator>dukechandu</dc:creator>
      <dc:date>2016-09-06T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265996#M176845</link>
      <description>&lt;P&gt;Have you tried &lt;CODE&gt;stacked chart&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Stackmode"&gt;https://docs.splunk.com/Splexicon:Stackmode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;OR, &lt;CODE&gt;overlay&lt;/CODE&gt; may be a better option&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/Viz/Chartcontrols#Chart_overlay_example_.28single_axis.29"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/Viz/Chartcontrols#Chart_overlay_example_.28single_axis.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265996#M176845</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-06T18:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: timechart by count, average(timetaken) by type</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265997#M176846</link>
      <description>&lt;P&gt;Both Average and count fields are different entity and can possibly have different magnitude in the y-axis. Why do you want to merge both? do you want to merge both average and count for each type? If yes, then just remove by type in the above query.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-by-count-average-timetaken-by-type/m-p/265997#M176846</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-06T18:57:59Z</dc:date>
    </item>
  </channel>
</rss>

