<?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: Chart event that are unique over month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312112#M93493</link>
    <description>&lt;P&gt;I tried it on my data, but this is what I get.&lt;/P&gt;

&lt;P&gt;For the last 3 month. if I use time chart, my value of Jan and Dec are the same, however the Nov are less.&lt;/P&gt;

&lt;P&gt;And I think the sequence are not correct. The earlier month should be the super set of all.. and the subsequent months are incremental of the earlier months.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 05:47:53 GMT</pubDate>
    <dc:creator>quahfamili</dc:creator>
    <dc:date>2018-02-26T05:47:53Z</dc:date>
    <item>
      <title>Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312110#M93491</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I had been wanting to change events that are unique over month but to no avail. I will give an illustration below:&lt;/P&gt;

&lt;P&gt;''month''  ''event''&lt;BR /&gt;
''1''            ''a''&lt;BR /&gt;
''1''            ''b''&lt;BR /&gt;
''1''            ''c''&lt;BR /&gt;
''2''            ''a''&lt;BR /&gt;
''2''            ''c''&lt;BR /&gt;
''2''            ''z''&lt;BR /&gt;
''2''            ''d''&lt;BR /&gt;
''2''            ''z''&lt;BR /&gt;
''3''            ''a''&lt;BR /&gt;
''3''            ''z''&lt;BR /&gt;
''3''            ''b''&lt;BR /&gt;
''3''            ''g''&lt;BR /&gt;
''3''            ''h''&lt;BR /&gt;
''3''            ''u''&lt;BR /&gt;
''3''            ''z''&lt;BR /&gt;
''3''            ''b''&lt;/P&gt;

&lt;P&gt;assuming the index=someIndex&lt;/P&gt;

&lt;P&gt;index=somIndex | timechart dc(event)  as ''Unique new count''  by month &lt;/P&gt;

&lt;P&gt;give you:&lt;/P&gt;

&lt;P&gt;''month''   ''Unique new count''&lt;BR /&gt;
''1''              ''3''&lt;BR /&gt;
''2''              ''4''&lt;BR /&gt;
''3''              ''6'' &lt;/P&gt;

&lt;P&gt;The result I want would be:&lt;/P&gt;

&lt;P&gt;''month''   ''Unique new count''&lt;BR /&gt;
''1''              ''3''&lt;BR /&gt;
''2''              ''2''&lt;BR /&gt;
''3''              ''3''&lt;/P&gt;

&lt;P&gt;Any one can help?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 03:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312110#M93491</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-02-26T03:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312111#M93492</link>
      <description>&lt;P&gt;For example, you can count on this search sentence.&lt;BR /&gt;
However, the month needs a year and month.&lt;/P&gt;

&lt;P&gt;(your search)&lt;BR /&gt;
|table month event&lt;BR /&gt;
|stats min(month) as month by event&lt;BR /&gt;
|stats count as "Unique new count" by month&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 04:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312111#M93492</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-02-26T04:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312112#M93493</link>
      <description>&lt;P&gt;I tried it on my data, but this is what I get.&lt;/P&gt;

&lt;P&gt;For the last 3 month. if I use time chart, my value of Jan and Dec are the same, however the Nov are less.&lt;/P&gt;

&lt;P&gt;And I think the sequence are not correct. The earlier month should be the super set of all.. and the subsequent months are incremental of the earlier months.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 05:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312112#M93493</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-02-26T05:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312113#M93494</link>
      <description>&lt;P&gt;I thought that counting the months when the event first appeared could get unique events every month.&lt;/P&gt;

&lt;P&gt;Is it different from yours?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312113#M93494</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-02-26T06:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312114#M93495</link>
      <description>&lt;P&gt;I think I put it wrongly in my question. I looking for a more incremental kinda of counting.&lt;/P&gt;

&lt;P&gt;For example: 1st month I have 10 unique events, 2nd month I have 2 new unique events that did not happened in the 1st month, 3rd month I have 5 new unique events that had not happened in 1st and 2nd month combine, and 4th month I have 7 new unique events that had not happened in 1st to 3rd month. &lt;/P&gt;

&lt;P&gt;The plot will be like: &lt;/P&gt;

&lt;P&gt;1st - 10&lt;BR /&gt;
2nd - 2&lt;BR /&gt;
3rd -5&lt;BR /&gt;
4th - 7 &lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312114#M93495</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-02-26T06:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312115#M93496</link>
      <description>&lt;P&gt;Edit: Another example to clarify the question:&lt;/P&gt;

&lt;P&gt;1st month I have 10 unique events&lt;BR /&gt;
2nd month I have 2 new unique events that did not happened in the 1st month &lt;BR /&gt;
3rd month I have 5 new unique events that had not happened in 1st and 2nd month combined&lt;BR /&gt;
4th month I have 7 new unique events that had not happened in 1st to 3rd month&lt;/P&gt;

&lt;P&gt;The plot will be like: &lt;/P&gt;

&lt;P&gt;1st - 10&lt;BR /&gt;
2nd - 2&lt;BR /&gt;
3rd -5&lt;BR /&gt;
4th - 7 &lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312115#M93496</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-02-26T06:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312116#M93497</link>
      <description>&lt;P&gt;You should be able to see and understand the moon that first appeared.&lt;BR /&gt;
If I do it is such a search sentence.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
|stats earliest(_time) as time by event
|eval month=strftime(time,"%Y-%m")
|stats count as "Unique new count" by month
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 04:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312116#M93497</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-02-27T04:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart event that are unique over month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312117#M93498</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
Thanks for the reply, I got it to work. I did a mistake to dudup the event.&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-event-that-are-unique-over-month/m-p/312117#M93498</guid>
      <dc:creator>quahfamili</dc:creator>
      <dc:date>2018-02-27T07:30:13Z</dc:date>
    </item>
  </channel>
</rss>

