<?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 to skip the weekends in the timechart or a chart? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506492#M33679</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Try in this order&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;| where NOT date_wday in ("Saturday","Sunday")&lt;BR /&gt;&lt;SPAN&gt;| eval day_of_week = strftime(_time,"%A")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 08:59:41 GMT</pubDate>
    <dc:creator>cpm003</dc:creator>
    <dc:date>2020-06-29T08:59:41Z</dc:date>
    <item>
      <title>How to skip the weekends in the timechart or a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506483#M33675</link>
      <description>&lt;P&gt;I have a search query which yields a timechart . I want to show just the weekdays and skip the weekends in the charting of data using timechart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the clause&amp;nbsp;| eval day_of_week = strftime(_time,"%A")&lt;BR /&gt;| where NOT (day_of_week="Saturday" OR day_of_week="Sunday")&lt;BR /&gt;| fields - day_of_week in my query before and after the timechart.&lt;/P&gt;&lt;P&gt;The data doesn't have the weekend information whereas when this is charted using the timechart I always get the weekends on my x-axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to solve it?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 07:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506483#M33675</guid>
      <dc:creator>sambit_kabi</dc:creator>
      <dc:date>2020-06-29T07:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the weekends in the timechart or a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506492#M33679</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Try in this order&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;| where NOT date_wday in ("Saturday","Sunday")&lt;BR /&gt;&lt;SPAN&gt;| eval day_of_week = strftime(_time,"%A")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 08:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506492#M33679</guid>
      <dc:creator>cpm003</dc:creator>
      <dc:date>2020-06-29T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the weekends in the timechart or a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506645#M33690</link>
      <description>&lt;P&gt;Hi , thanks for the reply. I had tried the same with the clause before and after the chart command. It didn't work for me in either case.&lt;/P&gt;&lt;P&gt;However the following worked for me. I am not not sure though why it worked and what is Splunk's behavior when I used strftime.&lt;/P&gt;&lt;P&gt;| eval date=strftime(_time,"%d-%b-%y %H:%M:%S %a")&lt;BR /&gt;| chart limit=0 useother=false count as Volume by date,Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 08:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506645#M33690</guid>
      <dc:creator>sambit_kabi</dc:creator>
      <dc:date>2020-06-30T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to skip the weekends in the timechart or a chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506662#M33691</link>
      <description>&lt;P&gt;sample:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal earliest=0 by _time span=1d
| eval weekday=if(strftime(_time,"%w") = "0" OR strftime(_time,"%w") = "6",1,0)
| where weekday=0
| eval weekday=strftime(_time,"%a")&lt;/LI-CODE&gt;&lt;P&gt;reference:&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 10:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-skip-the-weekends-in-the-timechart-or-a-chart/m-p/506662#M33691</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-30T10:56:44Z</dc:date>
    </item>
  </channel>
</rss>

