<?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 how to show Value with individual count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143690#M39923</link>
    <description>&lt;P&gt;Hello Folks I am new to plunk please help me out of this  I need Value with its individual count shown next to it .&lt;BR /&gt;
I wrote this  query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=my _sourcetype tag_type = AGENTID_COMPLETED User_Id="*"|dedup agentId | stats values(device_type_list) AS device_list,count AS "# of devices" by User_Id | eval device_list =mvjoin(device_list,",")



User_Id           | device_list | # of devices
x@gmail.com         WIN           1
ami@gmail.com       WIN           1
apea@gmail.com      WIN           3
bbir@gmail.com      LINUX         1
bmci@gmail.com      WIN           7
dn@gmail.com        LINUX         1
dslev@gmail.com     WIN           2
ee@gmail.com        LINUX,WIN     14   .................. I need as         LINUX(4), WIN (10)
fburr@gmail.com     WIN        2
fkong@gmail.com     WIN           3
gann@gmail.com      WIN           1
glyel@gmail.com     WIN           1
jlau@gmail.com      LINUX, WIN    7  ..................I need as         LINUX(4), WIN (10)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2015 22:51:51 GMT</pubDate>
    <dc:creator>Bhargav99</dc:creator>
    <dc:date>2015-07-24T22:51:51Z</dc:date>
    <item>
      <title>how to show Value with individual count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143690#M39923</link>
      <description>&lt;P&gt;Hello Folks I am new to plunk please help me out of this  I need Value with its individual count shown next to it .&lt;BR /&gt;
I wrote this  query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=my _sourcetype tag_type = AGENTID_COMPLETED User_Id="*"|dedup agentId | stats values(device_type_list) AS device_list,count AS "# of devices" by User_Id | eval device_list =mvjoin(device_list,",")



User_Id           | device_list | # of devices
x@gmail.com         WIN           1
ami@gmail.com       WIN           1
apea@gmail.com      WIN           3
bbir@gmail.com      LINUX         1
bmci@gmail.com      WIN           7
dn@gmail.com        LINUX         1
dslev@gmail.com     WIN           2
ee@gmail.com        LINUX,WIN     14   .................. I need as         LINUX(4), WIN (10)
fburr@gmail.com     WIN        2
fkong@gmail.com     WIN           3
gann@gmail.com      WIN           1
glyel@gmail.com     WIN           1
jlau@gmail.com      LINUX, WIN    7  ..................I need as         LINUX(4), WIN (10)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 22:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143690#M39923</guid>
      <dc:creator>Bhargav99</dc:creator>
      <dc:date>2015-07-24T22:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to show Value with individual count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143691#M39924</link>
      <description>&lt;P&gt;Replace your stats with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count as "# of devices" by User_Id device_type_list | rename device_type_list as device_list
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jul 2015 23:01:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143691#M39924</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-24T23:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to show Value with individual count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143692#M39925</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=my _sourcetype tag_type = AGENTID_COMPLETED User_Id="*"|dedup agentId | stats count by User_Id device_type_list | eval device_type_list=device_type_list."(".count.")" | stats values(device_type_list) AS device_list,sum(count) AS "# of devices" by User_Id | eval device_list =mvjoin(device_list,",")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jul 2015 23:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143692#M39925</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-24T23:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to show Value with individual count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143693#M39926</link>
      <description>&lt;P&gt;seems perfect !!!!!! Only will try to remove the count for the single ones. Thank you so much!!!!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 23:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143693#M39926</guid>
      <dc:creator>Bhargav99</dc:creator>
      <dc:date>2015-07-24T23:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to show Value with individual count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143694#M39927</link>
      <description>&lt;P&gt;Hey I tried This but  I need  unique User Id to be shown in same record. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 23:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-Value-with-individual-count/m-p/143694#M39927</guid>
      <dc:creator>Bhargav99</dc:creator>
      <dc:date>2015-07-24T23:15:51Z</dc:date>
    </item>
  </channel>
</rss>

