<?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: not getting empty row value count when doing count by fields. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384329#M168884</link>
    <description>&lt;P&gt;We can specify columns we want to calculate in two ways:&lt;BR /&gt;
COUNT(*) will count all rows in all the columns. The result will be taken from the column that has the highest result.&lt;BR /&gt;
COUNT(FIELD_NAME) that will calculate the row for a particular field (column).&lt;BR /&gt;
Furthermore, we can use the COUNT function with or without the DISTINCT clause:&lt;BR /&gt;
COUNT to count all the rows even if there are duplications of data.&lt;BR /&gt;
COUNT( DISTINCT ...) to calculate unique rows (rows with same values will not be counted). You can &lt;A href="https://www.clazwork.com"&gt;visit&lt;/A&gt; my site for more details.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jun 2018 06:20:14 GMT</pubDate>
    <dc:creator>Williammbrooks</dc:creator>
    <dc:date>2018-06-16T06:20:14Z</dc:date>
    <item>
      <title>not getting empty row value count when doing count by fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384326#M168881</link>
      <description>&lt;P&gt;i have four filed in a csv file, where some time , one filed value coming as empty, as like below&lt;BR /&gt;
field1 , field2, field3, field4&lt;BR /&gt;
DBW     DCAR   XTY    XXS&lt;BR /&gt;
DBW    DCAR    XTY     XXF&lt;BR /&gt;
LG       DPORT             XXS&lt;BR /&gt;
LG        DPORT   XTY   XXF&lt;/P&gt;

&lt;P&gt;Like ,above data when i am doing "count by field1,field2,field3,field4 " not getting the count of empty value.&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384326#M168881</guid>
      <dc:creator>satishachary199</dc:creator>
      <dc:date>2018-06-14T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: not getting empty row value count when doing count by fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384327#M168882</link>
      <description>&lt;P&gt;If any of the field used in by clause of stats command is null, the whole row is dropped. What type of stats you want to do? I believe you'd need to use &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Fillnull"&gt;fillnull&lt;/A&gt; before stats to replace null value with some string e.g. N/A, and then do the stats so that you'd get count for all combinations.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 19:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384327#M168882</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-06-14T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: not getting empty row value count when doing count by fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384328#M168883</link>
      <description>&lt;P&gt;thank you , followed the same , got solution.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 03:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384328#M168883</guid>
      <dc:creator>satishachary199</dc:creator>
      <dc:date>2018-06-16T03:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: not getting empty row value count when doing count by fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384329#M168884</link>
      <description>&lt;P&gt;We can specify columns we want to calculate in two ways:&lt;BR /&gt;
COUNT(*) will count all rows in all the columns. The result will be taken from the column that has the highest result.&lt;BR /&gt;
COUNT(FIELD_NAME) that will calculate the row for a particular field (column).&lt;BR /&gt;
Furthermore, we can use the COUNT function with or without the DISTINCT clause:&lt;BR /&gt;
COUNT to count all the rows even if there are duplications of data.&lt;BR /&gt;
COUNT( DISTINCT ...) to calculate unique rows (rows with same values will not be counted). You can &lt;A href="https://www.clazwork.com"&gt;visit&lt;/A&gt; my site for more details.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 06:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-getting-empty-row-value-count-when-doing-count-by-fields/m-p/384329#M168884</guid>
      <dc:creator>Williammbrooks</dc:creator>
      <dc:date>2018-06-16T06:20:14Z</dc:date>
    </item>
  </channel>
</rss>

