<?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: How to extract two fields with the same field name from a multiline event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146746#M41000</link>
    <description>&lt;P&gt;Hi, If you are using rex command, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.......| rex max_match=0 field=.....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Apr 2015 13:22:25 GMT</pubDate>
    <dc:creator>stephane_cyrill</dc:creator>
    <dc:date>2015-04-17T13:22:25Z</dc:date>
    <item>
      <title>How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146745#M40999</link>
      <description>&lt;P&gt;Trying to get some data from our alerting/event system into Splunk.  There is a report with key value pairs that already existed so I attempted to use that.  I am running into an issue with the &lt;CODE&gt;Journal&lt;/CODE&gt; field, which can occur multiple times if the event has been updated frequently.  I have an extraction that works for the first one, but no way to get any additional ones if they occur.&lt;/P&gt;

&lt;P&gt;Here is a sample of the data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SevReq=0
Ticket=NoTicket
Type=1
DataCenter=dc1
    State=Closed
Journal=2015/04/09 21:39:15 Alert acknowledged by user1. 
Journal=2015/04/09 22:47:30 Alert Closed by user2. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;END&lt;BR /&gt;
Here is my extraction that works for the first line:&lt;/P&gt;

&lt;P&gt;Journal=(?P.*)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 12:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146745#M40999</guid>
      <dc:creator>stevepraz</dc:creator>
      <dc:date>2015-04-17T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146746#M41000</link>
      <description>&lt;P&gt;Hi, If you are using rex command, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.......| rex max_match=0 field=.....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146746#M41000</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-17T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146747#M41001</link>
      <description>&lt;P&gt;You can set &lt;CODE&gt;max_match = 0&lt;/CODE&gt; to retrieve more than one match of your capture group: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Rex"&gt;rex reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146747#M41001</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146748#M41002</link>
      <description>&lt;P&gt;Ah, stephane_cyrille was faster &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146748#M41002</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T13:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146749#M41003</link>
      <description>&lt;P&gt;You can just vote when your agree.  I like your speed jeffland......&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 14:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146749#M41003</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-17T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146750#M41004</link>
      <description>&lt;P&gt;I know... You simply posted while I was writing my answer (which took some time as I got a little sidetracked trying stuff on regex101.com) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 15:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146750#M41004</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-17T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract two fields with the same field name from a multiline event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146751#M41005</link>
      <description>&lt;P&gt;how do you get this to work with field extractions though?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-two-fields-with-the-same-field-name-from-a/m-p/146751#M41005</guid>
      <dc:creator>gwilliams1_2</dc:creator>
      <dc:date>2017-10-10T19:24:18Z</dc:date>
    </item>
  </channel>
</rss>

