<?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 do you extract multiline fields based on a different string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419738#M120690</link>
    <description>&lt;P&gt;yeap, I 'll try that. regex looks fine to me havn't tried it Splunk will try and update you. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 16:01:47 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2019-01-21T16:01:47Z</dc:date>
    <item>
      <title>How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419733#M120685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am looking to extract fields from multi line events. I have two different types of events. I'm looking to distinguish based of matching string. &lt;/P&gt;

&lt;P&gt;Type 1:&lt;BR /&gt;
Matching String = Full GC&lt;/P&gt;

&lt;P&gt;Type 2:&lt;BR /&gt;
Matching String = GC Pause&lt;/P&gt;

&lt;P&gt;In both events, I need to extract the same details.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [Eden: 114.0M(114.0M)-&amp;gt;0.0B(111.0M) Survivors: 11.0M-&amp;gt;12.0M Heap: 231.3M(270.0M)-&amp;gt;118.7M(270.0M)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-01-17T15:59:28.172+0100: 3093.554: [GC pause (G1 Evacuation Pause) (young), 0.1252055 secs]
   [Parallel Time: 69.7 ms, GC Workers: 11]
      [GC Worker Start (ms): Min: 3093555.2, Avg: 3093558.8, Max: 3093566.0, Diff: 10.8]
      [Ext Root Scanning (ms): Min: 0.0, Avg: 1.6, Max: 8.4, Diff: 8.4, Sum: 17.4]
      [Update RS (ms): Min: 0.0, Avg: 1.1, Max: 2.3, Diff: 2.3, Sum: 12.0]
         [Processed Buffers: Min: 0, Avg: 7.5, Max: 33, Diff: 33, Sum: 83]
      [Scan RS (ms): Min: 0.2, Avg: 1.7, Max: 2.8, Diff: 2.6, Sum: 18.9]
      [Code Root Scanning (ms): Min: 0.0, Avg: 0.9, Max: 9.0, Diff: 9.0, Sum: 9.8]
      [Object Copy (ms): Min: 53.7, Avg: 60.6, Max: 63.1, Diff: 9.4, Sum: 666.4]
      [Termination (ms): Min: 0.0, Avg: 0.0, Max: 0.0, Diff: 0.0, Sum: 0.0]
         [Termination Attempts: Min: 1, Avg: 1.0, Max: 1, Diff: 0, Sum: 11]
      [GC Worker Other (ms): Min: 0.0, Avg: 0.1, Max: 0.1, Diff: 0.1, Sum: 0.9]
      [GC Worker Total (ms): Min: 58.8, Avg: 65.9, Max: 69.6, Diff: 10.8, Sum: 725.4]
      [GC Worker End (ms): Min: 3093624.7, Avg: 3093624.7, Max: 3093624.8, Diff: 0.1]
   [Code Root Fixup: 0.2 ms]
   [Code Root Purge: 0.1 ms]
   [Clear CT: 1.3 ms]
   [Other: 54.0 ms]
      [Choose CSet: 0.0 ms]
      [Ref Proc: 44.6 ms]
      [Ref Enq: 1.0 ms]
      [Redirty Cards: 0.4 ms]
      [Humongous Register: 1.1 ms]
      [Humongous Reclaim: 0.0 ms]
      [Free CSet: 6.1 ms]
   [Eden: 16.5G(16.5G)-&amp;gt;0.0B(16.4G) Survivors: 272.0M-&amp;gt;456.0M Heap: 18.2G(28.0G)-&amp;gt;1871.9M(28.0G)]
 [Times: user=1.22 sys=0.03, real=0.12 secs] 
2019-01-17T16:00:39.144+0100: 3164.525: [Full GC (Heap Inspection Initiated GC)  5595M-&amp;gt;1101M(28G), 4.2044268 secs]
   [Eden: 3720.0M(16.4G)-&amp;gt;0.0B(16.8G) Survivors: 456.0M-&amp;gt;0.0B Heap: 5595.9M(28.0G)-&amp;gt;1101.3M(28.0G)], [Metaspace: 187278K-&amp;gt;187274K(1216512K)]
 [Times: user=5.76 sys=0.06, real=4.20 secs] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6425iF0B3EF05F896CAF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419733#M120685</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2019-01-21T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419734#M120686</link>
      <description>&lt;P&gt;It will be good if you provide some sample data instead of screenshot.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419734#M120686</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-21T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419735#M120687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearch&amp;gt; | rex field=_raw "(?s)(?:GC\spause|Full\sGC).*\[Eden\:\s(?&amp;lt;extracted_field&amp;gt;[^\]]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419735#M120687</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-21T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419736#M120688</link>
      <description>&lt;P&gt;@harsmarvania57  : added sample data to question.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419736#M120688</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2019-01-21T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419737#M120689</link>
      <description>&lt;P&gt;Can you please try regex which I have provided ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419737#M120689</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-21T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419738#M120690</link>
      <description>&lt;P&gt;yeap, I 'll try that. regex looks fine to me havn't tried it Splunk will try and update you. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419738#M120690</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2019-01-21T16:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract multiline fields based on a different string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419739#M120691</link>
      <description>&lt;P&gt;Use this RegEx:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;:\s+\d+\.\d+:\s+\[(?&amp;lt;matching_string&amp;gt;\w+\s+\w+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See here:&lt;BR /&gt;
&lt;A href="https://regex101.com/r/NUVWoD/1"&gt;https://regex101.com/r/NUVWoD/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-multiline-fields-based-on-a-different-string/m-p/419739#M120691</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-21T16:11:23Z</dc:date>
    </item>
  </channel>
</rss>

