<?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: Streamstats count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354572#M104941</link>
    <description>&lt;P&gt;something like this does solve my problem as @somesoni2 suggested but I would like to see data split into weeks instead of months:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; base search| timechart count by State span=1w |  streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Aug 2017 15:56:17 GMT</pubDate>
    <dc:creator>pranaynanda</dc:creator>
    <dc:date>2017-08-08T15:56:17Z</dc:date>
    <item>
      <title>Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354566#M104935</link>
      <description>&lt;P&gt;I want a cumulative count of a field that has multiple values. Somehow this isn't working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search| streamstats count(State) as dur time_window=1w| timechart sum(dur) by State span=1w
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354566#M104935</guid>
      <dc:creator>pranaynanda</dc:creator>
      <dc:date>2017-08-08T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354567#M104936</link>
      <description>&lt;P&gt;can you give some example data and expected results? a few more details might make this easier to answer, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;you might need to sort your events before your streamstats since you're doing a time_window. &lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354567#M104936</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-08T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354568#M104937</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search| timechart count by State span=1w |  streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354568#M104937</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-08T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354569#M104938</link>
      <description>&lt;P&gt;Please explain your use case (your desired ending dataset).&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354569#M104938</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-08T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354570#M104939</link>
      <description>&lt;P&gt;this pretty much solves it except that I see the results split into months instead of weeks as desired.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354570#M104939</guid>
      <dc:creator>pranaynanda</dc:creator>
      <dc:date>2017-08-08T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354571#M104940</link>
      <description>&lt;P&gt;something like this does solve my problem as @somesoni2 suggested but I would like to see data split into weeks instead of months:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; base search| timechart count by State span=1w |  streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354571#M104940</guid>
      <dc:creator>pranaynanda</dc:creator>
      <dc:date>2017-08-08T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354572#M104941</link>
      <description>&lt;P&gt;something like this does solve my problem as @somesoni2 suggested but I would like to see data split into weeks instead of months:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; base search| timechart count by State span=1w |  streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354572#M104941</guid>
      <dc:creator>pranaynanda</dc:creator>
      <dc:date>2017-08-08T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354573#M104942</link>
      <description>&lt;P&gt;Try this (always have span just after timechart command)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search| timechart span=1w count by State |  streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354573#M104942</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-08T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354574#M104943</link>
      <description>&lt;P&gt;Voila! You're there! Thanks! I expect some admin to convert your comment to the answer! Amazing job! Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354574#M104943</guid>
      <dc:creator>pranaynanda</dc:creator>
      <dc:date>2017-08-08T16:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354575#M104944</link>
      <description>&lt;P&gt;And the community expects you to accept the answer, please. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 16:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Streamstats-count/m-p/354575#M104944</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-08-08T16:45:03Z</dc:date>
    </item>
  </channel>
</rss>

