<?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: Unique users logging in each day chart / search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681879#M232997</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;distinct_count&lt;/FONT&gt; (&lt;FONT face="courier new,courier"&gt;dc&lt;/FONT&gt;) function will give the unique values of a field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ErrorCode=4624 user!="*$"
| timechart span=1d dc(user) as "Unique Users"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 16:13:32 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-03-25T16:13:32Z</dc:date>
    <item>
      <title>Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681867#M232993</link>
      <description>&lt;P&gt;I seem to be close on trying to find the statistics to be able to pull unique users per day but I know I'm missing something.&lt;/P&gt;
&lt;P&gt;Goal: Have a stat/chart/search that has the unique user attribute per day for a span of 1 week / 1 month / 1 year search.&lt;/P&gt;
&lt;P&gt;Search queries trialed:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EventCode=4624 user=* stats count by user  | stats dc(user) 

EventCode=4624 user=* | timechart span1d count as count_user by user | stats count by user&lt;/LI-CODE&gt;
&lt;P&gt;So the login event 4624 would be a successful log in code and then trying to get it to give me a stat number of the unique values of user names that get it each day for a time span.&lt;/P&gt;
&lt;P&gt;Am I close?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 16:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681867#M232993</guid>
      <dc:creator>tylermonteith</dc:creator>
      <dc:date>2024-03-25T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681879#M232997</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;distinct_count&lt;/FONT&gt; (&lt;FONT face="courier new,courier"&gt;dc&lt;/FONT&gt;) function will give the unique values of a field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ErrorCode=4624 user!="*$"
| timechart span=1d dc(user) as "Unique Users"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 16:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681879#M232997</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-25T16:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681898#M233005</link>
      <description>&lt;P&gt;Thank you! If I could ask one more question I'm now wanting to filter that out a bit.&lt;/P&gt;
&lt;P&gt;So when looking that up I'm told to do | where user!="SYSTEM" or something like that&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EventCode=4624 user!="*$" 
| timechart span=1d dc(user) as "Unique Users" 
| where user!="SYSTEM"&lt;/LI-CODE&gt;
&lt;P&gt;So that has me think 2 questions. If != is the sign for EXCLUDE then why does this above statement work user!="*$" and second question since it DOES work how can I exclude multiple values?&lt;/P&gt;
&lt;P&gt;example:&lt;BR /&gt;| where user!="SYSTEM","Administrator","Guest", etc?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 20:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681898#M233005</guid>
      <dc:creator>tylermonteith</dc:creator>
      <dc:date>2024-03-25T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681899#M233006</link>
      <description>&lt;P&gt;Best Practice is to filter out events as early as possible, preferably before the first pipe.&amp;nbsp; Multiple filters can be combined with (implicit) &lt;FONT face="courier new,courier"&gt;AND&lt;/FONT&gt;.&amp;nbsp; Some like the cleaner look of the &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator that just lists values to look for (or omit if &lt;FONT face="courier new,courier"&gt;NOT&lt;/FONT&gt; is used).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EventCode=4624 user!="*$" NOT user IN (SYSTEM Administrator Guest)
| timechart span=1d dc(user) as "Unique Users" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 19:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681899#M233006</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-25T19:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681900#M233007</link>
      <description>&lt;P&gt;Can I use wildcard values in the IN command?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;user IN (System Administrator Guest admin*)&amp;nbsp; So basically omit any user that starts with the word admin?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 19:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681900#M233007</guid>
      <dc:creator>tylermonteith</dc:creator>
      <dc:date>2024-03-25T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users logging in each day chart / search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681903#M233008</link>
      <description>&lt;P&gt;Try and see. Good thing about Splunk search is that it's hard to break something just by searching. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And yes, you can use wildcards with IN operator.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 20:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-logging-in-each-day-chart-search/m-p/681903#M233008</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-25T20:10:55Z</dc:date>
    </item>
  </channel>
</rss>

