<?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 do I report on message volume over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9635#M228</link>
    <description>&lt;P&gt;Or just shorter:&lt;BR /&gt;
earliest=-14d@w0 latest=@w0 | timechart span=7d count by tag::eventtype&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2010 11:57:35 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-02-05T11:57:35Z</dc:date>
    <item>
      <title>How do I report on message volume over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9633#M226</link>
      <description>&lt;P&gt;We are attempting to create a report that compares message traffic for the past two complete weeks. &lt;/P&gt;

&lt;P&gt;We have this as an initial start: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest_time=-14d@w0 latest_time=@w0 | eval week_name=if((round((now()-_time)/(60*60*24)))&amp;lt; 7 , "Current Week", "Previous Week") | chart count by tag::eventtype, week_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem that we have is that there is no way to get the time of the oldest entry on the returned events. The best we can do is now() which gives us the time the search was started. If we wanted to do a report comparing the past 14 days of traffic it would work perfectly. Unfortunately we want to handle any given period, not just the past 14 days, so we need another method to determine time deltas between events.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2010 05:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9633#M226</guid>
      <dc:creator>Mick</dc:creator>
      <dc:date>2010-02-05T05:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I report on message volume over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9634#M227</link>
      <description>&lt;P&gt;You could do something like this in 4.0:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=... latest=... | bin span=7d _time as week_start_time | convert ctime(week_start_time) timeformat="Week Starting %b %d" | chart count by tag::eventtype, week_start_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In 4.1: you can do the following if you want your week to always start on a Sunday.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=... latest=... | eval week_start_time = strftime(relative_time(_time,"@w0"), "Week Starting %b %d") | chart count by tag::eventtype, week_start_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change @w0 to @w1 for monday, @w2 for tuesday .... etc&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2010 05:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9634#M227</guid>
      <dc:creator>steveyz</dc:creator>
      <dc:date>2010-02-05T05:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I report on message volume over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9635#M228</link>
      <description>&lt;P&gt;Or just shorter:&lt;BR /&gt;
earliest=-14d@w0 latest=@w0 | timechart span=7d count by tag::eventtype&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2010 11:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-report-on-message-volume-over-time/m-p/9635#M228</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-02-05T11:57:35Z</dc:date>
    </item>
  </channel>
</rss>

