<?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 to get peakstats and a count of success and errors for a month in one table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675141#M231033</link>
    <description>&lt;P&gt;I am getting the peak stats by bucket using this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bucket span=1s _time 
| stats count by _time 
| timechart max(count) AS Peak_TPS span=1m&lt;/LI-CODE&gt;&lt;P&gt;Some how the two Queries are not working together&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 07:38:58 GMT</pubDate>
    <dc:creator>ashidhingra</dc:creator>
    <dc:date>2024-01-23T07:38:58Z</dc:date>
    <item>
      <title>How to get peakstats and a count of success and errors for a month in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675135#M231030</link>
      <description>&lt;P&gt;How to get peakstats and a count of success and errors for a month in one table?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 05:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675135#M231030</guid>
      <dc:creator>ashidhingra</dc:creator>
      <dc:date>2024-01-23T05:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get peakstats and a count of success and errors for a month in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675138#M231032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245806"&gt;@ashidhingra&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the search depends on the data you have.&lt;/P&gt;&lt;P&gt;So supponing that the field with the traffic to monitor i "bytes" and the field with access and failed is "action" and that you want thes monitoring for each host, you could try something like this, for a month:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats
   max(bytes) AS peak
   count(eval(action="success")) AS success
   count(eval(action="failed")) AS failed
   BY host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 06:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675138#M231032</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-01-23T06:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get peakstats and a count of success and errors for a month in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675141#M231033</link>
      <description>&lt;P&gt;I am getting the peak stats by bucket using this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| bucket span=1s _time 
| stats count by _time 
| timechart max(count) AS Peak_TPS span=1m&lt;/LI-CODE&gt;&lt;P&gt;Some how the two Queries are not working together&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675141#M231033</guid>
      <dc:creator>ashidhingra</dc:creator>
      <dc:date>2024-01-23T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get peakstats and a count of success and errors for a month in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675144#M231035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245806"&gt;@ashidhingra&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, because after a stats command you have only the fields in the stats, you shuld try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; earliest=-1mon latest=@mon
| bucket span=1s _time 
| stats 
   count 
   count(eval(action="success")) AS success
   count(eval(action="failed")) AS failed
   BY _time 
| stats
   max(count) AS Peak_TPS 
   sum(success) AS success
   sum(failed) AS failed&lt;/LI-CODE&gt;&lt;P&gt;You cannot use timechart because in timechart you cannot have more fields&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 07:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-peakstats-and-a-count-of-success-and-errors-for-a/m-p/675144#M231035</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-01-23T07:51:44Z</dc:date>
    </item>
  </channel>
</rss>

