<?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: search results sum count by date? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282890#M85444</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;|rex "\d{4}\-(?&amp;lt;month&amp;gt;[^\-]+)"
|rex "\-\-\-\-\-\-\s+(?&amp;lt;count&amp;gt;\d+)"
|stats sum(count) by month
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Dec 2015 10:15:34 GMT</pubDate>
    <dc:creator>jmallorquin</dc:creator>
    <dc:date>2015-12-18T10:15:34Z</dc:date>
    <item>
      <title>search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282889#M85443</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
Im trying to sum results by date:&lt;/P&gt;

&lt;P&gt;CreatedDate    ------  count&lt;BR /&gt;
2015-12-2       ------  1&lt;BR /&gt;
2015-12-1        ------  4&lt;BR /&gt;
2015-11-30         ------  5&lt;BR /&gt;
2015-11-29 ------  2&lt;/P&gt;

&lt;P&gt;i want to count how much in each month, how can i do it?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 09:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282889#M85443</guid>
      <dc:creator>abovebeyond</dc:creator>
      <dc:date>2015-12-18T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282890#M85444</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|rex "\d{4}\-(?&amp;lt;month&amp;gt;[^\-]+)"
|rex "\-\-\-\-\-\-\s+(?&amp;lt;count&amp;gt;\d+)"
|stats sum(count) by month
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2015 10:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282890#M85444</guid>
      <dc:creator>jmallorquin</dc:creator>
      <dc:date>2015-12-18T10:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282891#M85445</link>
      <description>&lt;P&gt;hmm i forgot to mention , this is a db connect query &lt;/P&gt;

&lt;P&gt;the results from the DB , its not parsed so date_month isn't working &lt;/P&gt;

&lt;P&gt;any other options ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 10:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282891#M85445</guid>
      <dc:creator>abovebeyond</dc:creator>
      <dc:date>2015-12-18T10:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282892#M85446</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bucket span=1mon CreatedDate
| stats sum(count) AS total_count by CreatedDate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282892#M85446</guid>
      <dc:creator>dcarmack_splunk</dc:creator>
      <dc:date>2015-12-18T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282893#M85447</link>
      <description>&lt;P&gt;If the field CreatedDate is not detected as a valid date, you can convert it.&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;mysearch&amp;gt;
| convert timeformat="%Y-%m-%d" ctime(CreatedDate) AS NewCreatedDate
| bucket span=1month NewCreatedDate
 | stats sum(count) AS total_count by NewCreatedDate
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Dec 2015 17:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282893#M85447</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-12-19T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282894#M85448</link>
      <description>&lt;P&gt;Hi yannK , tried it without a success &lt;/P&gt;

&lt;P&gt;NewCreatedDate shows nothing...&lt;/P&gt;

&lt;P&gt;Any other suggestions ?&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 10:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282894#M85448</guid>
      <dc:creator>abovebeyond</dc:creator>
      <dc:date>2015-12-24T10:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: search results sum count by date?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282895#M85449</link>
      <description>&lt;P&gt;if  count and CreateDate fields exit  after you run  your_DB_search   try  simplily:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_DB_search&amp;gt;| timechart span=1months sum(count) by CreatedDate usenull=f useother=f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-results-sum-count-by-date/m-p/282895#M85449</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-29T08:17:03Z</dc:date>
    </item>
  </channel>
</rss>

