<?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: Generating a daily, weekly and monthly report for indexed volume usage by all indexes and all servers. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23868#M4289</link>
    <description>&lt;P&gt;Er, sorry, I misread monthly as yearly. Edited the above to reflect that change.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2012 01:41:27 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2012-11-06T01:41:27Z</dc:date>
    <item>
      <title>Generating a daily, weekly and monthly report for indexed volume usage by all indexes and all servers.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23866#M4287</link>
      <description>&lt;P&gt;I would like to generate a daily, weekly and monthly report for indexed volume usage by all indexes and all servers. I would like to add the usage daily , weekly and monthly as three individual columns. Is it possible to merge the results in splunk search head? I generated a report for daily indexed volume usage, but unable to add a column comparing the indexed usage weekly, monthly etc.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 18:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23866#M4287</guid>
      <dc:creator>mike7860</dc:creator>
      <dc:date>2012-11-05T18:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a daily, weekly and monthly report for indexed volume usage by all indexes and all servers.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23867#M4288</link>
      <description>&lt;P&gt;I'd approach this by using &lt;CODE&gt;eventstats&lt;/CODE&gt;. I'd create fields by using &lt;CODE&gt;strftime&lt;/CODE&gt; using %m for month, and %U (or %V or %W—see man pages for which you prefer) for week (number). Then, another for %j for day number. Next, I'd use eventstats to sum or count or whatever "by day_number', then "by week_number", then finally another invocation for "by month". You're required to use an "AS" clause with eventstats, so ultimately, your search might look like this:&lt;/P&gt;

&lt;PRE&gt;
&amp;lt;your search&amp;gt;
| eval day_no=strftime(_time, "%j")
| eval week_no=strftime(_time, "%U")
| eval month_no=strftime(_time, "%m")
| eventstats sum(kb) AS daily by day_no
| eventstats sum(kb) AS weekly by week_no
| eventstats sum(kb) AS monthly by month_no
&amp;lt;display functions&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;The event set would carry day_no, week_no and year_no fields along with &lt;EM&gt;every event&lt;/EM&gt;, so you'd have those numbers available to pass to &lt;CODE&gt;chart&lt;/CODE&gt; or &lt;CODE&gt;timechart&lt;/CODE&gt; or &lt;CODE&gt;stats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23867#M4288</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2020-09-28T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a daily, weekly and monthly report for indexed volume usage by all indexes and all servers.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23868#M4289</link>
      <description>&lt;P&gt;Er, sorry, I misread monthly as yearly. Edited the above to reflect that change.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 01:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generating-a-daily-weekly-and-monthly-report-for-indexed-volume/m-p/23868#M4289</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-11-06T01:41:27Z</dc:date>
    </item>
  </channel>
</rss>

