<?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 edit my search to create a table with the distinct count of users by domain? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243414#M72443</link>
    <description>&lt;P&gt;Yea... that's exactly what I needed.  Can't believe I overlooked something so simple, I was waaaay over-thinking it.  Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 20:56:27 GMT</pubDate>
    <dc:creator>DEAD_BEEF</dc:creator>
    <dc:date>2016-01-20T20:56:27Z</dc:date>
    <item>
      <title>How to edit my search to create a table with the distinct count of users by domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243412#M72441</link>
      <description>&lt;P&gt;I am trying to create a table that shows the number of distinct users that have logged into a machine.  I am having problems getting the domain to appear next to the distinct user count.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Current search&amp;amp; output&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;index=logs event=logon | dc(username) AS UserCount&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;UserCount
106
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;DESIRED Output&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Domain            UserCount
GUEST                 20
INTERNAL              72
EXTERNAL              4
WIRELESS              10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried various permutations of stats count by, table, and sum, but I just can't seem to figure it out.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243412#M72441</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2016-01-20T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table with the distinct count of users by domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243413#M72442</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;index=logs event=logon | stats dc(username) AS UserCount by Domain&lt;/CODE&gt; not give you what you want?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243413#M72442</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-01-20T20:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table with the distinct count of users by domain?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243414#M72443</link>
      <description>&lt;P&gt;Yea... that's exactly what I needed.  Can't believe I overlooked something so simple, I was waaaay over-thinking it.  Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-with-the-distinct-count/m-p/243414#M72443</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2016-01-20T20:56:27Z</dc:date>
    </item>
  </channel>
</rss>

