<?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 can I retrieve count or distinct count of some field values ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232301#M68890</link>
    <description>&lt;P&gt;I have lots of logs for client order id ( field_ name is clitag ), i have to find unique count of client order( field_ name is clitag ) received so far that day?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 06:05:54 GMT</pubDate>
    <dc:creator>gpant</dc:creator>
    <dc:date>2016-01-14T06:05:54Z</dc:date>
    <item>
      <title>How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232301#M68890</link>
      <description>&lt;P&gt;I have lots of logs for client order id ( field_ name is clitag ), i have to find unique count of client order( field_ name is clitag ) received so far that day?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 06:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232301#M68890</guid>
      <dc:creator>gpant</dc:creator>
      <dc:date>2016-01-14T06:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232302#M68891</link>
      <description>&lt;P&gt;In principle I would use stats count or stats dc(fieldname) but I need more information about your data.&lt;BR /&gt;
Can you post some events and give us an example of what you are trying to achieve?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 11:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232302#M68891</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-14T11:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232303#M68892</link>
      <description>&lt;P&gt;hi gpant,&lt;/P&gt;

&lt;P&gt;try uses the function  &lt;CODE&gt;values()&lt;/CODE&gt; used to have these distinct values and &lt;CODE&gt;dc ()&lt;/CODE&gt; to get the number of distinct values.&lt;/P&gt;

&lt;P&gt;for more informations, follow this link: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/CommonStatsFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 11:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232303#M68892</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-01-14T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232304#M68893</link>
      <description>&lt;P&gt;I tried answering but realized it's all guesswork and probably wrong until we get a few events to look at.&lt;/P&gt;

&lt;P&gt;It is possible it's something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... my search earliest=@d | stats dc(client_ag)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it's too hard to tell.&lt;/P&gt;

&lt;P&gt;Could you provide a few events and describe the important pieces for us?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 12:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232304#M68893</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-01-14T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232305#M68894</link>
      <description>&lt;P&gt;thanks for your help, i tried this and it is working fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 10:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232305#M68894</guid>
      <dc:creator>gpant</dc:creator>
      <dc:date>2016-01-15T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232306#M68895</link>
      <description>&lt;P&gt;i tried these, and it is working ..&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 11:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232306#M68895</guid>
      <dc:creator>gpant</dc:creator>
      <dc:date>2016-01-15T11:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve count or distinct count of some field values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232307#M68896</link>
      <description>&lt;P&gt;hello, dc(filed_name) is working.. thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 11:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-retrieve-count-or-distinct-count-of-some-field-values/m-p/232307#M68896</guid>
      <dc:creator>gpant</dc:creator>
      <dc:date>2016-01-15T11:00:57Z</dc:date>
    </item>
  </channel>
</rss>

