<?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 retrieve the number of all events logged in the last week in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40628#M9374</link>
    <description>&lt;P&gt;Thanks, I solved my issue using this query:&lt;/P&gt;

&lt;P&gt;search earliest=-w | stats count&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 10:03:50 GMT</pubDate>
    <dc:creator>RiccardoV</dc:creator>
    <dc:date>2013-05-21T10:03:50Z</dc:date>
    <item>
      <title>how to retrieve the number of all events logged in the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40625#M9371</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
i'm creating a dashboard with some general infos, showed as first dashboard to the user. &lt;BR /&gt;
I have two distinct &lt;STRONG&gt;hiddensearch&lt;/STRONG&gt; modules, both of them with this &lt;STRONG&gt;"search"&lt;/STRONG&gt; param:&lt;/P&gt;

&lt;P&gt;" | eventcount | stats sum(count) as count"&lt;/P&gt;

&lt;P&gt;The second module has &lt;STRONG&gt;"earliest"&lt;/STRONG&gt; param too, set to -w, to find just the events of the last week.&lt;BR /&gt;
However, I retrieve always the same result for both research. I check the data, and I should have very different results.&lt;/P&gt;

&lt;P&gt;thanks in advance for your answers!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;edit&lt;/STRONG&gt;: now I'm using this query: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search earliest=-w | stats count&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;there is a better (and more efficient) way to get the same result?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 09:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40625#M9371</guid>
      <dc:creator>RiccardoV</dc:creator>
      <dc:date>2013-05-21T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the number of all events logged in the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40626#M9372</link>
      <description>&lt;P&gt;The eventcount command just returns the total amount of events in the index. The earliest parameter won't have an impact on this search.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 09:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40626#M9372</guid>
      <dc:creator>abhutiani</dc:creator>
      <dc:date>2013-05-21T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the number of all events logged in the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40627#M9373</link>
      <description>&lt;P&gt;&lt;CODE&gt;eventcount&lt;/CODE&gt; does not work with earliest/latest. It's a metadata command, and does not look at the events themselves (so it cannot determine timestamps).&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eventcount"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eventcount&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 09:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40627#M9373</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-21T09:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve the number of all events logged in the last week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40628#M9374</link>
      <description>&lt;P&gt;Thanks, I solved my issue using this query:&lt;/P&gt;

&lt;P&gt;search earliest=-w | stats count&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 10:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-retrieve-the-number-of-all-events-logged-in-the-last-week/m-p/40628#M9374</guid>
      <dc:creator>RiccardoV</dc:creator>
      <dc:date>2013-05-21T10:03:50Z</dc:date>
    </item>
  </channel>
</rss>

