<?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: Query to calculate max TPS over period of time (3 months) everyday in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701742#M10484</link>
    <description>&lt;P&gt;Well, 1s span for three days is indeed quite a lot of results but I don't see a problem with that.&lt;/P&gt;&lt;P&gt;A run-anywhere example&lt;/P&gt;&lt;PRE&gt;| makeresults count=3000000&lt;BR /&gt;| streamstats count &lt;BR /&gt;| eval _time=_time-count/10&lt;BR /&gt;| eval _time=_time+((random()%10-5))&lt;BR /&gt;| timechart span=1s count&lt;/PRE&gt;&lt;P&gt;What version are you using?&lt;/P&gt;&lt;P&gt;EDIT: OK, I read days where you wanted months. Still it's less than 8 million rows. It might be a bit performance-intensive but Splunk should manage provided you have enough memory.&lt;/P&gt;&lt;P&gt;And to limit memory usage, remove the raw event value as early as possible. So&lt;/P&gt;&lt;PRE&gt;&amp;lt;your initial search&amp;gt; | fields - _raw | timechart ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2024 16:43:19 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-10-13T16:43:19Z</dc:date>
    <item>
      <title>Query to calculate max TPS over period of time (3 months) everyday</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701741#M10483</link>
      <description>&lt;P&gt;Hi Splunk Experts,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know how we can calculate the max and avg TPS for a time period of last 3 months along with the exact time of occurrence.&lt;BR /&gt;&lt;BR /&gt;I came up with below query, but it is showing me error as the count of event is greater than 50000.&lt;BR /&gt;Can anyone please help or guide me on how to overcome this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;index=XXX "attrs"=traffic NOT metas | timechart span=1s count AS TPS | eventstats max(TPS) as MAX_TPS | eval Peak_Time=if(MAX_TPS==TPS,_time,null()) | stats avg(TPS) as AVG_TPS first(MAX_TPS) as MAX_TPS first(Peak_Time) as Peak_Time | fieldformat Peak_Time=strftime(Peak_Time,"%x %X") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sishad_0-1728834777754.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33072iF1CE3F5CBF506AA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sishad_0-1728834777754.png" alt="Sishad_0-1728834777754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 15:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701741#M10483</guid>
      <dc:creator>Sishad</dc:creator>
      <dc:date>2024-10-13T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query to calculate max TPS over period of time (3 months) everyday</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701742#M10484</link>
      <description>&lt;P&gt;Well, 1s span for three days is indeed quite a lot of results but I don't see a problem with that.&lt;/P&gt;&lt;P&gt;A run-anywhere example&lt;/P&gt;&lt;PRE&gt;| makeresults count=3000000&lt;BR /&gt;| streamstats count &lt;BR /&gt;| eval _time=_time-count/10&lt;BR /&gt;| eval _time=_time+((random()%10-5))&lt;BR /&gt;| timechart span=1s count&lt;/PRE&gt;&lt;P&gt;What version are you using?&lt;/P&gt;&lt;P&gt;EDIT: OK, I read days where you wanted months. Still it's less than 8 million rows. It might be a bit performance-intensive but Splunk should manage provided you have enough memory.&lt;/P&gt;&lt;P&gt;And to limit memory usage, remove the raw event value as early as possible. So&lt;/P&gt;&lt;PRE&gt;&amp;lt;your initial search&amp;gt; | fields - _raw | timechart ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 16:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701742#M10484</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-13T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query to calculate max TPS over period of time (3 months) everyday</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701744#M10485</link>
      <description>&lt;P&gt;Version is Splunk Cloud 9.1.2312&lt;BR /&gt;&lt;BR /&gt;I am looking for only these values day wise may be in last 7 days.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sishad_0-1728838762144.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33073i47EDC5C69E0B8947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sishad_0-1728838762144.png" alt="Sishad_0-1728838762144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 17:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701744#M10485</guid>
      <dc:creator>Sishad</dc:creator>
      <dc:date>2024-10-13T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query to calculate max TPS over period of time (3 months) everyday</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701745#M10486</link>
      <description>&lt;P&gt;It looks strange but I'm no expert on Cloud. Are you sure it isn't about visualization only?&lt;/P&gt;&lt;P&gt;Anyway, you can probably emulate your relatively simple timechart with either simple&lt;/P&gt;&lt;PRE&gt;bin | stats by _time&lt;/PRE&gt;&lt;P&gt;or several passes with streamstats&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 18:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-calculate-max-TPS-over-period-of-time-3-months-everyday/m-p/701745#M10486</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-13T18:16:14Z</dc:date>
    </item>
  </channel>
</rss>

