<?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: Group results based upon matching values from multiple fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24901#M177525</link>
    <description>&lt;P&gt;partial answer :&lt;BR /&gt;
Considering that the fields are already extracted, you can do group the Filenum per string.&lt;BR /&gt;
mysearch | stats values(Filenum) by string&lt;/P&gt;

&lt;P&gt;Now you have to figure how to group the filenums together, maybe a sub search.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2012 14:49:42 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-04-30T14:49:42Z</dc:date>
    <item>
      <title>Group results based upon matching values from multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24899#M177523</link>
      <description>&lt;P&gt;I'm indexing a CSV that appears like the following in its raw form:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Filenum,string
1,abc
2,defg
2,abc
3,xyz
3,abc
1,xyz
7,uiop
7,abc
4,defg
5,qazwsx
6,qazwsx
1,uiop
4,abc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc..&lt;/P&gt;

&lt;P&gt;In Splunk both "Filenum" and "String" are correctly being extracted as field names.&lt;/P&gt;

&lt;P&gt;I'd like to spit out a table that automatically groups Filenums with two or more matching Strings.&lt;/P&gt;

&lt;P&gt;For example, Filenum 1 &amp;amp; 3 can be grouped together since they both have Strings abc &amp;amp; xyz.&lt;/P&gt;

&lt;P&gt;Sample desired output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Filenum     1, 3     abc, xyz
Filenum     1, 7     abc, uiop
Filenum     2, 4     abc, defg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 19:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24899#M177523</guid>
      <dc:creator>jtsplunk</dc:creator>
      <dc:date>2012-04-11T19:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group results based upon matching values from multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24900#M177524</link>
      <description>&lt;P&gt;Why not use custom search using python scripts?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 07:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24900#M177524</guid>
      <dc:creator>VipulGarg19</dc:creator>
      <dc:date>2012-04-30T07:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Group results based upon matching values from multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24901#M177525</link>
      <description>&lt;P&gt;partial answer :&lt;BR /&gt;
Considering that the fields are already extracted, you can do group the Filenum per string.&lt;BR /&gt;
mysearch | stats values(Filenum) by string&lt;/P&gt;

&lt;P&gt;Now you have to figure how to group the filenums together, maybe a sub search.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 14:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-based-upon-matching-values-from-multiple-fields/m-p/24901#M177525</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-04-30T14:49:42Z</dc:date>
    </item>
  </channel>
</rss>

