<?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 multiple fields in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586794#M11698</link>
    <description>&lt;P&gt;|eval _raw=replace(_raw,"(?m)\s+"," ")&lt;BR /&gt;&lt;BR /&gt;It was the line breaks i have in my _raw causing the issue. I was able to remove line breaks, and it's done the trick.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 08:44:34 GMT</pubDate>
    <dc:creator>njcreatives23</dc:creator>
    <dc:date>2022-02-28T08:44:34Z</dc:date>
    <item>
      <title>How to create search to split the events for multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586723#M11681</link>
      <description>&lt;P&gt;Can someone please give me a splunk query to split the events for multiple fields?&lt;BR /&gt;&lt;BR /&gt;| rex field=_raw "&lt;BR /&gt;&lt;SPAN class=""&gt;:16R:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:35B:ISIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;ABC1234567&lt;/SPAN&gt; &lt;SPAN class=""&gt;:93B::AGGR//UNIT/488327&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;494&lt;/SPAN&gt; &lt;SPAN class=""&gt;:93B::AVAI//UNIT/488326&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;:16S:FIN&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;:16R:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:35B:ISIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;CDE1234567&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;:93B::AGGR//FAMT/352000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;:93B::AVAI//FAMT/352001&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;:16S:FIN&lt;BR /&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;I need table as below, i've added max_match in my rex command, but when i input mvexpand for each rex individually they don't split.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;STRONG&gt;ISIN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AGGR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AVAI&lt;/STRONG&gt;&lt;BR /&gt;ABC1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;488327,494&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 488326,&lt;BR /&gt;CDE1234567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;352000 ,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;352001&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Report:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;|rex field=_raw max_match=0 "35B:ISIN(?&amp;lt;ISIN&amp;gt;.{10})"&lt;BR /&gt;|rex field=_raw max_match=0 "AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20})"&lt;BR /&gt;|rex field=_raw max_match=0 "AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;|table ISIN AGGR AVAI&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586723#M11681</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-28T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586737#M11682</link>
      <description>&lt;P&gt;mvexpand is not the way to go. Even if you had multivalued fields, mvexpand over each field would give you a cartesian product of those fields (with 3 2-valued fields you'll get 8 different combinations as an output and that's probably not what you want).&lt;/P&gt;&lt;P&gt;If your events always contain the fields in this order, you should capture them in a single regex.&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;PRE&gt;| rex max_match=0 field=_raw "&lt;SPAN class=""&gt;&lt;SPAN&gt;35B:ISIN(?&amp;lt;ISIN&amp;gt;.{10}).*AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20}).*AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I'd also check if the regex cannot be&amp;nbsp; improved - for example, ".{1,20}" part in the middle of the string will always match 20 characters so maybe you want to restrict it to some character class. Or maybe you want te enumerate possible "links" between ISISN and AGGR so your regex doesn't "run away"&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586737#M11682</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-27T11:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586738#M11683</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw=":16R:FIN :35B:ISIN ABC1234567 :93B::AGGR//UNIT/488327,494 :93B::AVAI//UNIT/488326, :16S:FIN :16R:FIN :35B:ISIN CDE1234567 :93B::AGGR//FAMT/352000, :93B::AVAI//FAMT/352001,  :16S:FIN"
| rex max_match=0  ":16R:FIN (?&amp;lt;line&amp;gt;.+?):16S:FIN"
| mvexpand line
| rex field=line "35B:ISIN(?&amp;lt;ISIN&amp;gt;.{10})"
| rex field=line "AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20})"
| rex field=line "AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"
| table ISIN AGGR AVAI&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 12:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586738#M11683</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-27T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586749#M11684</link>
      <description>&lt;P&gt;They're not in same order, some fields are repeated and some not, but each block open and close with 16R:FIN. Close with 16S:FIN. This is not working, and characters between each tag 93B is not constant.&amp;nbsp; I need them in unique line as the data before16S: is constant and should append to all reiterations.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can i split the below:&lt;/P&gt;&lt;TABLE width="321"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="70"&gt;702250081&lt;/TD&gt;&lt;TD width="61"&gt;26XXXXX&lt;/TD&gt;&lt;TD width="65"&gt;CLAS/ISIT/TD&lt;BR /&gt;CLAS/ISIT/GOVT&lt;BR /&gt;CLAS/ISIT/GOVT&lt;BR /&gt;CLAS/ISIT/GOVT&lt;/TD&gt;&lt;TD width="63"&gt;MATU//20240715&lt;BR /&gt;MATU//20240630&lt;BR /&gt;MATU//20240715&lt;/TD&gt;&lt;TD width="62"&gt;MRKT//PRCT/100,&lt;BR /&gt;MRKT//PRCT/96,992&lt;BR /&gt;MRKT//PRCT/98,387&lt;BR /&gt;MRKT//PRCT/98,414&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected events:&lt;/P&gt;&lt;TABLE width="621px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97px"&gt;702250081&lt;/TD&gt;&lt;TD width="81px"&gt;26XXXXX&lt;/TD&gt;&lt;TD width="133px"&gt;&lt;P&gt;CLAS/ISIT/TD&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="165px"&gt;&lt;P&gt;MRKT//PRCT/100,&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97px"&gt;702250081&lt;/TD&gt;&lt;TD width="81px"&gt;26XXXXX&lt;/TD&gt;&lt;TD width="133px"&gt;&lt;P&gt;CLAS/ISIT/GOVT&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;MATU//20240715&lt;/P&gt;&lt;/TD&gt;&lt;TD width="165px"&gt;&lt;P&gt;MRKT//PRCT/96,992&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97px"&gt;702250081&lt;/TD&gt;&lt;TD width="81px"&gt;26XXXXX&lt;/TD&gt;&lt;TD width="133px"&gt;&lt;P&gt;CLAS/ISIT/GOVT&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;MATU//20240630&lt;/P&gt;&lt;/TD&gt;&lt;TD width="165px"&gt;&lt;P&gt;MRKT//PRCT/98,387&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97px"&gt;702250081&lt;/TD&gt;&lt;TD width="81px"&gt;26XXXXX&lt;/TD&gt;&lt;TD width="133px"&gt;&lt;P&gt;CLAS/ISIT/GOVT&lt;/P&gt;&lt;/TD&gt;&lt;TD width="145px"&gt;&lt;P&gt;MATU//20240715&lt;/P&gt;&lt;/TD&gt;&lt;TD width="165px"&gt;&lt;P&gt;MRKT//PRCT/98,414&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_raw:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;:20C::SEME//0000000702250081&lt;/SPAN&gt; &amp;nbsp;&lt;SPAN class=""&gt;:97A::SAFE//26XXXXX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;:16R:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:12A::CLAS/ISIT/TD&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:90A::MRKT//PRCT/100&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;:16S:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:12A::CLAS/ISIT/GOVT&lt;/SPAN&gt; &lt;SPAN class=""&gt;:98A::MATU//20240715&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:90A::MRKT//PRCT/96&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;992&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:12A::CLAS/ISIT/GOVT&lt;/SPAN&gt; &lt;SPAN class=""&gt;:98A::MATU//20230630&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:90A::MRKT//PRCT/98&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;387&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16R:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:12A::CLAS/ISIT/GOVT&lt;/SPAN&gt; &lt;SPAN class=""&gt;:98A::MATU//20260815&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIA&lt;/SPAN&gt; &lt;SPAN class=""&gt;:90A::MRKT//PRCT/98&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;414&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:FIN&lt;/SPAN&gt; &lt;SPAN class=""&gt;:16S:SUBSAFE&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586749#M11684</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-27T22:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586753#M11685</link>
      <description>&lt;P&gt;Sorry, won't work this way. You have no relation between multivalued fields. So if one of the values is empty, all the remaining values would get "squished" to fill the space.&lt;/P&gt;&lt;P&gt;The proper approach would be to first extract whole "subevents" starting with 16r:fin, ending with 16s:fin, then do a mvexpand to make separate events from them. This way you'd have a full set of your fields per event. Then apply your regexes extracting single fields.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 20:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586753#M11685</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-27T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586754#M11686</link>
      <description>&lt;P&gt;This is what my solution does.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 21:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586754#M11686</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-27T21:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586755#M11687</link>
      <description>&lt;P&gt;True dat.&lt;/P&gt;&lt;P&gt;Didn't notice. Focused on OP's response. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:16:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586755#M11687</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-27T22:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586756#M11688</link>
      <description>&lt;P&gt;I'm searching this within an index how do i write so it looks at the whole message. I need to further use other filters (search). Which is not working along with this. You've defined the _raw as content, i need to look at a specific rex field i've defined in midst of the query.&lt;BR /&gt;&lt;BR /&gt;| makeresults&lt;BR /&gt;index=abc&lt;BR /&gt;|eval _raw=replace(_raw,"&amp;amp;#13;","")&lt;BR /&gt;|rex field=_raw "{2:O(?&amp;lt;MessageType&amp;gt;.{3})"&lt;BR /&gt;| rex max_match=0 ":16R:FIN (?&amp;lt;line&amp;gt;.+?):16S:FIN"&lt;BR /&gt;| mvexpand line&lt;BR /&gt;| rex field=line "35B:ISIN(?&amp;lt;ISIN&amp;gt;.{12})"&lt;BR /&gt;| rex field=line "AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20})"&lt;BR /&gt;| rex field=line "AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"&lt;BR /&gt;|search MessageType="535"&lt;BR /&gt;| table ISIN AGGR AVAI&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586756#M11688</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-27T22:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586757#M11689</link>
      <description>&lt;P&gt;You don't need the makeresults&lt;/P&gt;&lt;P&gt;The makeresults and eval _raw were just setting up sample data.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586757#M11689</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-27T22:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586758#M11690</link>
      <description>&lt;P&gt;Below isn't working as well what am i doing wrong? When i remove these rex entries i am resulting in 1500 events. But 0 when add them back on.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;0 events:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;index=abc&lt;BR /&gt;|eval _raw=replace(_raw,"&amp;amp;#13;","")&lt;BR /&gt;|rex field=_raw "{2:O(?&amp;lt;MessageType&amp;gt;.{3})"&lt;BR /&gt;| rex max_match=0 ":16R:FIN (?&amp;lt;line&amp;gt;.+?):16S:FIN"&lt;BR /&gt;| mvexpand line&lt;BR /&gt;| rex field=line "35B:ISIN(?&amp;lt;ISIN&amp;gt;.{12})"&lt;BR /&gt;| rex field=line "AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20})"&lt;BR /&gt;| rex field=line "AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"&lt;BR /&gt;|search MessageType="535"&lt;BR /&gt;| table ISIN AGGR AVAI&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1500 events:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;index=abc&lt;BR /&gt;|eval _raw=replace(_raw,"&amp;amp;#13;","")&lt;BR /&gt;|rex field=_raw "{2:O(?&amp;lt;MessageType&amp;gt;.{3})"&lt;BR /&gt;|search MessageType="535"&lt;BR /&gt;| table ISIN AGGR AVAI&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586758#M11690</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-27T22:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586759#M11691</link>
      <description>&lt;P&gt;If it works up to the search, then it is probably the rex extract of line which isn't working. This rex matches the example you gave, but perhaps it doesn't match with your actual events. Please check your events that they match the ":16R:FIN " start and ":16S:FIN" patterns.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc
|eval _raw=replace(_raw,"&amp;amp;#13;","")
|rex field=_raw "{2:O(?&amp;lt;MessageType&amp;gt;.{3})"
|search MessageType="535"
| rex max_match=0 ":16R:FIN (?&amp;lt;line&amp;gt;.+?):16S:FIN"
| mvexpand line
| rex field=line "35B:ISIN(?&amp;lt;ISIN&amp;gt;.{12})"
| rex field=line "AGGR//(?&amp;lt;AGGR&amp;gt;.{1,20})"
| rex field=line "AVAI//(?&amp;lt;AVAI&amp;gt;.{1,20})"
| table ISIN AGGR AVAI&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 23:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586759#M11691</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-27T23:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586761#M11692</link>
      <description>&lt;P&gt;The start and end is definitely in the events. Does it matter as they are in different line?&lt;BR /&gt;|rex field=_raw "16R:FIN(?&amp;lt;fin&amp;gt;[^\{]*)"&lt;BR /&gt;&lt;BR /&gt;Some content of the event as below using rex field, value of fin:&lt;BR /&gt;&lt;BR /&gt;:16R:FIA&lt;BR /&gt;:12A::CLAS/ISIT/CORP&lt;BR /&gt;:98A::MATU//20291201&lt;BR /&gt;:92A::INTR//2,375&lt;BR /&gt;:16S:FIA&lt;BR /&gt;:90A::MRKT//PRCT/12,356&lt;BR /&gt;:93B::AGGR//UNIT/0000,&lt;BR /&gt;:19A::HOLD//123,12&lt;BR /&gt;:16S:FIN&lt;BR /&gt;:16R:FIN&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="njcreatives23_0-1646003751030.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18161i7C724B4CE6B454F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="njcreatives23_0-1646003751030.png" alt="njcreatives23_0-1646003751030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 23:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586761#M11692</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-27T23:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586794#M11698</link>
      <description>&lt;P&gt;|eval _raw=replace(_raw,"(?m)\s+"," ")&lt;BR /&gt;&lt;BR /&gt;It was the line breaks i have in my _raw causing the issue. I was able to remove line breaks, and it's done the trick.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 08:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-create-search-to-split-the-events-for-multiple-fields/m-p/586794#M11698</guid>
      <dc:creator>njcreatives23</dc:creator>
      <dc:date>2022-02-28T08:44:34Z</dc:date>
    </item>
  </channel>
</rss>

