<?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: match field values with multivalue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605821#M210675</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "User!=Account | table User Account" would give something like this. As you can see all values are different. so dedup will not help.&lt;/P&gt;&lt;TABLE border="1" width="49.934764823528255%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;User&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;Account&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;redfox&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;h12345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;home\redfox&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;new@redfox.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for something where there is no value in Account field for the User.&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 16:15:39 GMT</pubDate>
    <dc:creator>Skysurfer</dc:creator>
    <dc:date>2022-07-15T16:15:39Z</dc:date>
    <item>
      <title>How to match field values with multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605765#M210649</link>
      <description>&lt;P&gt;I have a data with two fields: User and Account&lt;/P&gt;
&lt;P&gt;Account is a field with multiple values. I am looking for a search that shows all the results where User is NOT matching any of the values in Account. From the below mentioned sample data, the search should only give "Sample 1" as output&lt;/P&gt;
&lt;P&gt;Sample 1&lt;/P&gt;
&lt;TABLE border="1" width="47.59207526783125%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="11.4%"&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="37%"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="11.4%"&gt;p12345&lt;/TD&gt;
&lt;TD width="37%"&gt;redfox&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="11.4%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="37%"&gt;h12345&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="11.4%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="37%"&gt;home\redfox&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="11.4%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="37%"&gt;new@redfox.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample 2&lt;/P&gt;
&lt;TABLE border="1" width="47.87096774193548%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="13.096774193548391%"&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="34.7741935483871%"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="13.096774193548391%"&gt;L12345&lt;/TD&gt;
&lt;TD width="34.7741935483871%"&gt;redsox&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="13.096774193548391%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="34.7741935483871%"&gt;L12345&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="13.096774193548391%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="34.7741935483871%"&gt;sky\newid&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="13.096774193548391%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="34.7741935483871%"&gt;sam@redsox.com&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried makemv, but not getting desired output&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605765#M210649</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2022-07-15T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605768#M210650</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnull(mvfind(account, user))&lt;/LI-CODE&gt;&lt;P&gt;user will be treated as regex so it may depend on what characters you have in this field&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 10:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605768#M210650</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-15T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605769#M210651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247710"&gt;@Skysurfer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use the mvexpand command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Mvexpand" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Mvexpand&lt;/A&gt;), something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| fields User Account
| mvexpand Account
| where User!=Account
| dedup User
| table User&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 10:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605769#M210651</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-15T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605770#M210652</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I tried using mvexpand, but using User!=Account gives 4 matches for "Sample 1" and 3 matches for "Sample 2". What I am looking for is only one output where there will be no corresponding value in account field. In the above two samples "| table User" should only give output as&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="24.36868686868687%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;User&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;P12345&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 15 Jul 2022 11:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605770#M210652</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2022-07-15T11:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605771#M210653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247710"&gt;@Skysurfer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are the 4 matches for Sample1 the same or different?&lt;/P&gt;&lt;P&gt;if the same, you have to use dedup as in my answer.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 11:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605771#M210653</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-15T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605821#M210675</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "User!=Account | table User Account" would give something like this. As you can see all values are different. so dedup will not help.&lt;/P&gt;&lt;TABLE border="1" width="49.934764823528255%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;User&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;Account&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;redfox&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;h12345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;home\redfox&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="23.484848484848484%"&gt;p12345&lt;/TD&gt;&lt;TD width="26.450676982591876%"&gt;new@redfox.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for something where there is no value in Account field for the User.&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605821#M210675</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2022-07-15T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605856#M210683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247710"&gt;@Skysurfer&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| fields User Account
| mvexpand Account
| eval status=if(User!=Account,"OK","Present")
| stats dc(status) AS dc_status values(status) AS status BY User
| search dc_status=1 abs status="OK"
| table User&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 14:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605856#M210683</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-16T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to match field values with multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605858#M210684</link>
      <description>&lt;P&gt;It's easier than you think.&lt;/P&gt;&lt;P&gt;Comparisons for multivalued fields are performed on a per-value basis. So you can do something like this (run-anywhere example):&lt;/P&gt;&lt;PRE&gt;| makeresults &lt;BR /&gt;| eval f1="e",f2=split("a,b,c,d",",") &lt;BR /&gt;| append &lt;BR /&gt;   [| makeresults &lt;BR /&gt;    | eval f1="e",f2=split("e,f,g,h",",") ]&lt;BR /&gt;| where NOT f1=f2&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 16:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605858#M210684</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-16T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605883#M210689</link>
      <description>&lt;P&gt;&lt;SPAN&gt;|mvexpand&amp;nbsp;Account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|eval&amp;nbsp;flag=if(match(Account,user),1,0)&lt;BR /&gt;|search flag=0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 10:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605883#M210689</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-07-17T10:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to match field values with multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605884#M210690</link>
      <description>&lt;P&gt;&lt;SPAN&gt;|mvexpand&amp;nbsp;Account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|eval&amp;nbsp;flag=if(match(Account,user),1,0)&lt;BR /&gt;|search flag=0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 11:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/605884#M210690</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-07-17T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: match field values with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/606212#M210823</link>
      <description>&lt;P&gt;Thanks a lot &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; . It worked &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-field-values-with-multivalue-field/m-p/606212#M210823</guid>
      <dc:creator>Skysurfer</dc:creator>
      <dc:date>2022-07-19T16:13:45Z</dc:date>
    </item>
  </channel>
</rss>

