<?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 timechart of a sliding window count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459063#M129638</link>
    <description>&lt;P&gt;I need a timechart that counts the number of distinct fieldx where that fieldx has more than x events in that span/bin. &lt;/P&gt;

&lt;P&gt;I hope that makes sense, so sudocode would be something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah | stats count by fieldx as blah | where blah&amp;gt;5 |timechart span=1hr count distinct by fieldx  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That search obviously doesn't work, I'm not sure how to structure it to get what I want.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 18:35:56 GMT</pubDate>
    <dc:creator>pr0n</dc:creator>
    <dc:date>2019-07-10T18:35:56Z</dc:date>
    <item>
      <title>timechart of a sliding window count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459063#M129638</link>
      <description>&lt;P&gt;I need a timechart that counts the number of distinct fieldx where that fieldx has more than x events in that span/bin. &lt;/P&gt;

&lt;P&gt;I hope that makes sense, so sudocode would be something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah | stats count by fieldx as blah | where blah&amp;gt;5 |timechart span=1hr count distinct by fieldx  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That search obviously doesn't work, I'm not sure how to structure it to get what I want.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 18:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459063#M129638</guid>
      <dc:creator>pr0n</dc:creator>
      <dc:date>2019-07-10T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: timechart of a sliding window count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459064#M129639</link>
      <description>&lt;P&gt;The pseudo-code fails because the &lt;CODE&gt;stats&lt;/CODE&gt; command eliminated the _time field needed by &lt;CODE&gt;timechart&lt;/CODE&gt;.  Try this alternative:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = blah | bin span=1h _time | stats count by _time fieldx | where count &amp;gt; 5 | timechart span=1h max(count) by fieldx
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459064#M129639</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-10T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: timechart of a sliding window count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459065#M129640</link>
      <description>&lt;P&gt;I was able to do this at seems to work correctly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=asdf fieldx=* | bucket _time span=day  | stats  count by fieldx _time  | where count&amp;gt;2  | timechart distinct_count(fieldx)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-of-a-sliding-window-count/m-p/459065#M129640</guid>
      <dc:creator>pr0n</dc:creator>
      <dc:date>2019-07-10T20:03:55Z</dc:date>
    </item>
  </channel>
</rss>

