<?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: how to plot count of distinct value over time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271418#M81696</link>
    <description>&lt;P&gt;What is it that you want the distinct count of? The below will give your distinct_count of product_name. In other words, it will tell you how many distinct products were in each week for past 6 months.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-6month sourcetype="mysource" | timechart span=1week dc(product_name) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:22:19 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2020-09-29T10:22:19Z</dc:date>
    <item>
      <title>how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271413#M81691</link>
      <description>&lt;P&gt;earliest=-6month sourcetype="mysource" | timechart span=1week count by product_name&lt;/P&gt;

&lt;P&gt;I was running this in order to see the trend over time. The intention was to see the whole count summation of 1 week over 6 month span. but I am not sure whether this query is showing summation of counts of entire week or just showing single day's count separate by 1week time span.&lt;/P&gt;

&lt;P&gt;Please let me know if this is counting the 7 days worth of count or just showing count of one day calculated every 7 days.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271413#M81691</guid>
      <dc:creator>davidoh0905</dc:creator>
      <dc:date>2016-07-26T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271414#M81692</link>
      <description>&lt;P&gt;It is showing you the summation of 7 days starting your period of 6 months. The query is serving you the purpose, additionally if you are interested in getting no repeated values you can pipe a dedup before timechart. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271414#M81692</guid>
      <dc:creator>kunalmao</dc:creator>
      <dc:date>2016-07-26T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271415#M81693</link>
      <description>&lt;P&gt;Your search will show 7 day totals, However, these are not distinct counts. This counts EVERY event index in that sourcetype by product_name in the past 7 days for 6 months.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271415#M81693</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-26T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271416#M81694</link>
      <description>&lt;P&gt;If your requirement is to get number of events for each product per week, including all 7 days of the week, you already have the query. It's not distinct count of the product.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271416#M81694</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-26T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271417#M81695</link>
      <description>&lt;P&gt;thank you! could you teach me how to use distinct count??&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271417#M81695</guid>
      <dc:creator>davidoh0905</dc:creator>
      <dc:date>2016-07-26T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271418#M81696</link>
      <description>&lt;P&gt;What is it that you want the distinct count of? The below will give your distinct_count of product_name. In other words, it will tell you how many distinct products were in each week for past 6 months.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-6month sourcetype="mysource" | timechart span=1week dc(product_name) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271418#M81696</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T10:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271419#M81697</link>
      <description>&lt;P&gt;Thank you! @sundareshir&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271419#M81697</guid>
      <dc:creator>davidoh0905</dc:creator>
      <dc:date>2016-07-26T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot count of distinct value over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271420#M81698</link>
      <description>&lt;P&gt;Please mark the question as answered to close it out.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-plot-count-of-distinct-value-over-time/m-p/271420#M81698</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-26T16:52:26Z</dc:date>
    </item>
  </channel>
</rss>

