<?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: Peak hourly volume monthly wise for last 3 months. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680167#M232500</link>
    <description>&lt;P&gt;Since you didn't provide any sample events I had to guess - since you still haven't provided any sample events I can only guess whether this is right or not. Since it apparently isn't giving what you want, I would guess it isn't right. In your search, what is count? Is it a field in your events?&lt;/P&gt;</description>
    <pubDate>Sat, 09 Mar 2024 16:20:30 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-09T16:20:30Z</dc:date>
    <item>
      <title>Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680153#M232497</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to calculate peak hourly volume of each month for each service. Each service can have different peak times and first need to calculate peak hour of each component for the month. Likewise calculate for last 3 months. Then calculate the average of 3 months peak hourly volume.&lt;BR /&gt;Below table is the sample requirement.&lt;/P&gt;&lt;TABLE width="346"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="73"&gt;January-24&lt;/TD&gt;&lt;TD width="81"&gt;February-24&lt;/TD&gt;&lt;TD width="64"&gt;March-24&lt;/TD&gt;&lt;TD width="64"&gt;Avg Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;service1&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;service2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;service3&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;service4&lt;/TD&gt;&lt;TD&gt;30000&lt;/TD&gt;&lt;TD&gt;30000&lt;/TD&gt;&lt;TD&gt;9000&lt;/TD&gt;&lt;TD&gt;23000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;service5&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 09 Mar 2024 14:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680153#M232497</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2024-03-09T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680160#M232498</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1h
| stats sum(volume) as volume by _time component
| bin _time span=1mon
| chart max(volume) as volume by component _time
| addtotals
| eval Average=Total/3&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 09 Mar 2024 15:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680160#M232498</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-09T15:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680165#M232499</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the field used as "volume" ? Is it similar to "count" in stats to get volume ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but not working and tried a portion of your query&amp;nbsp;&lt;/P&gt;&lt;P&gt;| bin _time span=1h&lt;BR /&gt;| stats sum(count) as volume by _time component&lt;/P&gt;&lt;P&gt;Its not reporting anything under volume&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 16:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680165#M232499</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2024-03-09T16:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680167#M232500</link>
      <description>&lt;P&gt;Since you didn't provide any sample events I had to guess - since you still haven't provided any sample events I can only guess whether this is right or not. Since it apparently isn't giving what you want, I would guess it isn't right. In your search, what is count? Is it a field in your events?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 16:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680167#M232500</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-09T16:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680172#M232501</link>
      <description>&lt;P&gt;This is the sample stats command for my log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=company app=abc | stats count by component&lt;/P&gt;&lt;P&gt;I don't have field for volume. We have to calculate volume from the stats count.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 16:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680172#M232501</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2024-03-09T16:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680182#M232502</link>
      <description>&lt;P&gt;Count is not the same as volume. Unless you have a synthetic field added during ingestion (or use summary indexing), you have to calculate it manually (unfortunately you cannot use tstats for that so it's gonna be costly since every single matching event has to be read and "measured")&lt;/P&gt;&lt;PRE&gt;index=whatever &amp;lt;your other conditions&amp;gt;&lt;BR /&gt;| eval eventlength=len(_raw)&lt;/PRE&gt;&lt;P&gt;Now you can do some summarizing&lt;/P&gt;&lt;PRE&gt;| bin _time span=1h&lt;BR /&gt;| stats sum(eventlength) as volume by source component whatever&lt;/PRE&gt;&lt;P&gt;This will give you one hour volumes. Now you can do with it whatever you want. Like the stats &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; already posted.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 23:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680182#M232502</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-09T23:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680194#M232506</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1h
| stats count as volume by _time component
| bin _time span=1mon
| chart max(volume) as volume by component _time
| addtotals
| eval Average=Total/3&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 10 Mar 2024 09:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680194#M232506</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-10T09:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hourly volume monthly wise for last 3 months.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680283#M232524</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;- It worked for me&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hourly-volume-monthly-wise-for-last-3-months/m-p/680283#M232524</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2024-03-11T13:59:33Z</dc:date>
    </item>
  </channel>
</rss>

