<?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 Field Extraction - Multiple Matches same line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67850#M16952</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
How can I make a field extraction match multiple times on a given line? &lt;/P&gt;

&lt;P&gt;here's an example:&lt;/P&gt;

&lt;P&gt;datetime=1355871514&amp;amp;reason_code=reason1&amp;amp;reason_code=reason2&amp;amp;id=123456&lt;/P&gt;

&lt;P&gt;I'd like the field to show "reason_code" = "reason1" and "reason2".&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Brian&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:59:18 GMT</pubDate>
    <dc:creator>BP9906</dc:creator>
    <dc:date>2020-09-28T12:59:18Z</dc:date>
    <item>
      <title>Field Extraction - Multiple Matches same line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67850#M16952</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
How can I make a field extraction match multiple times on a given line? &lt;/P&gt;

&lt;P&gt;here's an example:&lt;/P&gt;

&lt;P&gt;datetime=1355871514&amp;amp;reason_code=reason1&amp;amp;reason_code=reason2&amp;amp;id=123456&lt;/P&gt;

&lt;P&gt;I'd like the field to show "reason_code" = "reason1" and "reason2".&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Brian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67850#M16952</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2020-09-28T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Multiple Matches same line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67851#M16953</link>
      <description>&lt;P&gt;Right now, this does not match both, only the first match.&lt;/P&gt;

&lt;P&gt;(?i)&amp;amp;reason_code=(?P&lt;FIELDNAME&gt;[^&amp;amp;]+)&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2012 23:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67851#M16953</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-12-18T23:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Multiple Matches same line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67852#M16954</link>
      <description>&lt;P&gt;Got it, see this:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/13286/multiple-values-per-key-in-one-record"&gt;http://splunk-base.splunk.com/answers/13286/multiple-values-per-key-in-one-record&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 00:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Multiple-Matches-same-line/m-p/67852#M16954</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2012-12-19T00:07:44Z</dc:date>
    </item>
  </channel>
</rss>

