<?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: Create splunk chart from seach with totals over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651987#M225369</link>
    <description>&lt;P&gt;The command you are looking for is &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Streamstats" target="_blank" rel="noopener"&gt;streamstats&lt;/A&gt;. &amp;nbsp;If you have a single series, you can do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart count
| steamstats sum(count) as cumulative&lt;/LI-CODE&gt;&lt;P&gt;But your OP suggests that you have multiple series. &amp;nbsp;For that, you can do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| timechart count BY message_id
| streamstats sum(*) as *-cumulative by message_id&lt;/LI-CODE&gt;&lt;P&gt;This produces two extraneous series "*" and "*-cumulative". &amp;nbsp;I don't know how to remove them. &amp;nbsp;If you have a limited number of message values, you can do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| timechart count BY message_id
| streamstats sum(msg_id1) as msg_id1-cumulative sum(msg_id2) as msg_id2 ... by message_id&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 25 Jul 2023 22:58:47 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-07-25T22:58:47Z</dc:date>
    <item>
      <title>Create splunk chart from seach with totals over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651808#M225313</link>
      <description>&lt;P&gt;Hello Members,&lt;/P&gt;
&lt;P&gt;I have seen and used the accum command, but it does not quite give me what I want.&lt;/P&gt;
&lt;P&gt;I have this search below which gives me a line chart with event count over the time range:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| eval Date=strftime(_time, "%Y-%m-%d %H:%M:%S")
| timechart count BY message_id&lt;/LI-CODE&gt;
&lt;P&gt;The graph type can be any type. I would like to get an accumulated total for a time period, like 24 hours, OK to count every hour, but show the accumulated count each hour, with the ending total for the time range, i.e. 24hr.&lt;/P&gt;
&lt;P&gt;Thanks for greate source of help here,&lt;/P&gt;
&lt;P&gt;eholz1&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 16:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651808#M225313</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2023-07-25T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create splunk chart from seach with totals over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651810#M225314</link>
      <description>&lt;P&gt;Not sure what the real requirement is. &amp;nbsp;Do you mean a 24-hour chart like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="totalby.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26436iA95986C8434B9EE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="totalby.png" alt="totalby.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I.e., a group of varying line charts and a group of horizontal lines representing their period total? &amp;nbsp;For this, you can do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| timechart count BY message_id
| eventstats sum(*) as *-Total&lt;/LI-CODE&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 23:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651810#M225314</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-07-24T23:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create splunk chart from seach with totals over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651937#M225350</link>
      <description>&lt;P&gt;Thank you very much for the reply. I will try the search you suggest. Here is a screen shot of one result, which shows the number of events over time. But, starting from left of chart, instead of seeing values like: 7, 12,13,12,9 - I would like to see 7,19,32,41, etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eholz1_0-1690299447166.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26450iFB24945DD98C4DC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eholz1_0-1690299447166.png" alt="eholz1_0-1690299447166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Again, will check your suggestion, and get back&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 15:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651937#M225350</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2023-07-25T15:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create splunk chart from seach with totals over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651987#M225369</link>
      <description>&lt;P&gt;The command you are looking for is &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Streamstats" target="_blank" rel="noopener"&gt;streamstats&lt;/A&gt;. &amp;nbsp;If you have a single series, you can do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart count
| steamstats sum(count) as cumulative&lt;/LI-CODE&gt;&lt;P&gt;But your OP suggests that you have multiple series. &amp;nbsp;For that, you can do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| timechart count BY message_id
| streamstats sum(*) as *-cumulative by message_id&lt;/LI-CODE&gt;&lt;P&gt;This produces two extraneous series "*" and "*-cumulative". &amp;nbsp;I don't know how to remove them. &amp;nbsp;If you have a limited number of message values, you can do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype=cisco:asa host=* message_id=113004
| timechart count BY message_id
| streamstats sum(msg_id1) as msg_id1-cumulative sum(msg_id2) as msg_id2 ... by message_id&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jul 2023 22:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/651987#M225369</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-07-25T22:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create splunk chart from seach with totals over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/652404#M225493</link>
      <description>&lt;P&gt;Hello, and Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I need. Again I thank you for the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eholz1&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 16:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-splunk-chart-from-seach-with-totals-over-time/m-p/652404#M225493</guid>
      <dc:creator>eholz1</dc:creator>
      <dc:date>2023-07-28T16:48:34Z</dc:date>
    </item>
  </channel>
</rss>

