<?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: counting using group by multivalue fields that might contain empty or inconsistent fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269171#M176336</link>
    <description>&lt;P&gt;It gives out random results since it is multi-value field. &lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 15:12:12 GMT</pubDate>
    <dc:creator>moaf13</dc:creator>
    <dc:date>2016-10-24T15:12:12Z</dc:date>
    <item>
      <title>counting using group by multivalue fields that might contain empty or inconsistent fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269169#M176334</link>
      <description>&lt;P&gt;So i have scenario where i have to group by a table (Make, model, horsepower year)  like the one below, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Make              model(mvFields)       horspower(mvFields)               year(mvFields)       comment
Toyota             camry                     175                           2013             (empty field)
                  corolla                     120                          2013             (empty field) 
                   camry                 (empty field)                     2013             (empty field)
separator
Honda             accord                     180                           2013              (empty field)
                  civic                       115                      (empty field)         broken tail light
                  accord                      180                         2013               (empty field)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now i have used  &lt;CODE&gt;eval comb=mvzip(model,horsepower,",")| eval comb=mvzip(comb,comment)&lt;/CODE&gt; so whenever I try to combine empty fields, the field &lt;CODE&gt;comb&lt;/CODE&gt; returns null or empty. My goal here is to have a count of unique group by of all the fields combined&lt;/P&gt;

&lt;P&gt;for example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Toyota        camry              175                 2013                   (empty field)              count=1 
Toyota        camry          (empty field)           2013                   (empty field)              count=1
Honda        accord             180                  2013                   (empty field)              count=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if there are other ways of doing this, please share. thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 15:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269169#M176334</guid>
      <dc:creator>moaf13</dc:creator>
      <dc:date>2016-10-23T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: counting using group by multivalue fields that might contain empty or inconsistent fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269170#M176335</link>
      <description>&lt;P&gt;Is there a reason &lt;CODE&gt;stats count by Year Make Mode, HP&lt;/CODE&gt; will not work?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269170#M176335</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-24T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: counting using group by multivalue fields that might contain empty or inconsistent fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269171#M176336</link>
      <description>&lt;P&gt;It gives out random results since it is multi-value field. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269171#M176336</guid>
      <dc:creator>moaf13</dc:creator>
      <dc:date>2016-10-24T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: counting using group by multivalue fields that might contain empty or inconsistent fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269172#M176337</link>
      <description>&lt;P&gt;So you raw data has mv fields? What format is the raw data in? Can you use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to replace blank values with "null value"?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269172#M176337</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-24T16:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: counting using group by multivalue fields that might contain empty or inconsistent fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269173#M176338</link>
      <description>&lt;P&gt;Yes that is helpful, Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 03:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/counting-using-group-by-multivalue-fields-that-might-contain/m-p/269173#M176338</guid>
      <dc:creator>moaf13</dc:creator>
      <dc:date>2016-10-28T03:08:32Z</dc:date>
    </item>
  </channel>
</rss>

