<?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 gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244210#M72715</link>
    <description>&lt;P&gt;That looks perfect, yet again I am amazed with what Splunk can do.&lt;/P&gt;

&lt;P&gt;This is exactly what I wanted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   Total   Date    max_eps_comm    max_eps_daily
2016-07-01 23:31:34 57  07/01/2016  57  57
2016-07-01 23:31:35 42  07/01/2016  57  57
2016-07-01 23:31:36 18  07/01/2016  57  57
2016-07-01 23:31:37 47  07/01/2016  57  57
2016-07-01 23:31:38 35  07/01/2016  57  57
2016-07-01 23:31:39 26  07/01/2016  57  57
2016-07-02 22:46:41 82  07/02/2016  82  82
2016-07-02 22:46:42 56  07/02/2016  82  82
2016-07-02 22:46:43 32  07/02/2016  82  82
2016-07-02 22:46:44 59  07/02/2016  82  82
2016-07-02 22:46:45 45  07/02/2016  82  82
2016-07-02 22:46:46 28  07/02/2016  82  82
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Jul 2016 16:39:08 GMT</pubDate>
    <dc:creator>mgrimes</dc:creator>
    <dc:date>2016-07-07T16:39:08Z</dc:date>
    <item>
      <title>How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244202#M72707</link>
      <description>&lt;P&gt;So I've posted a question a week ago regarding finding the max EPS for a timespan of a day. The query that I am using (currently from Somesoni2) is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="eps_summary"| timechart span=1s max(count) as Total | eval Date=strftime(_time,"%m/%d/%Y") | eventstats max(Total) as max_eps by Date | where Total=max_eps
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It results with the following desired format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time               Total     Date    max_eps
2016-07-04 21:04:09   130    07/04/2016 130
2016-07-05 00:51:46 54  07/05/2016  54
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It allows me to gather and see the time that the max EPS was achieved by the day. However, I'm currently at a dilemma where I would like to easily calculate whether or not these EPS are sustained over a period of time.&lt;/P&gt;

&lt;P&gt;For example, I would like to span or tail the events after the spike in max EPS showed seconds. I'm not sure if I would make this a separate field/column, but rather just increase the limit to show something like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time               Total     Date    max_eps
2016-07-04 21:04:09   130    07/04/2016 130
2016-07-04 21:04:10   125    07/04/2016 125
2016-07-04 21:04:11   100    07/04/2016 100
2016-07-04 21:04:12   10     07/04/2016 10
2016-07-04 21:04:13   75     07/04/2016 75
2016-07-04 21:04:14   70     07/04/2016 70
2016-07-04 21:04:15   90     07/04/2016 90
2016-07-05 00:51:46   54     07/05/2016 54
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is bad representation that I can already see can be modified to express a better visually appealing Statistic however I'm limited by what I know what to do. I've tried to modify the query to add a limit similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="eps_summary"| timechart span=1s limit = 5 max(count) as Total | eval Date=strftime(_time,"%m/%d/%Y") | eventstats max(Total) as max_eps by Date | where Total=max_eps | fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it seems that simply adding the limit doesn't show the 5 max(count) EPS at all. Should I approach this query in a different way or what can I do to make representing the statistic information that I desire easier to read or organize? &lt;/P&gt;

&lt;P&gt;Thanks for looking into this ahead of time.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 17:16:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244202#M72707</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-05T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244203#M72708</link>
      <description>&lt;P&gt;Give this a try. &lt;BR /&gt;
&lt;STRONG&gt;Update- fixed type on streamstats&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Update-corrected query description and updated the query&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This should give you 5 events after the max eps for the day, including row with max eps.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="eps_summary"| timechart span=1s max(count) as Total | eval Date=strftime(_time,"%m/%d/%Y") | streamstats window=6 current=t max(Total) as max_eps_comm by Date  | eventstats max(Total) as max_eps_daily by Date| where max_eps_comm=max_eps_daily
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 18:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244203#M72708</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-05T18:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244204#M72709</link>
      <description>&lt;P&gt;Got the following error as follows: &lt;BR /&gt;
    Error in 'streamstats' command: Invalid option value. Expecting a 'boolean' for option 'current'. Instead got '6'&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 19:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244204#M72709</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-05T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244205#M72710</link>
      <description>&lt;P&gt;When changing it to a boolean value, I do get a series of statistical charts, however it appears to remain Per-Second&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://imgur.com/XnRxrE6" alt="http://imgur.com/XnRxrE6" /&gt;&lt;/P&gt;

&lt;P&gt;URL: &lt;A href="http://imgur.com/XnRxrE6"&gt;http://imgur.com/XnRxrE6&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244205#M72710</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-05T20:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244206#M72711</link>
      <description>&lt;P&gt;I see so many additional columns in your snapshot. Could you post the exact search that  you're trying?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 21:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244206#M72711</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-05T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244207#M72712</link>
      <description>&lt;P&gt;Here's a URL: &lt;A href="https://imgur.com/OMmAzEJ"&gt;https://imgur.com/OMmAzEJ&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I apologize, I must have kept a streamstats at the end of the search when testing. This is the query with the result.&lt;/P&gt;

&lt;P&gt;However, shouldn't the max_eps be all the same for all the values before and after to show grouping for each max EPS? &lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://imgur.com/OMmAzEJ" alt="Query" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244207#M72712</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-06T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244208#M72713</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;_time                 Total                Date                    max_eps
2016-07-06 16:35:12 12  07/06/2016  12
2016-07-06 16:35:13 20  07/06/2016  20
2016-07-06 16:35:15 25  07/06/2016  25
2016-07-06 16:35:23 27  07/06/2016  27
2016-07-06 16:35:29 23  07/06/2016  23
2016-07-06 16:35:33 23  07/06/2016  23
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample data of the query for &lt;CODE&gt;index="eps_summary"| timechart span=1s max(count) as Total | eval Date=strftime(_time,"%m/%d/%Y") | streamstats window=6 current=t max(Total) as max_eps by Date | where Total=max_eps&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 13:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244208#M72713</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-07T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244209#M72714</link>
      <description>&lt;P&gt;Try the updated query. (and see the updated description as well)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244209#M72714</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-07T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to gather a span of 5 Seconds for the Max EPS/TPS for a given Day Span?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244210#M72715</link>
      <description>&lt;P&gt;That looks perfect, yet again I am amazed with what Splunk can do.&lt;/P&gt;

&lt;P&gt;This is exactly what I wanted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   Total   Date    max_eps_comm    max_eps_daily
2016-07-01 23:31:34 57  07/01/2016  57  57
2016-07-01 23:31:35 42  07/01/2016  57  57
2016-07-01 23:31:36 18  07/01/2016  57  57
2016-07-01 23:31:37 47  07/01/2016  57  57
2016-07-01 23:31:38 35  07/01/2016  57  57
2016-07-01 23:31:39 26  07/01/2016  57  57
2016-07-02 22:46:41 82  07/02/2016  82  82
2016-07-02 22:46:42 56  07/02/2016  82  82
2016-07-02 22:46:43 32  07/02/2016  82  82
2016-07-02 22:46:44 59  07/02/2016  82  82
2016-07-02 22:46:45 45  07/02/2016  82  82
2016-07-02 22:46:46 28  07/02/2016  82  82
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-gather-a-span-of-5-Seconds-for-the-Max-EPS-TPS-for-a/m-p/244210#M72715</guid>
      <dc:creator>mgrimes</dc:creator>
      <dc:date>2016-07-07T16:39:08Z</dc:date>
    </item>
  </channel>
</rss>

