<?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: Regex field extracting more than one field with same name and different value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538989#M90300</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex field=_raw max_match=0 "\Sname\S{3}cookie\S{3}\w{5}\S{3}(?&amp;lt;h2_cookie&amp;gt;[\w\=\-\+\.\&amp;amp;\;\s]*)"&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 08 Feb 2021 13:05:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-02-08T13:05:26Z</dc:date>
    <item>
      <title>Regex field extracting more than one field with same name and different value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538981#M90298</link>
      <description>&lt;P&gt;I got to extract some fields of a JSON log.&amp;nbsp;&lt;BR /&gt;Log buildup eksample:&lt;BR /&gt;{"name":"cookie","Value":"Foo"}&lt;BR /&gt;{"name":"cookie","Value":"Bar"}&lt;BR /&gt;{"name":"cookie","Value":"Foobar"}&lt;BR /&gt;&lt;BR /&gt;The problem is that I got several loglines that all is called "cookie" but have different values, and I need to extract a mulitvalue field "cookie" with all the different values as a multivalue field.&lt;BR /&gt;But not every logentry is like this, some is just one "cookie" entry.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the regex string I'v used, but then the value of the "cookie" field only contains the first cookie record from the log.&amp;nbsp;&lt;BR /&gt;| rex field=_raw "\Sname\S{3}cookie\S{3}\w{5}\S{3}(?&amp;lt;h2_cookie&amp;gt;[\w\=\-\+\.\&amp;amp;\;\s]*)"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538981#M90298</guid>
      <dc:creator>erikwie</dc:creator>
      <dc:date>2021-02-08T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex field extracting more than one field with same name and different value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538989#M90300</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=_raw max_match=0 "\Sname\S{3}cookie\S{3}\w{5}\S{3}(?&amp;lt;h2_cookie&amp;gt;[\w\=\-\+\.\&amp;amp;\;\s]*)"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538989#M90300</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-08T13:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex field extracting more than one field with same name and different value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538991#M90301</link>
      <description>&lt;P&gt;Thank you,&lt;BR /&gt;max_match did it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-field-extracting-more-than-one-field-with-same-name-and/m-p/538991#M90301</guid>
      <dc:creator>erikwie</dc:creator>
      <dc:date>2021-02-08T13:19:39Z</dc:date>
    </item>
  </channel>
</rss>

