<?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 create a table listing users and unique values for other associated fields as HostName or Access? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115986#M30782</link>
    <description>&lt;P&gt;That's it! Can't hank you enough for your time and help - greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2014 20:38:44 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2014-11-12T20:38:44Z</dc:date>
    <item>
      <title>How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115972#M30768</link>
      <description>&lt;P&gt;I have the following fields:&lt;/P&gt;

&lt;P&gt;User          HostName          Access&lt;BR /&gt;
User A      machine A           SSH&lt;BR /&gt;
User A      machine A           VPN&lt;BR /&gt;
User A      machine B           SSH&lt;BR /&gt;
User B      machine B           SSH&lt;BR /&gt;
User B      machine B           SMB&lt;BR /&gt;
User C      machine C           SSH&lt;/P&gt;

&lt;P&gt;and so on....&lt;/P&gt;

&lt;P&gt;How do I create a table that will list the user showing the unique values of either HostName or Access? I want to be able to search for users who are coming from multiple machines and/or using multiple access methods.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 20:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115972#M30768</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-11T20:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115973#M30769</link>
      <description>&lt;P&gt;&lt;CODE&gt; | stats values(HostName), values(Access) by User &lt;/CODE&gt; will give you a table of User, HostName, and Access where the HostName and Access cells have the distinct values listed in lexicographical order.&lt;/P&gt;

&lt;P&gt;Ref:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;Stats Functions&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115973#M30769</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-11T21:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115974#M30770</link>
      <description>&lt;P&gt;Al,&lt;/P&gt;

&lt;P&gt;Thx a million for the reply and info.&lt;/P&gt;

&lt;P&gt;How would I now add counts to the data (for either filed) and then sort by the count?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 21:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115974#M30770</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-11T21:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115975#M30771</link>
      <description>&lt;P&gt;&lt;CODE&gt;| stats values(HostName), values(Access), count(HostName) as "HostCount", count(Access) as "AccessCount" by User&lt;BR /&gt;
 | sort -UsageCount&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats values(HostName), values(Access), count(HostName) as "HostCount", count(Access) as "AccessCount" by User&lt;BR /&gt;
 | sort -AccessCount&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;depending on which one you want to sort by&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 22:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115975#M30771</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-11T22:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115976#M30772</link>
      <description>&lt;P&gt;perhaps &lt;CODE&gt;dc&lt;/CODE&gt; is better than &lt;CODE&gt;c&lt;/CODE&gt; for Hostname and Access&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115976#M30772</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-11-12T07:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115977#M30773</link>
      <description>&lt;P&gt;Thx again as that worked perfectly, What I'm trying to do now is to get a breakdown in counts for either HostName or Access as such:&lt;/P&gt;

&lt;P&gt;User    Values(Access)  Values(HostName)    HostCount   AccessCount&lt;BR /&gt;
UserA   VPN                         MachineA                    4                   1&lt;BR /&gt;
UserA   SSH                         MachineB                    2                   4&lt;BR /&gt;
ETC             &lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115977#M30773</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-12T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115978#M30774</link>
      <description>&lt;P&gt;Kristian,&lt;/P&gt;

&lt;P&gt;Great suggestion on &lt;STRONG&gt;dc&lt;/STRONG&gt; as that worked great as well&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115978#M30774</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-12T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115979#M30775</link>
      <description>&lt;P&gt;Definitely, great point - especially since its paired with values (which are unique too)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115979#M30775</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-12T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115980#M30776</link>
      <description>&lt;P&gt;Isn't that what the above does ? Breakdown in a different sense?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115980#M30776</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-12T17:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115981#M30777</link>
      <description>&lt;P&gt;It does break it down, but I'm not seeing counts per Hostname or per Access - seeing a total count of both Hostname and Access.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115981#M30777</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-12T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115982#M30778</link>
      <description>&lt;P&gt;So If you just do &lt;CODE&gt; | stats dc(HostName) as "HostCount", dc(Access) as "AccessCount" by User&lt;/CODE&gt; you're getting two columns of identical values? I'm guessing its because you might just be using count, which is counting the events with that value present rather than occurrences of different values, which I think is what you're looking for.&lt;/P&gt;

&lt;P&gt;See this screenshot for an example search and the difference: &lt;A href="http://i.imgur.com/KLVbW9N.png"&gt;http://i.imgur.com/KLVbW9N.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115982#M30778</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-12T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115983#M30779</link>
      <description>&lt;P&gt;Actually doing just | stats dc(HostName) as "HostCount", dc(Access) as "AccessCount" by User gives me a nice summary table for the user's host count and access count.&lt;/P&gt;

&lt;P&gt;Looking at the example you sent me (and perhaps I'm not stating with enough clarity so apologizes there) for example for acurry@buttercup games.com, how do you get the unique/distinct count for each values(usage) so it would look like the following:&lt;/P&gt;

&lt;P&gt;values(usage) - count&lt;BR /&gt;
Borderline - 58&lt;BR /&gt;
Business - 42&lt;BR /&gt;
Personal - 46&lt;BR /&gt;
Unknown - 50&lt;BR /&gt;
Violation - 50&lt;/P&gt;

&lt;P&gt;(count 246 is broken down in each category) for acurry (and every other user as well)&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115983#M30779</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-12T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115984#M30780</link>
      <description>&lt;P&gt;Ah I see. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt; sourcetype=cisco_wsa_squid | stats count by usage, cs_username | stats list(count), values(usage) by cs_username &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/py44vwB.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115984#M30780</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2020-09-28T18:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115985#M30781</link>
      <description>&lt;P&gt;The difference being &lt;CODE&gt;list(count)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115985#M30781</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-12T18:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115986#M30782</link>
      <description>&lt;P&gt;That's it! Can't hank you enough for your time and help - greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 20:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115986#M30782</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2014-11-12T20:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115987#M30783</link>
      <description>&lt;P&gt;Happy Splunking ^__^ &lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 20:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115987#M30783</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2014-11-12T20:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table listing users and unique values for other associated fields as HostName or Access?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115988#M30784</link>
      <description>&lt;P&gt;Hi alijohson  Great Answer, wish we could make unique values of business as Columns , which would give nice table look &lt;/P&gt;

&lt;P&gt;Kind of below example &lt;/P&gt;

&lt;P&gt;User Name  Business   Borderline Personal Violation Other&lt;BR /&gt;
&lt;A href="mailto:abc@xyz.com"&gt;abc@xyz.com&lt;/A&gt;  44              32             23              43            333&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-listing-users-and-unique-values-for-other/m-p/115988#M30784</guid>
      <dc:creator>cvrkishore</dc:creator>
      <dc:date>2017-07-20T15:46:22Z</dc:date>
    </item>
  </channel>
</rss>

