<?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 List of users sharing files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110041#M28732</link>
    <description>&lt;P&gt;I am looking to get a list of unique users who share files. The logs have an entry when a file is accessed with the FileID and the UserID. Doing something like &lt;STRONG&gt;.....| stats dc(UserID) AS UserCount by FileID  | where UserCount&amp;gt;1&lt;/STRONG&gt;  gives me the number of files that are shared (more than 1 user accessed it), but I don't quite know how to extract the list of distinct UserIDs from that list. I've tried chart, but with a large number of users (&amp;gt;10,000) it produces a huge number of columns and seems to crash. i'm really just after the count of unique UserIDs, so if there is a way to produce just that number and avoid a huge table output that would be very helpful. Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jan 2014 23:40:47 GMT</pubDate>
    <dc:creator>fuzzy_rocks</dc:creator>
    <dc:date>2014-01-12T23:40:47Z</dc:date>
    <item>
      <title>List of users sharing files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110041#M28732</link>
      <description>&lt;P&gt;I am looking to get a list of unique users who share files. The logs have an entry when a file is accessed with the FileID and the UserID. Doing something like &lt;STRONG&gt;.....| stats dc(UserID) AS UserCount by FileID  | where UserCount&amp;gt;1&lt;/STRONG&gt;  gives me the number of files that are shared (more than 1 user accessed it), but I don't quite know how to extract the list of distinct UserIDs from that list. I've tried chart, but with a large number of users (&amp;gt;10,000) it produces a huge number of columns and seems to crash. i'm really just after the count of unique UserIDs, so if there is a way to produce just that number and avoid a huge table output that would be very helpful. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2014 23:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110041#M28732</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2014-01-12T23:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: List of users sharing files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110042#M28733</link>
      <description>&lt;P&gt;The stats command &lt;CODE&gt;values()&lt;/CODE&gt; does this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats dc(UserID) AS UserCount, values(UserID) as UniqueUsers by FileID | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 07:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110042#M28733</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-13T07:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: List of users sharing files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110043#M28734</link>
      <description>&lt;P&gt;Thanks - exactly what I was looking for!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 05:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-users-sharing-files/m-p/110043#M28734</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2014-01-14T05:27:02Z</dc:date>
    </item>
  </channel>
</rss>

