<?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: Help with Field Extraction for java app log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-for-java-app-log/m-p/143856#M40011</link>
    <description>&lt;P&gt;Easiest would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw ".*duration\s\[(?&amp;lt;duration&amp;gt;.*?)\]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will capture everything in between the [] after the word "duration". So in your examples, it would be "1.1s", "999ms", and "814ms". Is that what you're looking for?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2015 06:43:56 GMT</pubDate>
    <dc:creator>lcrielaa</dc:creator>
    <dc:date>2015-07-27T06:43:56Z</dc:date>
    <item>
      <title>Help with Field Extraction for java app log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-for-java-app-log/m-p/143855#M40010</link>
      <description>&lt;P&gt;I'm having trouble getting a Field Extraction that I need and hope for some advice. Below are three examples.&lt;BR /&gt;
Please let me know if you know something that can help.&lt;/P&gt;

&lt;P&gt;I'm looking to extract the time duration for these GC events. It's this [number] right after total. can be like  [1.1ms] or [1.1s] or &lt;A href="https://community.splunk.com/maybe%20hr%20too,%20but%20god%20help%20me%20if%20that%20happens"&gt;1.1m&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;&amp;gt;&amp;gt; [gc][young][3755449][1020336] duration [1.1s], collections [1]/[1.4s], total [1.1s]/[4.2d]

[03:47:56,437][WARN ][monitor.jvm              ] [hostname] [gc][young][3755449][1020336] duration [1.1s], collections [1]/[1.4s], total [1.1s]/[4.2d], memory [4gb]-&amp;gt;[3.8gb]/[7.7gb], all_pools {[young] [226.5mb]-&amp;gt;[22.1mb]/[266.2mb]}{[survivor] [33.2mb]-&amp;gt;[33.2mb]/[33.2mb]}{[old] [3.7gb]-&amp;gt;[3.8gb]/[7.4gb]}
[03:47:56,623][TRACE][action.search.type       ] [hostname] got first-phase result from [F_YNXrlURDuJG5Sy57mKDw][f92104bc60034f1297cfa82c61362519][0]
[03:47:56,623][TRACE][action.search.type       ] [hostname] Moving to second phase, based on results from: [F_YNXrlURDuJG5Sy57mKDw][f92104bc60034f1297cfa82c61362519][0] (cluster state version: 100760)

[03:47:30,529][INFO ][monitor.jvm              ] [hostname] [gc][young][1571804][600909] duration [999ms], collections [1]/[1.1s], total [999ms]/[2.1d], memory [3.4gb]-&amp;gt;[3.2gb]/[7.7gb], all_pools {[young] [255.2mb]-&amp;gt;[4.9mb]/[266.2mb]}{[survivor] [33.2mb]-&amp;gt;[33.2mb]/[33.2mb]}{[old] [3.1gb]-&amp;gt;[3.2gb]/[7.4gb]}
[03:47:31,270][TRACE][action.search.type       ] [hostname] got first-phase result from [7rQtwqrvQhuKFlCT9W_bpQ][4f5edec88ad14733a10718db0650005d][2]
[03:47:31,270][TRACE][action.search.type       ] [hostname] Moving to second phase, based on results from: [7rQtwqrvQhuKFlCT9W_bpQ][4f5edec88ad14733a10718db0650005d][2] (cluster state version: 100760)
[03:47:32,983][TRACE][action.search.type       ] [hostname] got first-phase result from [7rQtwqrvQhuKFlCT9W_bpQ][4f5edec88ad14733a10718db0650005d][2]
[03:47:32,983][TRACE][action.search.type       ] [hostname] Moving to second phase, based on results from: [7rQtwqrvQhuKFlCT9W_bpQ][4f5edec88ad14733a10718db0650005d][2] (cluster state version: 100760)

[03:47:23,024][TRACE][action.search.type       ] [hostname] got first-phase result from [RUJK6WhPTvmwSEzFqEnbeA][c747d31b5d64490492def1af877744b4][0]
[03:47:23,024][TRACE][action.search.type       ] [hsotname] Moving to second phase, based on results from: [RUJK6WhPTvmwSEzFqEnbeA][c747d31b5d64490492def1af877744b4][0] (cluster state version: 100760)
[03:47:23,107][INFO ][monitor.jvm              ] [hostname] [gc][young][2692381][1017550] duration [814ms], collections [1]/[1s], total [814ms]/[3.2d], memory [2.5gb]-&amp;gt;[2.3gb]/[7.7gb], all_pools {[young] [256.6mb]-&amp;gt;[23.2mb]/[266.2mb]}{[survivor] [33.2mb]-&amp;gt;[33.2mb]/[33.2mb]}{[old] [2.2gb]-&amp;gt;[2.3gb]/[7.4gb]}
[03:47:23,936][TRACE][action.search.type       ] [hostname] got first-phase result from [3p_UQGwfTlKvNjj0HOgHog][fe56a21a62ab5223a2abfa9b5adecb54][3]
[03:47:23,936][TRACE][action.search.type       ] [hostname] Moving to second phase, based on results from: [3p_UQGwfTlKvNjj0HOgHog][fe56a21a62ab5223a2abfa9b5adecb54][3] (cluster state version: 100760)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jul 2015 03:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-for-java-app-log/m-p/143855#M40010</guid>
      <dc:creator>pcorchary</dc:creator>
      <dc:date>2015-07-27T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Field Extraction for java app log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-for-java-app-log/m-p/143856#M40011</link>
      <description>&lt;P&gt;Easiest would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw ".*duration\s\[(?&amp;lt;duration&amp;gt;.*?)\]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will capture everything in between the [] after the word "duration". So in your examples, it would be "1.1s", "999ms", and "814ms". Is that what you're looking for?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Field-Extraction-for-java-app-log/m-p/143856#M40011</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2015-07-27T06:43:56Z</dc:date>
    </item>
  </channel>
</rss>

