<?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: Correlate multivalues and count each relation to other values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650820#M225020</link>
    <description>&lt;P&gt;Thanks ITWhisperer.&lt;/P&gt;&lt;P&gt;The mvexpand was the kicker! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 12:52:27 GMT</pubDate>
    <dc:creator>Lithyum</dc:creator>
    <dc:date>2023-07-17T12:52:27Z</dc:date>
    <item>
      <title>Correlate multivalues and count each relation to other values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650805#M225014</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I need help in understanding how this can be done:&lt;/P&gt;&lt;P&gt;The application's log have a multivalue like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;somedata&amp;gt; [field1=A,B,C] &amp;lt;someotherdata&amp;gt;&lt;BR /&gt;&amp;lt;somedata&amp;gt; [field1=A,C] &amp;lt;someotherdata&amp;gt;&lt;BR /&gt;&amp;lt;somedata&amp;gt; [field1=E,F] &amp;lt;someotherdata&amp;gt;&lt;/PRE&gt;&lt;P&gt;And I need to find correlations between these values.&lt;/P&gt;&lt;P&gt;I'm looking to have something like:&lt;/P&gt;&lt;PRE&gt;field1mv  inConjunctionWith  count&lt;BR /&gt;      A              &amp;lt;all&amp;gt;      2&lt;BR /&gt;     &amp;nbsp;A                  C      2&lt;BR /&gt;     &amp;nbsp;A                  B      1&lt;BR /&gt; &amp;nbsp;    B              &amp;lt;all&amp;gt;      1&lt;BR /&gt;      B                  A      1&lt;BR /&gt;      C              &amp;lt;all&amp;gt;      2&lt;BR /&gt;      C                  A      2&lt;BR /&gt;      C                  B      1&lt;BR /&gt;     &amp;nbsp;E              &amp;lt;all&amp;gt;      1&lt;BR /&gt;      E                  F      1&lt;BR /&gt;      F              &amp;lt;all&amp;gt;      1&lt;BR /&gt;      F                  E      1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way it'll be possible to identify that A+C, and E+F, have the same occurrences and probably are always together; also it'll show which values are the most common.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel I should be able to pull this off with &lt;STRONG&gt;mvmap&lt;/STRONG&gt; but can't make my brain produce the actual process to it.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 10:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650805#M225014</guid>
      <dc:creator>Lithyum</dc:creator>
      <dc:date>2023-07-17T10:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate multivalues and count each relation to other values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650811#M225017</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval inConjunctionWith=field1
| mvexpand inConjunctionWith
| mvexpand field1
| stats count by field1 inConjunctionWith
| eval inConjunctionWith=if(inConjunctionWith=field1,"&amp;lt;all&amp;gt;",inConjunctionWith)
| sort 0 field1 -count inConjunctionWith&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jul 2023 11:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650811#M225017</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-17T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate multivalues and count each relation to other values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650820#M225020</link>
      <description>&lt;P&gt;Thanks ITWhisperer.&lt;/P&gt;&lt;P&gt;The mvexpand was the kicker! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlate-multivalues-and-count-each-relation-to-other-values/m-p/650820#M225020</guid>
      <dc:creator>Lithyum</dc:creator>
      <dc:date>2023-07-17T12:52:27Z</dc:date>
    </item>
  </channel>
</rss>

