<?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: Weekly Chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338154#M39482</link>
    <description>&lt;P&gt;index="abc" sourcetype="incidents" Priority!="Priority" latest=now| stats  latest(State) as State, latest(Priority) as  Priority by Number _time&lt;BR /&gt;
 | timechart count span=7d by Priority| sort   _time | tail 5 | sort _time | rename _time as Time | eval Time=strftime(Time,"%Y-%m-%d").&lt;/P&gt;

&lt;P&gt;This is my current query which shows count for every 7 days, but I need count for every Monday to Sunday. is that possible?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 15:55:44 GMT</pubDate>
    <dc:creator>Chinmai</dc:creator>
    <dc:date>2017-04-19T15:55:44Z</dc:date>
    <item>
      <title>Weekly Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338152#M39480</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I have a requirement where i need to have time chart of count of tickets by priorities(p1,p2,p3,p4). Timechart should be a stacked bar chart with data showing  for every week(mon-sun). Like one stacked bar should be the  total count of tickets from this monday to till now and next point should show the  total count of tickets from  last monday to last sunday(basically  total count of tickets for every monday to sunday). chart should show data for last 4/5 weeks. I am finding difficult to create data for every monday to sunday.&lt;/P&gt;

&lt;P&gt;Can anyone help me with this?&lt;/P&gt;

&lt;P&gt;Many Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 03:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338152#M39480</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2017-04-19T03:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338153#M39481</link>
      <description>&lt;P&gt;can you show syntax/data examples that you have so far?&lt;/P&gt;

&lt;P&gt;to get weekly snapshots, use &lt;CODE&gt;|eval week=strftime(relative_time(_time,"@w1"),"%Y-%m-%d")&lt;/CODE&gt; and that will give you the date of the Monday the week started on. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338153#M39481</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-19T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338154#M39482</link>
      <description>&lt;P&gt;index="abc" sourcetype="incidents" Priority!="Priority" latest=now| stats  latest(State) as State, latest(Priority) as  Priority by Number _time&lt;BR /&gt;
 | timechart count span=7d by Priority| sort   _time | tail 5 | sort _time | rename _time as Time | eval Time=strftime(Time,"%Y-%m-%d").&lt;/P&gt;

&lt;P&gt;This is my current query which shows count for every 7 days, but I need count for every Monday to Sunday. is that possible?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338154#M39482</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2017-04-19T15:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338155#M39483</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="abc" sourcetype="incidents" Priority!="Priority" latest=now| stats latest(State) as State, latest(Priority) as Priority by Number _time|eval week=strftime(relative_time(_time,"@w1"),"%Y-%m-%d")
| chart count by week Priority | tail 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;try that and let me know if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338155#M39483</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-19T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338156#M39484</link>
      <description>&lt;P&gt;Yes it works!!. Thank you so Much:)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Weekly-Chart/m-p/338156#M39484</guid>
      <dc:creator>Chinmai</dc:creator>
      <dc:date>2017-04-19T16:24:53Z</dc:date>
    </item>
  </channel>
</rss>

