<?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: Multiple fields extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566331#M100686</link>
    <description>&lt;P&gt;This gives you two multi-value fields for the names and the values - if you want corresponding fields created for these, you could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;_name&amp;gt;\w+):(?&amp;lt;_value&amp;gt;.+?)(?=\s+\w+:|$)"
| streamstats count as _event 
| eval index=mvrange(0,mvcount(_name))
| mvexpand index
| eval _name=mvindex(_name,index)
| eval _value=mvindex(_value,index)
| eval {_name}=_value
| fields - _name _value index
| stats values(*) as * by _event
| fields - _event&lt;/LI-CODE&gt;&lt;P&gt;Note that extract might not work depending on the consistency of pair delimiters and their inclusion in the value strings.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 15:57:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-09-08T15:57:39Z</dc:date>
    <item>
      <title>Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566306#M100681</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 15:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566306#M100681</guid>
      <dc:creator>prakashraja1999</dc:creator>
      <dc:date>2021-09-08T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566317#M100682</link>
      <description>&lt;P&gt;Here are two ideas:&amp;nbsp; &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command and &lt;FONT face="courier new,courier"&gt;extract&lt;/FONT&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 14:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566317#M100682</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-08T14:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566318#M100683</link>
      <description>&lt;P&gt;Kindly share the rex and extract commands&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 14:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566318#M100683</guid>
      <dc:creator>prakashraja1999</dc:creator>
      <dc:date>2021-09-08T14:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566321#M100684</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;name&amp;gt;\w+):(?&amp;lt;value&amp;gt;.+?)(?=\s+\w+:|$)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 14:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566321#M100684</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-08T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566323#M100685</link>
      <description>&lt;P&gt;The question asked for ideas, not for someone else to do the work.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp; Did you at least &lt;STRONG&gt;look&lt;/STRONG&gt; at the commands?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;has shown the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command.&amp;nbsp; Here is extract:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| extract pairdelim=" " kvdelim=":"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 15:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566323#M100685</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-08T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566331#M100686</link>
      <description>&lt;P&gt;This gives you two multi-value fields for the names and the values - if you want corresponding fields created for these, you could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "(?&amp;lt;_name&amp;gt;\w+):(?&amp;lt;_value&amp;gt;.+?)(?=\s+\w+:|$)"
| streamstats count as _event 
| eval index=mvrange(0,mvcount(_name))
| mvexpand index
| eval _name=mvindex(_name,index)
| eval _value=mvindex(_value,index)
| eval {_name}=_value
| fields - _name _value index
| stats values(*) as * by _event
| fields - _event&lt;/LI-CODE&gt;&lt;P&gt;Note that extract might not work depending on the consistency of pair delimiters and their inclusion in the value strings.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 15:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction/m-p/566331#M100686</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-08T15:57:39Z</dc:date>
    </item>
  </channel>
</rss>

