<?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: multiline extraction issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299098#M90129</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;Date&amp;gt;[^\|]+)\|\[.*\]\|\w+\|(?P&amp;lt;VM&amp;gt;\w+)((.*\.\d+\|)|(.*\-\w+\|)|(.*\%\w+\|))(?P&amp;lt;USERID&amp;gt;[^\|]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Jan 2018 11:06:32 GMT</pubDate>
    <dc:creator>rraje_rgandhi</dc:creator>
    <dc:date>2018-01-09T11:06:32Z</dc:date>
    <item>
      <title>multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299097#M90128</link>
      <description>&lt;P&gt;I'm having problem with a multi-line field extraction which I have been struggling to figure out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-05-19T12:48:10,337|[http-nio-9094-exec-8]|INFO|VM!|com.alb.bps.common.validation.ImagingCommonValidator|436CCDF8BD1E405E131392C31DA79857|674e1625-750f-4311-a29d-787b1a92b4c8|user2|Normal|IBD2|Validator Request:DocumentVO [busFuncCd=16, busFuncDocType=CKS],imageVO=null]|documentId=&amp;gt;678910|endorsedVersion=&amp;gt;false|nativeFormat=&amp;gt;false|formatType=&amp;gt;JPEG|advisorView=&amp;gt;false|advisorId=&amp;gt;null|

2017-05-19T13:22:26,236|[http-nio-9094-exec-4]|INFO|VM@|com.alb.bps.common.validation.ImagingCommonValidator|EC801FC17F8362A0EF4DE84CC22BDAC7|74589db8-7d0c-41d7-b5a2-d3250631b0eb|null%40null|user1|Normal|IBD1|Validator Request:DocumentVO [busFuncCd=null,busFuncDocType=null,imageVO=null]|documentId=&amp;gt;12345|endorsedVersion=&amp;gt;true|nativeFormat=&amp;gt;true|formatType=&amp;gt;null|advisorView=&amp;gt;false|advisorId=&amp;gt;null|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you please help me ...                                                                         &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P[^\|]+)\|\[.*\]\|\w+\|(?P\w+)((.*\.\d+\|)|(.*\-\w+\|)|(.*\%\w+\|))(?P[^\|]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jan 2018 11:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299097#M90128</guid>
      <dc:creator>rraje_rgandhi</dc:creator>
      <dc:date>2018-01-09T11:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299098#M90129</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;Date&amp;gt;[^\|]+)\|\[.*\]\|\w+\|(?P&amp;lt;VM&amp;gt;\w+)((.*\.\d+\|)|(.*\-\w+\|)|(.*\%\w+\|))(?P&amp;lt;USERID&amp;gt;[^\|]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jan 2018 11:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299098#M90129</guid>
      <dc:creator>rraje_rgandhi</dc:creator>
      <dc:date>2018-01-09T11:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299099#M90130</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Please stop crossposting the same questions by using multiple accounts!&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I answered this on here: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/609629/how-to-extract-the-files-each-line-has-different-f.html"&gt;https://answers.splunk.com/answers/609629/how-to-extract-the-files-each-line-has-different-f.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299099#M90130</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2018-01-09T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299100#M90131</link>
      <description>&lt;P&gt;hey  from your regex i think you need to extract only Date VM and USERID right?&lt;/P&gt;

&lt;P&gt;so can you tell me what is the VM and USERID in your sample event?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 15:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299100#M90131</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-09T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299101#M90132</link>
      <description>&lt;P&gt;in my logs, I have mentioned the VM as VM!, VM@&lt;BR /&gt;
User as user1 and user2....&lt;/P&gt;

&lt;P&gt;while use the above expression, for line 2 , instead of user1, I m getting null%40null.. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 07:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299101#M90132</guid>
      <dc:creator>rraje_rgandhi</dc:creator>
      <dc:date>2018-01-10T07:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299102#M90133</link>
      <description>&lt;P&gt;hey is &lt;CODE&gt;null%40null&lt;/CODE&gt; is static? i mean there is only &lt;CODE&gt;null%40null&lt;/CODE&gt; before &lt;CODE&gt;user&lt;/CODE&gt; in this kind of events?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 07:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299102#M90133</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-10T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299103#M90134</link>
      <description>&lt;P&gt;yes , for this kind of events we have only null%40null before user id.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 08:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299103#M90134</guid>
      <dc:creator>rraje_rgandhi</dc:creator>
      <dc:date>2018-01-10T08:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: multiline extraction issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299104#M90135</link>
      <description>&lt;P&gt;hey @rraje_rgandhi&lt;/P&gt;

&lt;P&gt;I got the workaround for your query!&lt;BR /&gt;
Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;Date&amp;gt;[^\|]+)\|\[.*\]\|\w+\|(?P&amp;lt;VM&amp;gt;[^|]+)\|.*((null%40null\|)|(\-\w+\|))(?P&amp;lt;USERID&amp;gt;[^\|]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?P&amp;lt;Date&amp;gt;[^\|]+)\|\[.*\]\|\w+\|(?P&amp;lt;VM&amp;gt;[^|]+)\|.*\-\w+\|((null%40null\|)|)(?P&amp;lt;USERID&amp;gt;[^\|]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/s4yM1f/1"&gt;https://regex101.com/r/s4yM1f/1&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/r/voZkXP/1"&gt;https://regex101.com/r/voZkXP/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I think this should work.&lt;BR /&gt;
Let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 08:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiline-extraction-issue/m-p/299104#M90135</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-10T08:44:22Z</dc:date>
    </item>
  </channel>
</rss>

