<?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 Multivalue field problem Is there any way to use without &amp;quot;mvexpand&amp;quot; in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648642#M16681</link>
    <description>&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="36"&gt;ID&lt;/TD&gt;&lt;TD width="64"&gt;curr_row&lt;/TD&gt;&lt;TD width="64"&gt;comparison_result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;Turn on&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;Turn on&lt;/TD&gt;&lt;TD width="64"&gt;not equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;7656&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;7690&lt;/TD&gt;&lt;TD width="64"&gt;not equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;8783&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the above table, whenever a comparison_result column value is equal to "not equal", it should copy the corresponding whole row value and insert before that row by changing curr_row value alone to "Turn on" without using mvexpand command. I have tried with mvexpand query, memory issue was there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mvexpand query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| eval row=if(comparison_result=="not equal" AND curr_row!="Turn on",mvrange(0,2),null())
| mvexpand row
| eval curr_row=if(row==0,"Turn on",curr_row)
| fields - row&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Jun 2023 14:51:02 GMT</pubDate>
    <dc:creator>Kirthika</dc:creator>
    <dc:date>2023-06-29T14:51:02Z</dc:date>
    <item>
      <title>Multivalue field problem Is there any way to use without "mvexpand"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648642#M16681</link>
      <description>&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="36"&gt;ID&lt;/TD&gt;&lt;TD width="64"&gt;curr_row&lt;/TD&gt;&lt;TD width="64"&gt;comparison_result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;Turn on&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;19&lt;/TD&gt;&lt;TD width="64"&gt;1245&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;Turn on&lt;/TD&gt;&lt;TD width="64"&gt;not equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;7656&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;7690&lt;/TD&gt;&lt;TD width="64"&gt;not equal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;20&lt;/TD&gt;&lt;TD width="64"&gt;8783&lt;/TD&gt;&lt;TD width="64"&gt;equal&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the above table, whenever a comparison_result column value is equal to "not equal", it should copy the corresponding whole row value and insert before that row by changing curr_row value alone to "Turn on" without using mvexpand command. I have tried with mvexpand query, memory issue was there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mvexpand query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| eval row=if(comparison_result=="not equal" AND curr_row!="Turn on",mvrange(0,2),null())
| mvexpand row
| eval curr_row=if(row==0,"Turn on",curr_row)
| fields - row&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648642#M16681</guid>
      <dc:creator>Kirthika</dc:creator>
      <dc:date>2023-06-29T14:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field problem Is there any way to use without "mvexpand"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648739#M16696</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254923"&gt;@Kirthika&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stats command will give you better performance over mvexpand and memory limitation issues.&amp;nbsp; Please check below sample search and try to design your search as per requirement.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="ID	curr_row	comparison_result
19	Turn on	equal
19	1245	equal
19	1245	equal
19	1245	equal
19	1245	equal
19	1245	equal
19	1245	equal
20	Turn on	not equal
20	7656	equal
20	7690	not equal
20	8783	equal" 
| multikv forceheader=1
| table ID curr_row comparison_result
| rename comment as "Upto now is data generation logic only"
| eval a=1 | accum a
| eval row=if(comparison_result=="not equal" AND curr_row!="Turn on",mvrange(0,2)," ")
| stats c by a ID curr_row comparison_result row
| sort a
| eval curr_row=if(row==0,"Turn on",curr_row)
| table ID curr_row comparison_result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 05:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648739#M16696</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-06-30T05:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field problem Is there any way to use without "mvexpand"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648740#M16697</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;. It works as expected&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648740#M16697</guid>
      <dc:creator>Kirthika</dc:creator>
      <dc:date>2023-06-30T06:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field problem Is there any way to use without "mvexpand"</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648741#M16698</link>
      <description>&lt;P&gt;Glad to help you&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254923"&gt;@Kirthika&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Happy Splunking&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multivalue-field-problem-Is-there-any-way-to-use-without-quot/m-p/648741#M16698</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-06-30T06:09:15Z</dc:date>
    </item>
  </channel>
</rss>

