<?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: dedup results in a table and count them in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40345#M9292</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;
this works and looks pritty nice!!!&lt;/P&gt;

&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2013 13:03:33 GMT</pubDate>
    <dc:creator>ndcl</dc:creator>
    <dc:date>2013-09-04T13:03:33Z</dc:date>
    <item>
      <title>dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40339#M9286</link>
      <description>&lt;P&gt;Hi Base,&lt;/P&gt;

&lt;P&gt;I just want to create a table from logon events on several servers grouped by computer. So the normal approach is: … | stats list(User) by Computer. Ok, this gives me a list with all the user per computer. But if a user logged on several times in the selected time range I will also get multiple entries of this user. This do not look nice. I want to dedup the user and add a column with the count of occurrence. Like:&lt;/P&gt;

&lt;P&gt;Comp1  user1 3&lt;BR /&gt;&lt;BR /&gt;
...........user2 6&lt;BR /&gt;&lt;BR /&gt;
...........user3 9&lt;BR /&gt;&lt;BR /&gt;
Comp2 user1 1&lt;BR /&gt;&lt;BR /&gt;
...........user4 5  &lt;/P&gt;

&lt;P&gt;and so on.  &lt;/P&gt;

&lt;P&gt;So. All keywords are in that question (dedup and count) but:&lt;BR /&gt;
Dedup leaves only one user entry. All others on other computer are gone and count only counts all users.&lt;BR /&gt;&lt;BR /&gt;
A search like this: stats count(User) by ComputerName, User will count the user but list the computer every time.&lt;BR /&gt;&lt;BR /&gt;
I think this is not very difficult but I didn´t get it. Someone with a hint here?  &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40339#M9286</guid>
      <dc:creator>ndcl</dc:creator>
      <dc:date>2013-08-20T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40340#M9287</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Could we try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats count AS Logins by User,Server|stats list(User)as Users,list(Logins)as "Login Count" by Server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think this will give you the unique combination with number of counts.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40340#M9287</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-20T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40341#M9288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How about using "dedup ComputerName, User" ?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Amit Saxena&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40341#M9288</guid>
      <dc:creator>amit_saxena</dc:creator>
      <dc:date>2013-08-20T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40342#M9289</link>
      <description>&lt;P&gt;yep, this discribes prob 2. I have all counts of user but also the computername for every user but I want to group them by computer.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40342#M9289</guid>
      <dc:creator>ndcl</dc:creator>
      <dc:date>2013-08-20T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40343#M9290</link>
      <description>&lt;P&gt;yep, and this is Prob 1. Dedup will remover every more occurrence of user than 1 but the user can logon several times and on several computers and I want to keep them.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40343#M9290</guid>
      <dc:creator>ndcl</dc:creator>
      <dc:date>2013-08-20T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40344#M9291</link>
      <description>&lt;P&gt;Made a change, Could you check and let me know if it's useful? Haven't tried it myself actually.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40344#M9291</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-20T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40345#M9292</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
this works and looks pritty nice!!!&lt;/P&gt;

&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 13:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40345#M9292</guid>
      <dc:creator>ndcl</dc:creator>
      <dc:date>2013-09-04T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: dedup results in a table and count them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40346#M9293</link>
      <description>&lt;P&gt;Hi, it's been a while but maybe the answer is still needed:&lt;/P&gt;

&lt;P&gt;... | stats values(User) by Computer&lt;/P&gt;

&lt;P&gt;will give you a deduped list of the user.&lt;/P&gt;

&lt;P&gt;Another approach would be to do a dedup. You can dedup more then one field, so:&lt;/P&gt;

&lt;P&gt;... | dedup User, Computer | ...&lt;/P&gt;

&lt;P&gt;will give you any combination of those two fields, but only onces. &lt;/P&gt;

&lt;P&gt;Kind regards,&lt;BR /&gt;
Felix&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 09:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-results-in-a-table-and-count-them/m-p/40346#M9293</guid>
      <dc:creator>fbl_itcs</dc:creator>
      <dc:date>2013-11-18T09:02:40Z</dc:date>
    </item>
  </channel>
</rss>

