<?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 Error in 'streamstats' command: The argument 'diff(count)' is invalid. in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Error-in-streamstats-command-The-argument-diff-count-is-invalid/m-p/631768#M2</link>
    <description>&lt;P&gt;I am running the following query:&lt;BR /&gt;&lt;BR /&gt;index="ABCi" sourcetype=DEF&lt;BR /&gt;| timechart span=1h count&lt;BR /&gt;| fields - _time&lt;BR /&gt;| streamstats current=t diff(count) as count_diff&lt;BR /&gt;| stats avg(count_diff)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BUT, I am receiving the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error in 'streamstats' command: The argument 'diff(count)' is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 23:16:46 GMT</pubDate>
    <dc:creator>POR160893</dc:creator>
    <dc:date>2023-02-21T23:16:46Z</dc:date>
    <item>
      <title>Error in 'streamstats' command: The argument 'diff(count)' is invalid.</title>
      <link>https://community.splunk.com/t5/Other-Usage/Error-in-streamstats-command-The-argument-diff-count-is-invalid/m-p/631768#M2</link>
      <description>&lt;P&gt;I am running the following query:&lt;BR /&gt;&lt;BR /&gt;index="ABCi" sourcetype=DEF&lt;BR /&gt;| timechart span=1h count&lt;BR /&gt;| fields - _time&lt;BR /&gt;| streamstats current=t diff(count) as count_diff&lt;BR /&gt;| stats avg(count_diff)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BUT, I am receiving the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error in 'streamstats' command: The argument 'diff(count)' is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 23:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Error-in-streamstats-command-The-argument-diff-count-is-invalid/m-p/631768#M2</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-02-21T23:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'streamstats' command: The argument 'diff(count)' is invalid.</title>
      <link>https://community.splunk.com/t5/Other-Usage/Error-in-streamstats-command-The-argument-diff-count-is-invalid/m-p/631770#M3</link>
      <description>&lt;P&gt;diff() isn't a stats aggregation function - you could use range() instead, and perhaps a window size of 2&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats current=t window=2 diff(count) as count_diff&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 23:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Error-in-streamstats-command-The-argument-diff-count-is-invalid/m-p/631770#M3</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-21T23:49:04Z</dc:date>
    </item>
  </channel>
</rss>

