<?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 sum up all the events in all the indexers with a month total? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587979#M204778</link>
    <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; already pointed out, you can't aggregate data by a field that's not in your events. And a "Period" field most probably isnt't there.&lt;/P&gt;&lt;P&gt;Furthermore - unless you want to do a comparison of two different periods, you'd simply just pick a time range with the timepicker to contain a single day/week/month/whatever or use earliest= and latest= constraints within the search itself.&lt;/P&gt;&lt;P&gt;And you'd probably want to use tstats instead of stats - calculating stats over summaries is way way faster than searching from raw indexes.&lt;/P&gt;&lt;P&gt;You can also use either the license report directly, as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; said or look and calculate your stats over the index=_internal source=*/license_usage.log&lt;/P&gt;&lt;P&gt;There are a few options to get the stats - which one to use depends on what you need it for.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 09:13:23 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-03-08T09:13:23Z</dc:date>
    <item>
      <title>How to sum up all the events in all the indexers with a month total?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587916#M204749</link>
      <description>&lt;P&gt;I'm trying to see if there is a report or a query I can run to sum up all the events in all the indexers with a month total? I tried this but i'm not sure if this is the right search:&lt;/P&gt;
&lt;P&gt;index=* | stats count by Period&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 05:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587916#M204749</guid>
      <dc:creator>juanv</dc:creator>
      <dc:date>2022-03-08T05:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum up all the events in all the indexers with a month total?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587929#M204756</link>
      <description>&lt;P&gt;That query probably won't work unless every event you have has a field called "Period".&lt;/P&gt;&lt;P&gt;The Monitoring Console should have a dashboard that provides what you're looking for.&amp;nbsp; Look under Indexing-&amp;gt;License Usage-&amp;gt;History License Usage.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587929#M204756</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-08T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum up all the events in all the indexers with a month total?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587979#M204778</link>
      <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; already pointed out, you can't aggregate data by a field that's not in your events. And a "Period" field most probably isnt't there.&lt;/P&gt;&lt;P&gt;Furthermore - unless you want to do a comparison of two different periods, you'd simply just pick a time range with the timepicker to contain a single day/week/month/whatever or use earliest= and latest= constraints within the search itself.&lt;/P&gt;&lt;P&gt;And you'd probably want to use tstats instead of stats - calculating stats over summaries is way way faster than searching from raw indexes.&lt;/P&gt;&lt;P&gt;You can also use either the license report directly, as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; said or look and calculate your stats over the index=_internal source=*/license_usage.log&lt;/P&gt;&lt;P&gt;There are a few options to get the stats - which one to use depends on what you need it for.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 09:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-up-all-the-events-in-all-the-indexers-with-a-month/m-p/587979#M204778</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-08T09:13:23Z</dc:date>
    </item>
  </channel>
</rss>

