<?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 you completely remove  Saturdays and Sundays from displaying on a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405460#M117196</link>
    <description>&lt;P&gt;but the above search will add last week (monday) stats to current week (monday), if you search window is more than 10 days. is that ok?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 12:27:43 GMT</pubDate>
    <dc:creator>lakshman239</dc:creator>
    <dc:date>2019-02-22T12:27:43Z</dc:date>
    <item>
      <title>How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405457#M117193</link>
      <description>&lt;P&gt;Hello, was looking at this topic : &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/112838/how-can-you-restrict-a-timechart-to-display-only-weekdays.html"&gt;https://answers.splunk.com/answers/112838/how-can-you-restrict-a-timechart-to-display-only-weekdays.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My problem is exactly the same. I want to remove Saturdays and Sundays from my timechart. However, it does not seem to work properly in my case, it seems it just ignores them without removing them.&lt;/P&gt;

&lt;P&gt;Example below : &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/6607i202EFA171D6CF622/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is there a way to completely remove them from the X-Axis ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| my base search
| timechart count(foo) as "foo", count(bar) as "bar" span=1d
| eval date_wday=lower(strftime(_time,"%A")) 
| where NOT (date_wday="saturday" OR date_wday="sunday")
| fields - date_wday
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 09:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405457#M117193</guid>
      <dc:creator>Zakary_n</dc:creator>
      <dc:date>2019-02-22T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405458#M117194</link>
      <description>&lt;P&gt;Try using this way ,if it helps&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*"| eval date_wday=lower(strftime(_time,"%A"))|eval date_w=strftime(_time,"%d-%b-%y %a") |where NOT (date_wday = "sunday" OR date_wday = "saturday")|chart count by date_w
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405458#M117194</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-02-22T12:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405459#M117195</link>
      <description>&lt;P&gt;You sir made my day. Very nice workaround. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405459#M117195</guid>
      <dc:creator>Zakary_n</dc:creator>
      <dc:date>2019-02-22T12:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405460#M117196</link>
      <description>&lt;P&gt;but the above search will add last week (monday) stats to current week (monday), if you search window is more than 10 days. is that ok?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405460#M117196</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-22T12:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405461#M117197</link>
      <description>&lt;P&gt;Well after some testing, it seems to be ok with my search. Each Monday has different totals, and current monday has smaller totals than last week's monday, so seems good I think. Thank you for your comment still!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 12:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405461#M117197</guid>
      <dc:creator>Zakary_n</dc:creator>
      <dc:date>2019-02-22T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405462#M117198</link>
      <description>&lt;P&gt;A problem I discovered with this request, if you guys got any idea. &lt;/P&gt;

&lt;P&gt;I created a new question : &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/730248/chart-not-displaying-in-the-right-order.html?minQuestionBodyLength=80"&gt;https://answers.splunk.com/answers/730248/chart-not-displaying-in-the-right-order.html?minQuestionBodyLength=80&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/405462#M117198</guid>
      <dc:creator>Zakary_n</dc:creator>
      <dc:date>2019-03-06T09:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you completely remove  Saturdays and Sundays from displaying on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/506485#M141708</link>
      <description>&lt;P&gt;Lifesaver.&amp;nbsp; Excellent!! I still couldn't understand how is Splunk treating it differently&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 07:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-completely-remove-Saturdays-and-Sundays-from/m-p/506485#M141708</guid>
      <dc:creator>sambit_kabi</dc:creator>
      <dc:date>2020-06-29T07:43:17Z</dc:date>
    </item>
  </channel>
</rss>

