<?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: Need help splitting a single fields values into multiple chunks based on the length. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632038#M219540</link>
    <description>&lt;P&gt;Assuming guid doesn't contain commas, and you don't hit some sort of limit on string size (from the mvjoin), you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval guids=mvjoin(guid,",")
| rex field=guids max_match=0 "(?&amp;lt;group&amp;gt;([^,]+,){1,20}[^,]+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 Feb 2023 16:04:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-02-23T16:04:39Z</dc:date>
    <item>
      <title>Need help splitting a single fields values into multiple chunks based on the length.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632033#M219536</link>
      <description>&lt;P&gt;I have a situation where I have a multi-value field that can contain anywhere from 1 to 2000 or more values in a day.&amp;nbsp; each value is exactly 38 characters long.&amp;nbsp; Each 38 character string is a GUID for another application, and that application can only accept up to 1000 characters at a time.&amp;nbsp; What I'd like to do is chunk the strings together in complete blocks of 20 which would be 760 characters per block, and then call them by mvindex, but I haven't figured out how to do this in eval so that it will create it whether I have 1 string, 23 strings, or 900 strings to evaluate, since that is always going to be the unknown variable.&amp;nbsp; Any assistance on how to solve this would be very helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 15:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632033#M219536</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2023-02-23T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help splitting a single fields values into multiple chunks based on the length.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632038#M219540</link>
      <description>&lt;P&gt;Assuming guid doesn't contain commas, and you don't hit some sort of limit on string size (from the mvjoin), you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval guids=mvjoin(guid,",")
| rex field=guids max_match=0 "(?&amp;lt;group&amp;gt;([^,]+,){1,20}[^,]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632038#M219540</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-23T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help splitting a single fields values into multiple chunks based on the length.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632066#M219547</link>
      <description>&lt;P&gt;Brilliance!&amp;nbsp; Sheer Brilliance! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 18:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-splitting-a-single-fields-values-into-multiple-chunks/m-p/632066#M219547</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2023-02-23T18:21:23Z</dc:date>
    </item>
  </channel>
</rss>

