<?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: Extracting fields for a specific text in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489487#M136722</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^\S+\s+GC\((?&amp;lt;GC_stage&amp;gt;\d+)\)\s+Garbage Collection \((?&amp;lt;_KEY_1&amp;gt;.+?)\)\s+(?&amp;lt;_VAL_1&amp;gt;.*)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Plus this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configureadvancedextractionswithfieldtransforms#REGEX"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configureadvancedextractionswithfieldtransforms#REGEX&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 05:38:32 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-25T05:38:32Z</dc:date>
    <item>
      <title>Extracting fields for a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489485#M136720</link>
      <description>&lt;P&gt;hi All,&lt;/P&gt;

&lt;P&gt;Am trying to extract the fields for only the text when it contains start or end as my test_status field that should contain only those values and the value next to the test_status field as my test_name  example:DeVone_Benchmarking_Suite. When am trying auto regex and delimiter like space am getting other values as well in those field which am not interested. Can someone help me how to extract only those values in my fields.&lt;/P&gt;

&lt;P&gt;Please find the sample events below.&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:20:48.226-0500][580.588s] GC(8) Garbage Collection (Allocation Rate) 8532M(69%)-&amp;gt;2574M(21%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:18:28.315-0500][440.678s] GC(7) Garbage Collection (Allocation Rate) 11414M(93%)-&amp;gt;1744M(14%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:16:13.876-0500][306.239s] GC(6) Garbage Collection (System.gc()) 2560M(21%)-&amp;gt;1268M(10%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:16:12.570-0500][304.932s] GC(5) Garbage Collection (Allocation Rate) 8270M(67%)-&amp;gt;2560M(21%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:14:01.328-0500][173.690s] GC(4) Garbage Collection (Allocation Rate) 11576M(94%)-&amp;gt;1758M(14%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:11:14.353-0500][6.716s] GC(0) Garbage Collection (Warmup) 1264M(10%)-&amp;gt;958M(8%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:11:07.709-0500][0.071s] Using The Z Garbage Collector&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:11:07-05:00] DEVJVM-Test-Start DeVone_Benchmarking_Suite SEGUE1401_12GB_MEMORY&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:11:07-05:00] DEVJVM-Test-End DeVone_Benchmarking_Suite&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:11:06.014-0500][1491.413s] GC(23) Garbage Collection (Allocation Rate) 2514M(22%)-&amp;gt;1832M(16%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:10:55.376-0500][1480.775s] GC(22) Garbage Collection (Allocation Rate) 9108M(81%)-&amp;gt;1500M(13%)&lt;/P&gt;

&lt;P&gt;[2019-11-24T13:08:21.376-0500][1326.775s] GC(21) Garbage Collection (Allocation Rate) 10124M(90%)-&amp;gt;1682M(15%)&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Devon&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489485#M136720</guid>
      <dc:creator>datamine</dc:creator>
      <dc:date>2020-09-30T03:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields for a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489486#M136721</link>
      <description>&lt;P&gt;The auto regex tool leaves a little to be desired.  Try this manual regex:  &lt;CODE&gt;(?&amp;lt;test_status&amp;gt;(Test-Start|Test-End)\s(?&amp;lt;test_name&amp;gt;\S+)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 23:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489486#M136721</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-24T23:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields for a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489487#M136722</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^\S+\s+GC\((?&amp;lt;GC_stage&amp;gt;\d+)\)\s+Garbage Collection \((?&amp;lt;_KEY_1&amp;gt;.+?)\)\s+(?&amp;lt;_VAL_1&amp;gt;.*)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Plus this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configureadvancedextractionswithfieldtransforms#REGEX"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configureadvancedextractionswithfieldtransforms#REGEX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 05:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-for-a-specific-text/m-p/489487#M136722</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-25T05:38:32Z</dc:date>
    </item>
  </channel>
</rss>

