<?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: Aggregated reporting on a field with variable value in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189494#M19286</link>
    <description>&lt;P&gt;Use chart command instead of stats..&lt;/P&gt;

&lt;P&gt;...| chart count over prg by date_hour&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2014 15:58:13 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-03-18T15:58:13Z</dc:date>
    <item>
      <title>Aggregated reporting on a field with variable value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189491#M19283</link>
      <description>&lt;P&gt;Hi, I am trying to create a scheduled report that will count the number of events for specific keywords. The event entry looks somewhat like:&lt;/P&gt;

&lt;P&gt;10 Mar 2013 10:10:35,559 MyApplicationProcessor : MyProcess PIDNo [123456] MyProcessGroup [PRG_NM1]  FailureRetryCount[x] ExceptionRetryCount [y] Finishing Process&lt;BR /&gt;&lt;BR /&gt;
10 Mar 2013 10:10:35,123 MyApplicationProcessor : MyProcess PIDNo [123456] MyProcessGroup [PRG_NM2]  FailureRetryCount[x] ExceptionRetryCount [y] Finishing Process&lt;BR /&gt;&lt;BR /&gt;
10 Mar 2013 10:10:35,234 MyApplicationProcessor : MyProcess PIDNo [123454] MyProcessGroup [PRG_NM1]  FailureRetryCount[x] ExceptionRetryCount [y] Exit&lt;BR /&gt;&lt;BR /&gt;
10 Mar 2013 10:10:35,234 MyApplicationProcessor : MyProcess PIDNo [123454] MyProcessGroup [PRG_NM1]  FailureRetryCount[x] ExceptionRetryCount [y] Finishing Process&lt;BR /&gt;&lt;BR /&gt;
10 Mar 2013 10:10:35,234 MyApplicationProcessor : MyProcess PIDNo [123454] MyProcessGroup [PRG_NM1]  FailureRetryCount[x] ExceptionRetryCount [y] Enter&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;The PIDNo,x,y, PRG_NM etc are variables I am particularly looking to create a report based on PRD_NM where the even ends with Finishing Process. The PRG_NM can be any of the 100+ possible values.&lt;/P&gt;

&lt;P&gt;The reports needs to look like: &lt;BR /&gt;&lt;BR /&gt;
PRG_NM1 - 35 &lt;BR /&gt;&lt;BR /&gt;
PRG_NM2 - 43 &lt;BR /&gt;&lt;BR /&gt;
PRG_NM3 - 21 &lt;BR /&gt;&lt;BR /&gt;
PRG_NM4 - 42 &lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189491#M19283</guid>
      <dc:creator>ilyashussain</dc:creator>
      <dc:date>2020-09-28T16:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated reporting on a field with variable value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189492#M19284</link>
      <description>&lt;P&gt;You could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "\[(?&amp;lt;prg&amp;gt;PRG.*?)\]" | stats count by prg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you can control the format of that log it's nicer to have these PRG_NM1 fields printed in key=value format, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10 Mar 2013 10:10:35,559 processor=MyApplicationProcessor process=MyProcess pid=PIDNo something=123456 processGroup=MyProcessGroup prg=PRG_NM1 failureRetryCount=x exceptionRetryCount=y message="Finishing Process"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then Splunk will understand all the fields automatically, and humans will still understand the log as well.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2014 10:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189492#M19284</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-15T10:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated reporting on a field with variable value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189493#M19285</link>
      <description>&lt;P&gt;Awesome. Thank you for the quick response. Much appreciated.&lt;/P&gt;

&lt;P&gt;Unfortunately, the events are logged by a legacy program and we have very little control on how and what is being logged&lt;/P&gt;

&lt;P&gt;can this be modify to make it look like below (where h=current hour)? I tried stats count by prg, date_hour&lt;BR /&gt;
but it inserts one row per hour per prg.&lt;/P&gt;

&lt;P&gt;PRGName&amp;nbsp;&amp;nbsp;&amp;nbsp;h-2&amp;nbsp;&amp;nbsp;&amp;nbsp;h-1&amp;nbsp;&amp;nbsp;&amp;nbsp;h&lt;BR /&gt;&lt;BR /&gt;
PRGNM1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;35&amp;nbsp;&amp;nbsp;&amp;nbsp;23&amp;nbsp;&amp;nbsp;&amp;nbsp;76&lt;BR /&gt;&lt;BR /&gt;
PRGNM2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;43&amp;nbsp;&amp;nbsp;&amp;nbsp;53&amp;nbsp;&amp;nbsp;&amp;nbsp;12&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 21:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189493#M19285</guid>
      <dc:creator>ilyashussain</dc:creator>
      <dc:date>2014-03-17T21:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated reporting on a field with variable value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189494#M19286</link>
      <description>&lt;P&gt;Use chart command instead of stats..&lt;/P&gt;

&lt;P&gt;...| chart count over prg by date_hour&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 15:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189494#M19286</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-18T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated reporting on a field with variable value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189495#M19287</link>
      <description>&lt;P&gt;For charting over time you usually want to use timechart like so:&lt;/P&gt;

&lt;P&gt;... | timechart span=1h count&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Aggregated-reporting-on-a-field-with-variable-value/m-p/189495#M19287</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-18T16:22:24Z</dc:date>
    </item>
  </channel>
</rss>

