<?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: Calculate the  number of Events Per Day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607599#M211261</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks, is there a way to show the events through the data as when I do a search my results no where near match the number produced by using ev?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jul 2022 07:43:53 GMT</pubDate>
    <dc:creator>Rhidian</dc:creator>
    <dc:date>2022-07-30T07:43:53Z</dc:date>
    <item>
      <title>How do I calculate the  number of Events Per Day so I can then divide by 86400 to get the daily EPS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607547#M211235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to calculate the number of events per day so I can then divide by&amp;nbsp;86400 to get the daily EPS. I know I can get the EPS "directly" using various queries like the below but I don't really understand the logic as what is the ev field and how is it calculated?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype=splunkd Metrics TERM(group=per_sourcetype_thruput) component=Metrics
| fields ev series _time
| rename ev as events, series as sourcetype
| timechart limit=15 partial=f minspan=30s per_second(events) as EPS by sourcetype
| append [ | tstats dc(source) as Sources, dc(sourcetype) as Sourcetypes, dc(host) as Hosts where index=* by _time | timechart partial=f sum(Sources) as Sources, sum(Sourcetypes) as Sourcetypes, sum(Hosts) as Hosts ]
| timechart partial=f first(*) as * | addtotals
| fields _time Total
| appendpipe [| stats count | where count=0 | eval Total="0"]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607547#M211235</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-07-29T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607553#M211236</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;per_second&lt;/FONT&gt; function sums the given field then divides the total by the number of seconds in the interval to get the per-second value.&lt;/P&gt;&lt;P&gt;The ev field in Metrics events is the number of events received in the current sampling interval.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607553#M211236</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-29T15:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607556#M211238</link>
      <description>&lt;P&gt;So the sum of ev is the total number of events for the interval?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607556#M211238</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-07-29T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607569#M211246</link>
      <description>&lt;P&gt;Yes, but it's not 100% accurate so the number calculated here may not match your license usage.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Troubleshooting/Aboutmetricslog" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Troubleshooting/Aboutmetricslog &lt;/A&gt;and&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Troubleshooting/Aboutmetricslog#Thruput_messages:~:text=The%20per_x_thruput%20categories%20are%20not%20complete" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Troubleshooting/Aboutmetricslog#Thruput_messages:~:text=The%20per_x_thruput%20categories%20are%20not%20complete&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 16:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607569#M211246</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-29T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate the  number of Events Per Day so I can then divide by 86400 to get the daily EPS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607589#M211257</link>
      <description>&lt;P&gt;Thanks, is there a way to show the events through the data as when I do a search my results no where near match the number produced by using ev?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 21:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607589#M211257</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-07-29T21:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607599#M211261</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks, is there a way to show the events through the data as when I do a search my results no where near match the number produced by using ev?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 07:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607599#M211261</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-07-30T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607715#M211319</link>
      <description>&lt;P&gt;Unfortunately summing ev&amp;nbsp; suggests I had an EPS of&amp;nbsp;&lt;SPAN&gt;18396 which is way off the mark. Any other ideas?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 08:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607715#M211319</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-08-01T08:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607758#M211329</link>
      <description>&lt;P&gt;Make sure the numbers being added are from the same interval.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607758#M211329</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-01T13:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607763#M211332</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;from documentation which&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;pointed to you, you see this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;By default, metrics.log reports the top 10 results for each type. You can change that number of series from the default by editing the value of maxseries in the [metrics] stanza in limits.conf.&lt;/LI-CODE&gt;&lt;P&gt;So it's not report all events which splunk ingesting/read/send etc. That's the reason why you cannot see/get correct values. All those values what you are getting from metrics.log are just estimates not exact values for all data.&lt;/P&gt;&lt;P&gt;If you need a real EPS you must count e.g. indexed events per time slot using _indextime not _time. Or another option is use some apps or another way to get exact numbers from needed place.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607763#M211332</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-08-01T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate the  number of Events Per Day so I can then divide by 86400 to get the daily EPS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607766#M211334</link>
      <description>&lt;P&gt;To count events use the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=* _index_earliest=-1d@d _index_latest=@d by index&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/607766#M211334</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-01T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the  number of Events Per Day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/610325#M212240</link>
      <description>&lt;P&gt;Thanks, could you please provide such a query?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 11:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/610325#M212240</guid>
      <dc:creator>Rhidian</dc:creator>
      <dc:date>2022-08-22T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate the  number of Events Per Day so I can then divide by 86400 to get the daily EPS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/671361#M230089</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;is it possible to execute the following command to calculate Event per day in one week?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* earliest=-7d
| timechart span=1d count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 13:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/671361#M230089</guid>
      <dc:creator>maede_yavari</dc:creator>
      <dc:date>2023-12-09T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate the  number of Events Per Day so I can then divide by 86400 to get the daily EPS?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/671363#M230091</link>
      <description>&lt;P&gt;Yes, it's possible, but don't do that.&amp;nbsp; It tells Splunk to open every bucket with data from the last seven days and read all of the events from that time.&amp;nbsp; It will be slow and wasteful of resources.&amp;nbsp; Use &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 13:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-calculate-the-number-of-Events-Per-Day-so-I-can-then/m-p/671363#M230091</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-09T13:25:07Z</dc:date>
    </item>
  </channel>
</rss>

