<?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: How to plot cumulative stack timechart ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86783#M22138</link>
    <description>&lt;P&gt;The following example shows how you can add fields numerically (never mind that it does not add hours and minutes correctly, the point is to demonstrate addition through the &lt;CODE&gt;eval&lt;/CODE&gt; command, with data that is available on every splunk instance)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal  | head 3| eval hm = date_hour + date_minute| eval hms= hm + date_second|  table time date_hour date_minute date_second hm hms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the table contains the original fields as well as the computed ones. &lt;/P&gt;

&lt;P&gt;To remove fields you do not want - add the &lt;CODE&gt;| fields - fieldname1 fieldname2&lt;/CODE&gt; etc to the end of the search.&lt;/P&gt;

&lt;P&gt;To present the table as a graph, press the 'Results Chart' icon (looks like a small bar-chart, just below where it says "X matching results". There you can play around with various options, such as stacking etc.&lt;/P&gt;

&lt;P&gt;You could/should perhaps also take a look at the proper charting commands, such as &lt;CODE&gt;chart&lt;/CODE&gt; and &lt;CODE&gt;timechart&lt;/CODE&gt;. Or &lt;CODE&gt;stats&lt;/CODE&gt;, which may also prove useful.&lt;/P&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2013 22:18:04 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-01-15T22:18:04Z</dc:date>
    <item>
      <title>How to plot cumulative stack timechart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86780#M22135</link>
      <description>&lt;P&gt;Hello, I have timechart by location requirement. Also client want to see the cumulative value on the stacked bar so that he dont have to add up numbers to find total of that minute. Is there a formatting option on chart or something I could do within the query.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Amit&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 20:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86780#M22135</guid>
      <dc:creator>meamitjain</dc:creator>
      <dc:date>2013-01-14T20:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot cumulative stack timechart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86781#M22136</link>
      <description>&lt;P&gt;please provide more information. sample events. sketch of desired output.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86781#M22136</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-14T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot cumulative stack timechart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86782#M22137</link>
      <description>&lt;P&gt;sample events count:&lt;BR /&gt;
Time,Location1,Location2,Location3&lt;BR /&gt;
12:31,30,40,50&lt;BR /&gt;
12:32,40,50,60&lt;BR /&gt;
12:33,20,30,40&lt;/P&gt;

&lt;P&gt;sample output expected:&lt;BR /&gt;
Time,Location1,Location2,Location3&lt;BR /&gt;
12:31,30,70,120&lt;BR /&gt;
12:32,40,90,150&lt;BR /&gt;
12:33,20,50,90&lt;/P&gt;

&lt;P&gt;On stacked chart I want to show the values as cumulative.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86782#M22137</guid>
      <dc:creator>meamitjain</dc:creator>
      <dc:date>2013-01-15T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot cumulative stack timechart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86783#M22138</link>
      <description>&lt;P&gt;The following example shows how you can add fields numerically (never mind that it does not add hours and minutes correctly, the point is to demonstrate addition through the &lt;CODE&gt;eval&lt;/CODE&gt; command, with data that is available on every splunk instance)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal  | head 3| eval hm = date_hour + date_minute| eval hms= hm + date_second|  table time date_hour date_minute date_second hm hms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the table contains the original fields as well as the computed ones. &lt;/P&gt;

&lt;P&gt;To remove fields you do not want - add the &lt;CODE&gt;| fields - fieldname1 fieldname2&lt;/CODE&gt; etc to the end of the search.&lt;/P&gt;

&lt;P&gt;To present the table as a graph, press the 'Results Chart' icon (looks like a small bar-chart, just below where it says "X matching results". There you can play around with various options, such as stacking etc.&lt;/P&gt;

&lt;P&gt;You could/should perhaps also take a look at the proper charting commands, such as &lt;CODE&gt;chart&lt;/CODE&gt; and &lt;CODE&gt;timechart&lt;/CODE&gt;. Or &lt;CODE&gt;stats&lt;/CODE&gt;, which may also prove useful.&lt;/P&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 22:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-cumulative-stack-timechart/m-p/86783#M22138</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-15T22:18:04Z</dc:date>
    </item>
  </channel>
</rss>

