<?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 do you sum values by day? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388493#M113277</link>
    <description>&lt;P&gt;@jyar1, &lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; auditSource XXX auditType XXX "detail.serviceName"="XXX" | timechart count by detail.adminMessageType
|untable _time,detail.adminMessageType,count
|streamstats sum(count) as count |xyseries _time,detail.adminMessageType,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Jan 2019 12:33:15 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-01-08T12:33:15Z</dc:date>
    <item>
      <title>How do you sum values by day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388492#M113276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and have written a simple search to see 4 trending values over a month.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;auditSource XXX auditType XXX  "detail.serviceName"="XXX" | timechart count by detail.adminMessageType 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives me the values per day of 4 different admin message types e,g&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;              Message 1     Message 2     Message 3     Message 4
01/01/19           5                 10             4             7
02/01/19          15                 20            7             15
03/01/19           8                   3              6              16
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When this converts to a line chart in visualizations, it shows me the value per day. I want it to report the total per message as the month goes on so you see the cumulative values. e.g&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        Message 1     Message 2     Message 3     Message 4
01/01/19   5                 10       4             7
02/01/19   20                30          11            22
03/01/19   28                33             17          34
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone help?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 10:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388492#M113276</guid>
      <dc:creator>jyar1</dc:creator>
      <dc:date>2019-01-08T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you sum values by day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388493#M113277</link>
      <description>&lt;P&gt;@jyar1, &lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; auditSource XXX auditType XXX "detail.serviceName"="XXX" | timechart count by detail.adminMessageType
|untable _time,detail.adminMessageType,count
|streamstats sum(count) as count |xyseries _time,detail.adminMessageType,count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388493#M113277</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-08T12:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you sum values by day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388494#M113278</link>
      <description>&lt;P&gt;Thankyou does exactly what i want - however is there a way for formatting the X Axis in the visualization to remove the timestamp and just show the date?&lt;/P&gt;

&lt;P&gt;i.e - it shows | 2019-01-01 T00:00:00+00:00 | 2019-01-02 T00:00:00+00:00&lt;BR /&gt;
Can it be formatted to show&lt;BR /&gt;
2019-01-01 | 2019-01-02 | 2019-01-03&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 13:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388494#M113278</guid>
      <dc:creator>jyar1</dc:creator>
      <dc:date>2019-01-08T13:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you sum values by day?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388495#M113279</link>
      <description>&lt;P&gt;yes, sure. Add below to the end of the search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval _time=strftime(_time,"%Y-%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jan 2019 13:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-sum-values-by-day/m-p/388495#M113279</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-08T13:56:29Z</dc:date>
    </item>
  </channel>
</rss>

