<?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: Consecutive Full GC events from logs in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234903#M10706</link>
    <description>&lt;P&gt;Edit: fixed rex.  Several times.&lt;/P&gt;

&lt;P&gt;Streamstats will probably be your friend, here.  Try reading through &lt;A href="http://answers.splunk.com/answers/228898/how-to-count-a-sequence-of-events-to-track-the-num.html" target="_blank"&gt;this post&lt;/A&gt;, I think your answer is there and it should be very easy to adapt to your needs (see below, though, for a tiny bit of specific help).  There's a good introductory blog post &lt;A href="http://blogs.splunk.com/2014/04/01/search-command-stats-eventstats-and-streamstats-2/" target="_blank"&gt;here&lt;/A&gt; and the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Streamstats" target="_blank"&gt;official streamstats docs page here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I'd also rex a field out of that if it's not already a field, it will make your life easier. A guess: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... myrootsearch | rex "\d{7}\.\d{3}: \[(?&amp;lt;my_control_string&amp;gt;[^\[]*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you'll have a field "my_control_string" that you can use very much like that post I link to.&lt;/P&gt;

&lt;P&gt;If you need more help, please ask!  It isn't apparent from your post what your Splunk skill level is.  If this solves your problem, please upvote that linked answer and then post back with what you did so that other can benefit from this knowledge.&lt;/P&gt;

&lt;P&gt;As a further note, there are other great examples to be found by using your favorite search engine on "splunk streamstats count sequential events".&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:20:09 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2020-09-29T07:20:09Z</dc:date>
    <item>
      <title>Consecutive Full GC events from logs</title>
      <link>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234901#M10704</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to capture and report if in my log file I have say 5 consecutive matches for "Full GC" string.  Any ideas how this can be done?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1302251.495: [Full GC [PSYoungGen: 577792K-&amp;gt;365750K(638080K)] [PSOldGen: 1398102K-&amp;gt;1398102K(1398144K)] 1975894K-&amp;gt;1763852K(2036224K) [PSPermGen: 294429K-&amp;gt;294
429K(524288K)], 5.4328410 secs] [Times: user=5.43 sys=0.00, real=5.43 secs]
1302265.517: [Full GC [PSYoungGen: 577792K-&amp;gt;337661K(638080K)] [PSOldGen: 1398102K-&amp;gt;1398098K(1398144K)] 1975894K-&amp;gt;1735759K(2036224K) [PSPermGen: 294432K-&amp;gt;294
378K(524288K)], 6.2223600 secs] [Times: user=6.22 sys=0.00, real=6.23 secs]
1302280.047: [Full GC [PSYoungGen: 577792K-&amp;gt;363585K(638080K)] [PSOldGen: 1398098K-&amp;gt;1398098K(1398144K)] 1975890K-&amp;gt;1761683K(2036224K) [PSPermGen: 294380K-&amp;gt;294
1298541.522: [GC-- [PSYoungGen: 577792K-&amp;gt;577792K(638080K)] 1975767K-&amp;gt;1975935K(2036224K), 1.2989880 secs] [Times: user=2.41 sys=13.43, real=1.30 secs]
1298542.822: [Full GC [PSYoungGen: 577792K-&amp;gt;146370K(638080K)] [PSOldGen: 1398143K-&amp;gt;1398143K(1398144K)] 1975935K-&amp;gt;1544513K(2036224K) [PSPermGen: 294899K-&amp;gt;294
899K(524288K)], 5.6393920 secs] [Times: user=5.63 sys=0.00, real=5.64 secs]
1298560.898: [Full GC [PSYoungGen: 577792K-&amp;gt;152374K(638080K)] [PSOldGen: 1398143K-&amp;gt;1398143K(1398144K)] 1975935K-&amp;gt;1550517K(2036224K) [PSPermGen: 294901K-&amp;gt;294
901K(524288K)], 5.2398370 secs] [Times: user=5.23 sys=0.00, real=5.24 secs]
1298573.143: [Full GC [PSYoungGen: 577792K-&amp;gt;153141K(638080K)] [PSOldGen: 1398143K-&amp;gt;1398143K(1398144K)] 1975935K-&amp;gt;1551284K(2036224K) [PSPermGen: 294906K-&amp;gt;294
906K(524288K)], 5.2001080 secs] [Times: user=5.19 sys=0.00, real=5.20 secs]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Sep 2015 11:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234901#M10704</guid>
      <dc:creator>jgfchan</dc:creator>
      <dc:date>2015-09-24T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Full GC events from logs</title>
      <link>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234902#M10705</link>
      <description>&lt;P&gt;These are one log entry or multiple entries(6 I believe)?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234902#M10705</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-24T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Consecutive Full GC events from logs</title>
      <link>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234903#M10706</link>
      <description>&lt;P&gt;Edit: fixed rex.  Several times.&lt;/P&gt;

&lt;P&gt;Streamstats will probably be your friend, here.  Try reading through &lt;A href="http://answers.splunk.com/answers/228898/how-to-count-a-sequence-of-events-to-track-the-num.html" target="_blank"&gt;this post&lt;/A&gt;, I think your answer is there and it should be very easy to adapt to your needs (see below, though, for a tiny bit of specific help).  There's a good introductory blog post &lt;A href="http://blogs.splunk.com/2014/04/01/search-command-stats-eventstats-and-streamstats-2/" target="_blank"&gt;here&lt;/A&gt; and the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Streamstats" target="_blank"&gt;official streamstats docs page here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I'd also rex a field out of that if it's not already a field, it will make your life easier. A guess: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... myrootsearch | rex "\d{7}\.\d{3}: \[(?&amp;lt;my_control_string&amp;gt;[^\[]*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you'll have a field "my_control_string" that you can use very much like that post I link to.&lt;/P&gt;

&lt;P&gt;If you need more help, please ask!  It isn't apparent from your post what your Splunk skill level is.  If this solves your problem, please upvote that linked answer and then post back with what you did so that other can benefit from this knowledge.&lt;/P&gt;

&lt;P&gt;As a further note, there are other great examples to be found by using your favorite search engine on "splunk streamstats count sequential events".&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Consecutive-Full-GC-events-from-logs/m-p/234903#M10706</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-09-29T07:20:09Z</dc:date>
    </item>
  </channel>
</rss>

