<?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: mvexpand  gives &amp;quot;mvexpand output will be truncated due to excessive memory usage&amp;quot; in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31457#M333</link>
    <description>&lt;P&gt;Hi Frank,&lt;BR /&gt;
in my case I have solved it. I suggest to remove alle fields you don't need anymore, before you call the mvexpand, like ... | fields dns, ip, record | fields - _raw | ... &lt;BR /&gt;
Perhaps this helps.&lt;/P&gt;

&lt;P&gt;By Marco &lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2013 05:39:15 GMT</pubDate>
    <dc:creator>marcokrueger</dc:creator>
    <dc:date>2013-08-27T05:39:15Z</dc:date>
    <item>
      <title>mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31455#M331</link>
      <description>&lt;P&gt;I give my splunk 50GB Mem with &lt;BR /&gt;
max_mem_usage_mb = 50480&lt;BR /&gt;
in the limits.conf&lt;BR /&gt;
but splunk 5.0.3 gives me a "mvexpand output will be truncated due to excessive memory usage".&lt;BR /&gt;
THe job inspector shows that the incoming data are a few 10 MB. &lt;/P&gt;

&lt;P&gt;Miss I a hidden config-option?&lt;/P&gt;

&lt;P&gt;Best regards Marco &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31455#M331</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2020-09-28T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31456#M332</link>
      <description>&lt;P&gt;Hi Marco,&lt;/P&gt;

&lt;P&gt;I'm seeing the same behavior in 5.0.3.  Did you ever find a solution?  I'm trying to get some info from a REST input into a lookup, and the seemingly inefficient technique in the docs for spath to combine multivalued fields bombs at exactly 700 elements. Anybody else seeing this, or have any ideas?&lt;/P&gt;

&lt;P&gt;-Frank&lt;/P&gt;

&lt;P&gt;EDIT - Upgrading to 5.0.4 and greatly increasing max_mem_usage_mb did not resolve the problem for me but filtering out the _raw fields as Marco suggested did.  My working query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rest sourcetype=dns:rest:a | head 1 
| spath output=dns path={}.name 
| spath output=ip path={}.ipv4addr
| fields - _raw 
| eval record=mvzip(dns,ip)
| fields + record
| mvexpand record | eval record = split(record,",") 
| eval dns=mvindex(record,0) | eval ip=mvindex(record,1)   
| table dns,ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31456#M332</guid>
      <dc:creator>fervin</dc:creator>
      <dc:date>2020-09-28T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31457#M333</link>
      <description>&lt;P&gt;Hi Frank,&lt;BR /&gt;
in my case I have solved it. I suggest to remove alle fields you don't need anymore, before you call the mvexpand, like ... | fields dns, ip, record | fields - _raw | ... &lt;BR /&gt;
Perhaps this helps.&lt;/P&gt;

&lt;P&gt;By Marco &lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 05:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31457#M333</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2013-08-27T05:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31458#M334</link>
      <description>&lt;P&gt;Hi Frank,&lt;BR /&gt;
another solution may be to incease the &lt;STRONG&gt;max_mem_usage_mb&lt;/STRONG&gt; in your &lt;STRONG&gt;limits.conf&lt;/STRONG&gt;?&lt;/P&gt;

&lt;P&gt;You can avoid the spath in your query, by defining it under &lt;BR /&gt;
&lt;STRONG&gt;Manager » Fields » Field aliases&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
 Marco&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31458#M334</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2020-09-28T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31459#M335</link>
      <description>&lt;P&gt;Thanks, that fixed it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 18:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31459#M335</guid>
      <dc:creator>fervin</dc:creator>
      <dc:date>2013-09-03T18:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31460#M336</link>
      <description>&lt;P&gt;Still a good answer in 2017.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31460#M336</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2017-11-27T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31461#M337</link>
      <description>&lt;P&gt;This is still an excellent answer on 2018&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 03:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31461#M337</guid>
      <dc:creator>jstubberfield</dc:creator>
      <dc:date>2018-07-23T03:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31462#M338</link>
      <description>&lt;P&gt;Tks man, "fields - _raw" fixed my problem&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 19:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31462#M338</guid>
      <dc:creator>rafaelvjb</dc:creator>
      <dc:date>2018-10-11T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31463#M339</link>
      <description>&lt;P&gt;Still a good answer in 2019.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31463#M339</guid>
      <dc:creator>balmeida</dc:creator>
      <dc:date>2019-02-05T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31464#M340</link>
      <description>&lt;P&gt;June 2019 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 14:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31464#M340</guid>
      <dc:creator>sgundeti573</dc:creator>
      <dc:date>2019-06-04T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31465#M341</link>
      <description>&lt;P&gt;still Octuber 2019 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 13:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31465#M341</guid>
      <dc:creator>LM_ACN</dc:creator>
      <dc:date>2019-10-23T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31466#M342</link>
      <description>&lt;P&gt;still works in 2020 &lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 22:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31466#M342</guid>
      <dc:creator>amckinnie_splun</dc:creator>
      <dc:date>2020-01-21T22:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31467#M343</link>
      <description>&lt;P&gt;Another workaround is to use the "by" clause of a stats command to split a multivalued field into its values, it doesn't have the memory issue that mvexpand has...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 03:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31467#M343</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-01-22T03:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31468#M344</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|makeresults count=10000
|streamstats count as t
|stats values(t) as multivalue 
|fields multivalue 
`comment("multivalue extract without mvexpand")`
|stats count by multivalue 
|table multivalue 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All multi-values must be unique values, but that's OK&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 06:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/31468#M344</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-22T06:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/689465#M10216</link>
      <description>&lt;P&gt;Wow.&lt;BR /&gt;&lt;BR /&gt;For all my queries, I had been using the following fields command under the assumption it did drop _raw.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields _time, xxx, yyy, zzz, ....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then one day I started a large mvexpand and ran into memory limit.&lt;/P&gt;&lt;P&gt;My thought upon seeing this was 'Huh? Well, worth a try I guess.'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields _time, xxx, yyy, zzz, ....
| fields - _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Boom, mvexpand completes successfully. The heck? It actually cut the search time in half too.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 00:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/689465#M10216</guid>
      <dc:creator>ClubMed</dc:creator>
      <dc:date>2024-06-04T00:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand  gives "mvexpand output will be truncated due to excessive memory usage"</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/757885#M11070</link>
      <description>&lt;P&gt;this one is the goat.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":goat:"&gt;🐐&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i have 5 events with 4 mv fields with around 4000 values each.&amp;nbsp; so im expecting around 20k of rows.&lt;/P&gt;&lt;P&gt;mvexpand was giving the message, i started with&amp;nbsp;&lt;SPAN&gt;truncated at 300... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i did the fields +/- was able to get it up to&amp;nbsp;truncated at 1100.&amp;nbsp; still not enough.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This Splunk Answers from 2020 did it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cheers to you&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/106850"&gt;@gjanders&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beer_mug:"&gt;🍺&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 00:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/mvexpand-gives-quot-mvexpand-output-will-be-truncated-due-to/m-p/757885#M11070</guid>
      <dc:creator>dimarra</dc:creator>
      <dc:date>2026-02-03T00:09:44Z</dc:date>
    </item>
  </channel>
</rss>

