<?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 Finding a intersect between n fields using multisearch in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550466#M38014</link>
    <description>&lt;DIV&gt;Hello guys&lt;BR /&gt;&lt;BR /&gt;I was thinking if it was possible to perhaps find the common and uncommon values between n fields after using a multisearch command, I cant seem to find a function in Splunk to yield the intersect between values, or is there one?&lt;BR /&gt;&lt;BR /&gt;Lets say that my code looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|multisearch 
[|search index=BOOK
| fields A]
[|search index=FLIGHT
| fields B]
[|search index=HOTEL
| fields C]​&lt;/LI-CODE&gt;&lt;P&gt;A,B and C are IDs from different custumers and I´d like to know what are the common costumers&amp;nbsp;between the three fields and also the costumers that are exclusive to each field (that means that their ID &lt;STRONG&gt;only&lt;/STRONG&gt; apprears in either field A, B or C )&lt;BR /&gt;&lt;BR /&gt;-Please dont judge me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I started by using the stats command and do something like&lt;BR /&gt;| stats values(A) as A values(B) as B and values(C) as C&amp;nbsp;&lt;BR /&gt;but since there is no other field to do something like " by clause" I was even able to have the info in a table, any information or documentation is so welcome thank you so much guys&lt;BR /&gt;&lt;BR /&gt;kindly,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cindy&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 May 2021 00:39:59 GMT</pubDate>
    <dc:creator>cindygibbs_08</dc:creator>
    <dc:date>2021-05-05T00:39:59Z</dc:date>
    <item>
      <title>Finding a intersect between n fields using multisearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550466#M38014</link>
      <description>&lt;DIV&gt;Hello guys&lt;BR /&gt;&lt;BR /&gt;I was thinking if it was possible to perhaps find the common and uncommon values between n fields after using a multisearch command, I cant seem to find a function in Splunk to yield the intersect between values, or is there one?&lt;BR /&gt;&lt;BR /&gt;Lets say that my code looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|multisearch 
[|search index=BOOK
| fields A]
[|search index=FLIGHT
| fields B]
[|search index=HOTEL
| fields C]​&lt;/LI-CODE&gt;&lt;P&gt;A,B and C are IDs from different custumers and I´d like to know what are the common costumers&amp;nbsp;between the three fields and also the costumers that are exclusive to each field (that means that their ID &lt;STRONG&gt;only&lt;/STRONG&gt; apprears in either field A, B or C )&lt;BR /&gt;&lt;BR /&gt;-Please dont judge me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I started by using the stats command and do something like&lt;BR /&gt;| stats values(A) as A values(B) as B and values(C) as C&amp;nbsp;&lt;BR /&gt;but since there is no other field to do something like " by clause" I was even able to have the info in a table, any information or documentation is so welcome thank you so much guys&lt;BR /&gt;&lt;BR /&gt;kindly,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cindy&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 May 2021 00:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550466#M38014</guid>
      <dc:creator>cindygibbs_08</dc:creator>
      <dc:date>2021-05-05T00:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a intersect between n fields using multisearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550470#M38018</link>
      <description>&lt;P&gt;If I understand correctly, you want to get the types of bookings by customer id and identify where there are common bookings by the same customer or only single bookings.&lt;/P&gt;&lt;P&gt;So, the base search, assuming A, B and C represent the customer Id in the data from each index, is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=BOOK OR index=flight OR index=hotel
| eval customerId=coalesce(A,B,C)
| stats dc(index) as types values(index) as indexes by customerId&lt;/LI-CODE&gt;&lt;P&gt;You can then do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where types=1&lt;/LI-CODE&gt;&lt;P&gt;to find the customers with only one booking type and&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where types=3&lt;/LI-CODE&gt;&lt;P&gt;to identify all 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 01:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550470#M38018</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-05-05T01:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a intersect between n fields using multisearch</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550471#M38019</link>
      <description>&lt;P&gt;thank so much!&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 01:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Finding-a-intersect-between-n-fields-using-multisearch/m-p/550471#M38019</guid>
      <dc:creator>cindygibbs_08</dc:creator>
      <dc:date>2021-05-05T01:17:30Z</dc:date>
    </item>
  </channel>
</rss>

