<?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: Why is streamstats &amp;quot;reset_on_change=true&amp;quot; is not working? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277211#M83604</link>
    <description>&lt;P&gt;@sathiyasun - Did upgrading your Splunk instance help resolve your issue? If yes, please don't forget to resolve this post by clicking on "Accept" below the best answer and upvoting any comments that were helpful. If you still need more help, please provide a comment with some feedback. Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 07:03:40 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2017-02-24T07:03:40Z</dc:date>
    <item>
      <title>Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277205#M83598</link>
      <description>&lt;P&gt;so here is my search :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=xyz source=pp iso_direction="outgoing" *0210* 
| eval Error_Count=if(de39_response_code!=00,"true","false")
| table _time de39_response_code Error_Count
| streamstats count by Error_Count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Current result :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                               de39_response_code  Error_Count count
2017-01-30 09:57:26.505           05                    true           1
2017-01-30 09:56:37.142           05                    true           2
2017-01-30 09:55:52.728           05                    true           3
2017-01-30 09:55:40.469           05                    true           4
2017-01-30 09:49:19.215           00                    false         1
2017-01-30 09:49:10.167           05                    true           5
2017-01-30 09:42:49.599           05                    true           6
2017-01-30 09:30:32.162           05                    true           7
2017-01-30 09:54:41.951           05                    true           8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So when i am trying to use the command : reset_on_change=true its give me error invalid argument and doesn't reset the count&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expected result :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=xyz source=pp iso_direction="outgoing" *0210* 
| eval Error_Count=if(de39_response_code!=00,"true","false")
| table _time de39_response_code Error_Count
| streamstats count by Error_Count reset_on_change=true


_time                               de39_response_code  Error_Count count
2017-01-30 09:57:26.505           05                    true           1
2017-01-30 09:56:37.142           05                    true           2
2017-01-30 09:55:52.728           05                    true           3
2017-01-30 09:55:40.469           05                    true           4
2017-01-30 09:49:19.215           00                    false         1
2017-01-30 09:49:10.167           05                    true           1
2017-01-30 09:42:49.599           05                    true           2
2017-01-30 09:30:32.162           05                    true           3
2017-01-30 09:54:41.951           05                    true           4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;any help?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277205#M83598</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2020-09-29T12:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277206#M83599</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2428i09001533C99485C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
I tried with &lt;CODE&gt;sreamstats&lt;/CODE&gt; and you SPL seems to work fine with that argument in my local which is &lt;CODE&gt;Splunk 6.5.x&lt;/CODE&gt;.&lt;BR /&gt;
Infact the error that you are reporting shall come for following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Error in 'eventstats' command: The argument 'reset_on_change=true' is invalid.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Error in 'stats' command: The argument 'reset_on_change=true' is invalid.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Error in 'sistats' command: The argument 'reset_on_change=true' is invalid.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Error in 'tstats' command: Invalid argument: 'reset_on_change=true'&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 06:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277206#M83599</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-02-04T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277207#M83600</link>
      <description>&lt;P&gt;What version of Splunk are you running? That option was added in 6.4.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 16:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277207#M83600</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-04T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277208#M83601</link>
      <description>&lt;P&gt;I am using Splunk 6.3.1.. do you think that could be an issue here ? &lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277208#M83601</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2017-02-06T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277209#M83602</link>
      <description>&lt;P&gt;I guess that is the issue.. I am using Splunk 6.3.1.. Thanks. Let me try to upgrade it and see if that works for me . &lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277209#M83602</guid>
      <dc:creator>sathiyasun</dc:creator>
      <dc:date>2017-02-06T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277210#M83603</link>
      <description>&lt;P&gt;yes, that is the issue!! 6.4.x or higher is what's needed.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 02:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277210#M83603</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-02-07T02:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is streamstats "reset_on_change=true" is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277211#M83604</link>
      <description>&lt;P&gt;@sathiyasun - Did upgrading your Splunk instance help resolve your issue? If yes, please don't forget to resolve this post by clicking on "Accept" below the best answer and upvoting any comments that were helpful. If you still need more help, please provide a comment with some feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-streamstats-quot-reset-on-change-true-quot-is-not-working/m-p/277211#M83604</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-24T07:03:40Z</dc:date>
    </item>
  </channel>
</rss>

