<?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 Timechart results in to week buckets - keeps forcing monthly in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364282#M175086</link>
    <description>&lt;P&gt;Splunk can be pretty mean at times and do things that have no sense. Im trying to create a chart that shows a few percentages from data going back 6 months which is plopped in to week buckets. The below query is only creating monthly buckets though...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pmc sourcetype=stash source="PDL Per*" WORKFLOWSTATUSID!=1 earliest=-6mon@w
| eval WORKFLOWSTATUSID=case(WORKFLOWSTATUSID==0,"Finished", WORKFLOWSTATUSID==1, "In Progress", WORKFLOWSTATUSID==4, "Error",WORKFLOWSTATUSID==7,"Failed", 1=1, "Other") 
| bin _time span=7d
| timechart mean(percent) as percent by WORKFLOWSTATUSID usenull=f span=7d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All help is appreciated greatly.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 11:29:32 GMT</pubDate>
    <dc:creator>999chris</dc:creator>
    <dc:date>2017-03-16T11:29:32Z</dc:date>
    <item>
      <title>Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364282#M175086</link>
      <description>&lt;P&gt;Splunk can be pretty mean at times and do things that have no sense. Im trying to create a chart that shows a few percentages from data going back 6 months which is plopped in to week buckets. The below query is only creating monthly buckets though...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pmc sourcetype=stash source="PDL Per*" WORKFLOWSTATUSID!=1 earliest=-6mon@w
| eval WORKFLOWSTATUSID=case(WORKFLOWSTATUSID==0,"Finished", WORKFLOWSTATUSID==1, "In Progress", WORKFLOWSTATUSID==4, "Error",WORKFLOWSTATUSID==7,"Failed", 1=1, "Other") 
| bin _time span=7d
| timechart mean(percent) as percent by WORKFLOWSTATUSID usenull=f span=7d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All help is appreciated greatly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 11:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364282#M175086</guid>
      <dc:creator>999chris</dc:creator>
      <dc:date>2017-03-16T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364283#M175087</link>
      <description>&lt;P&gt;Here is an image of the results:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2636iFBC475BEC3FA97E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 11:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364283#M175087</guid>
      <dc:creator>999chris</dc:creator>
      <dc:date>2017-03-16T11:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364284#M175088</link>
      <description>&lt;P&gt;What happens if you change 7d to 1w?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 11:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364284#M175088</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-16T11:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364285#M175089</link>
      <description>&lt;P&gt;can you either remove the bin _time or make the timechart into a chart and see if that works?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pmc sourcetype=stash source="PDL Per*" WORKFLOWSTATUSID!=1 earliest=-6mon@w
 | eval WORKFLOWSTATUSID=case(WORKFLOWSTATUSID==0,"Finished", WORKFLOWSTATUSID==1, "In Progress", WORKFLOWSTATUSID==4, "Error",WORKFLOWSTATUSID==7,"Failed", 1=1, "Other") 
 | timechart mean(percent) as percent by WORKFLOWSTATUSID usenull=f span=7d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pmc sourcetype=stash source="PDL Per*" WORKFLOWSTATUSID!=1 earliest=-6mon@w
 | eval WORKFLOWSTATUSID=case(WORKFLOWSTATUSID==0,"Finished", WORKFLOWSTATUSID==1, "In Progress", WORKFLOWSTATUSID==4, "Error",WORKFLOWSTATUSID==7,"Failed", 1=1, "Other") 
 | bin _time span=7d
 | chart mean(percent) as percent by _time WORKFLOWSTATUSID usenull=f 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364285#M175089</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-03-16T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364286#M175090</link>
      <description>&lt;P&gt;Cheers cmerriman.&lt;/P&gt;

&lt;P&gt;The latter option worked. Am I right in saying its bizarre that my original query was duff?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364286#M175090</guid>
      <dc:creator>999chris</dc:creator>
      <dc:date>2017-03-16T12:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364287#M175091</link>
      <description>&lt;P&gt;did you try moving span ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | timechart span=7d mean(percent) as percent by WORKFLOWSTATUSID usenull=f 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I recall correctly, order matters here&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364287#M175091</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-03-16T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart results in to week buckets - keeps forcing monthly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364288#M175092</link>
      <description>&lt;P&gt;That was my first thought too&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-results-in-to-week-buckets-keeps-forcing-monthly/m-p/364288#M175092</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-16T15:06:09Z</dc:date>
    </item>
  </channel>
</rss>

