<?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: How come I can't get mvdedup and mvexpand commands to work properly? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378681#M110998</link>
    <description>&lt;P&gt;Only you have two fields that need expand so you need to combine them into one field first.&lt;/P&gt;

&lt;P&gt;| inputlookup ...&lt;BR /&gt;
| eval a=mvzip(field1,field2)&lt;BR /&gt;
| makemv a&lt;BR /&gt;
| mvexpand a&lt;BR /&gt;
| eval b=mvindex(a,0)&lt;BR /&gt;
| eval c=mvindex(a,1)&lt;BR /&gt;
| table b c&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 13:21:48 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2018-12-20T13:21:48Z</dc:date>
    <item>
      <title>How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378677#M110994</link>
      <description>&lt;P&gt;I have a query where I'm using mvexpand and mvdedup commands to extract some records and calculate related values. But unfortunately both the commands are not working properly. Below is the example what I'm getting. Can anybody please help me understand what's going wrong.&lt;/P&gt;

&lt;P&gt;Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup cee_dlp_base_report.csv
| table _time, User_Name, Detail_File_Size_MB
| mvexpand Detail_File_Size_MB 
| eval User_Name = mvdedup(User_Name)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6303iE408AFB7E3AA86BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6304iD9EDEA3119B7C7A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 11:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378677#M110994</guid>
      <dc:creator>rajim</dc:creator>
      <dc:date>2018-12-20T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378678#M110995</link>
      <description>&lt;P&gt;@rajim &lt;/P&gt;

&lt;P&gt;Both &lt;CODE&gt;User_Name&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;Detail_File_Size_MB&lt;/CODE&gt; multivalued fields? And what is the relation between them.  If there is a relation then can you please try below search for work around?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup cee_dlp_base_report.csv  | eval temp=mvzip(User_Name, Detail_File_Size_MB)
 | mvexpand temp
 | eval User_Name = mvindex(split(temp,","),0), Detail_File_Size_MB = mvindex(split(temp,","),1)
 | table _time, User_Name, Detail_File_Size_MB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For further analysis, can you please share sample data from lookup file?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 12:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378678#M110995</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-12-20T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378679#M110996</link>
      <description>&lt;P&gt;Looks like those fields are not actually multi valued. When you hover over them with your mousepointer, do you get highlights for the individual lines, or just for the whole event row together?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 12:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378679#M110996</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-12-20T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378680#M110997</link>
      <description>&lt;P&gt;You need to add a ‘|makemv fieldName’&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 13:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378680#M110997</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-12-20T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378681#M110998</link>
      <description>&lt;P&gt;Only you have two fields that need expand so you need to combine them into one field first.&lt;/P&gt;

&lt;P&gt;| inputlookup ...&lt;BR /&gt;
| eval a=mvzip(field1,field2)&lt;BR /&gt;
| makemv a&lt;BR /&gt;
| mvexpand a&lt;BR /&gt;
| eval b=mvindex(a,0)&lt;BR /&gt;
| eval c=mvindex(a,1)&lt;BR /&gt;
| table b c&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 13:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378681#M110998</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-12-20T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378682#M110999</link>
      <description>&lt;P&gt;yes you are right. Whenever we are writing the multivalued fields into a csv file, the  fields are converting into single value with all multivalued grouped. That's why mvdedup and mvexpand is not working. Thank you for pointing this.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 14:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378682#M110999</guid>
      <dc:creator>rajim</dc:creator>
      <dc:date>2018-12-20T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How come I can't get mvdedup and mvexpand commands to work properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378683#M111000</link>
      <description>&lt;P&gt;No this is not helpful, as described below. Anyway thank you for your answer. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 14:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-I-can-t-get-mvdedup-and-mvexpand-commands-to-work/m-p/378683#M111000</guid>
      <dc:creator>rajim</dc:creator>
      <dc:date>2018-12-20T14:47:07Z</dc:date>
    </item>
  </channel>
</rss>

