<?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 Number of distinct days an event occurs on, within the last month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72109#M18025</link>
    <description>&lt;P&gt;I would like to chart a count of how many distinct days users logged into our system within the past 7 days. When I try to count days, I keep getting 0. Assuming I have seen a total of 200 unique users, output would be something like 100 users seen 7 unique days, 90 users seen 6 unique days, and 10 users seen on 4 unique days. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2013 01:26:23 GMT</pubDate>
    <dc:creator>fuzzy_rocks</dc:creator>
    <dc:date>2013-09-25T01:26:23Z</dc:date>
    <item>
      <title>Number of distinct days an event occurs on, within the last month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72109#M18025</link>
      <description>&lt;P&gt;I would like to chart a count of how many distinct days users logged into our system within the past 7 days. When I try to count days, I keep getting 0. Assuming I have seen a total of 200 unique users, output would be something like 100 users seen 7 unique days, 90 users seen 6 unique days, and 10 users seen on 4 unique days. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 01:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72109#M18025</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2013-09-25T01:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Number of distinct days an event occurs on, within the last month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72110#M18026</link>
      <description>&lt;P&gt;Not sure if I have the wrong end of the stick, but it's quite easy to get individual day count for events like this:&lt;/P&gt;

&lt;P&gt;[host or other filter] AND [event-string] | dedup 1 host date_mday | stats count by host&lt;/P&gt;

&lt;P&gt;That's obviously by host but you can change to your username extracted field to do a similar sort of thing...&lt;/P&gt;

&lt;P&gt;This seems to work for cisco on my system... how many distinct days users made config changes..&lt;/P&gt;

&lt;P&gt;"%SYS-5-CONFIG_I: Configured" | dedup 1 cisco_configuredby,date_mday | stats count by cisco_configuredby&lt;/P&gt;

&lt;P&gt;Not sure I can help with the chart though. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;EDIT: &lt;/P&gt;

&lt;P&gt;"%SYS-5-CONFIG_I: Configured" | dedup 1 cisco_configuredby,date_mday | stats count AS days by cisco_configuredby | stats count by days&lt;/P&gt;

&lt;P&gt;days    count&lt;BR /&gt;
1   17&lt;BR /&gt;
2   11&lt;BR /&gt;
3   5&lt;BR /&gt;
5   2&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72110#M18026</guid>
      <dc:creator>Narj</dc:creator>
      <dc:date>2020-09-28T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number of distinct days an event occurs on, within the last month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72111#M18027</link>
      <description>&lt;P&gt;Thanks! I got it done with &lt;/P&gt;

&lt;P&gt;....| stats dc(date_mday) AS UserDaysCount by UserID | chart count(UserDaysCount) by UserDaysCount&lt;/P&gt;

&lt;P&gt;which works for less than one month. Not sure why I was getting zero answer at the start, must've had some typo.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 16:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-distinct-days-an-event-occurs-on-within-the-last-month/m-p/72111#M18027</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2013-09-26T16:36:22Z</dc:date>
    </item>
  </channel>
</rss>

