<?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 identify unique user  count  without duplicates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65017#M16062</link>
    <description>&lt;P&gt;This should work for you:&lt;/P&gt;

&lt;P&gt;index="your_index_name" sourcetype="your_source_type_name" &lt;STRONG&gt;AND AuthProfile|eval user=firstname+""+lastname|stats dc(user) as Distinct_User&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:32:24 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2020-09-28T13:32:24Z</dc:date>
    <item>
      <title>How to identify unique user  count  without duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65016#M16061</link>
      <description>&lt;P&gt;I have a log files where it contains duplicates like "json from session" log duplicates .. so the log which contains this "json from session" , that kind of user should be eliminated from count of unique users.....&lt;/P&gt;

&lt;P&gt;Example logs are.........&lt;/P&gt;

&lt;P&gt;Log 1 Mar 3, 2012 9:34:00 AM context log&lt;BR /&gt;
Info: AuthProfile :: lastname="Dilshan",firstname="tilak",siteid=&amp;gt;"IND123G"......&lt;/P&gt;

&lt;P&gt;Log 2 Mar 3, 2012 9:34:00 AM context log&lt;BR /&gt;
Info: access ....&lt;/P&gt;

&lt;P&gt;Log 3 Mar 3, 2012 9:34:00 AM context log &lt;BR /&gt;
Info : transaction ............&lt;/P&gt;

&lt;P&gt;Log 4 Mar 3, 2012 9:34:00 AM context log&lt;BR /&gt;
Info : Authenticat : retrieved non-empty json: {lastName ........&lt;/P&gt;

&lt;P&gt;Log 5 Mar 3, 2012 9:34:00 AM context log &lt;BR /&gt;
Info : Authenticat : json from session= lastname="Dilshan",firstname="tilak",siteid="IND123G"&lt;/P&gt;

&lt;P&gt;Log 7 Mar 4, 2012 10:12:34 AM context log &lt;BR /&gt;
Info : action ee.........&lt;/P&gt;

&lt;P&gt;Log 8 Mar 4, 2012 10:12:34 AM context log &lt;BR /&gt;
Info : AuthProfile :: lastname="Micheal",firstname="John",siteid=&amp;gt;"AUS123G"......&lt;/P&gt;

&lt;P&gt;Log 9 Mar 4, 2012 10:12:34 AM context log&lt;BR /&gt;
Info: access ....&lt;/P&gt;

&lt;P&gt;Log 10 Mar 4, 2012 10:12:34 AM context log &lt;BR /&gt;
Info : transaction ............&lt;/P&gt;

&lt;P&gt;Log 11 Mar 4, 2012 10:12:34 AM context log&lt;BR /&gt;
Info : Authenticat : retrieved non-empty json: {lastName ........&lt;/P&gt;

&lt;P&gt;Log 12 Mar 5, 2012 10:12:34 AM context log &lt;BR /&gt;
Info : transaction processing ..............&lt;/P&gt;

&lt;P&gt;So like this i have N number of logs in which i have to identify unique users without duplicates like..............from AuthProfile ... Unique user "John" and count is 1 .....&lt;BR /&gt;
but not Dilshan..it contains ( json from session ) So , it is duplicate... So , it must be eliminated ....how to make this ,,,can u guide me ...plz .............&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65016#M16061</guid>
      <dc:creator>dilstn</dc:creator>
      <dc:date>2013-03-18T11:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify unique user  count  without duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65017#M16062</link>
      <description>&lt;P&gt;This should work for you:&lt;/P&gt;

&lt;P&gt;index="your_index_name" sourcetype="your_source_type_name" &lt;STRONG&gt;AND AuthProfile|eval user=firstname+""+lastname|stats dc(user) as Distinct_User&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65017#M16062</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2020-09-28T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify unique user  count  without duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65018#M16063</link>
      <description>&lt;P&gt;this logic is also looks cool but not working , so I  want a logic &lt;BR /&gt;
like  this for example&lt;BR /&gt;&lt;BR /&gt;
search AuthProfile(log 1) where the line from it (log 5) not json from session ... if this condition satisfies &lt;BR /&gt;
then count user .... else leave that user &lt;/P&gt;

&lt;P&gt;all my logs files contains AuthProfile along with some "json from session" log repeated exactly at each 5th log from AuthProfile ....for duplicates..... and some does not contain the json at the 5th log which is the original ...which i need to predict in  as per the above logic ...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65018#M16063</guid>
      <dc:creator>dilstn</dc:creator>
      <dc:date>2013-03-18T12:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify unique user  count  without duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65019#M16064</link>
      <description>&lt;P&gt;The way your question is worded, it seems to me that Ipolo's answer is correct.&lt;/P&gt;

&lt;P&gt;Perhaps we would understand it better if you described the &lt;EM&gt;result&lt;/EM&gt; you want, rather than the logic.&lt;/P&gt;

&lt;P&gt;Are you saying&lt;BR /&gt;&lt;BR /&gt;
- Count the number of unique users (based on  user name) BUT&lt;BR /&gt;&lt;BR /&gt;
- DO NOT COUNT  any users who have a "json from session" entry&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65019#M16064</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-03-18T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify unique user  count  without duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65020#M16065</link>
      <description>&lt;P&gt;yes i want user count without having "json from session" entry...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 05:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-identify-unique-user-count-without-duplicates/m-p/65020#M16065</guid>
      <dc:creator>dilstn</dc:creator>
      <dc:date>2013-03-20T05:58:23Z</dc:date>
    </item>
  </channel>
</rss>

