<?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: Is date_wday reliable to search on? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142560#M184940</link>
    <description>&lt;P&gt;Thanks a lot for your reply! &lt;BR /&gt;
So the reply to my questions is: "No, filtering on date_wday isn't reliable, because of timezone issues, and because sometimes it's not populated at all".&lt;BR /&gt;&lt;BR /&gt;
Instead, as a best practice, use eval weekday=strftime(_time,"%a") or eval weekday=strftime(_time,"%A").  &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:44:11 GMT</pubDate>
    <dc:creator>manus</dc:creator>
    <dc:date>2020-09-28T17:44:11Z</dc:date>
    <item>
      <title>Is date_wday reliable to search on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142558#M184938</link>
      <description>&lt;P&gt;When I run two queries which differ from a wday filtering:&lt;BR /&gt;&lt;BR /&gt;
Query1= "Query1"&lt;BR /&gt;
Query2= "Query1" date_wday!=Saturday  &lt;/P&gt;

&lt;P&gt;I get no result for query2 and plenty of results for query1. All the results I have in Query1 are not from Saturday only, otherwise I wouldn't report the problem.&lt;/P&gt;

&lt;P&gt;I can't reproduce this problem 100%. Most of the time, filtering on date_wday works as expected. I believe it's the third time, that scheduled reports I have, suddenly stop returning anything, and the three times, it has been due to problems with the date_wday filtering.  &lt;/P&gt;

&lt;P&gt;This is not really a question, but more a bug report I think... but I'm not too sure where to do that.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142558#M184938</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2020-09-28T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is date_wday reliable to search on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142559#M184939</link>
      <description>&lt;P&gt;It's probably not a bug. Not all inputs have a &lt;CODE&gt;date_wday&lt;/CODE&gt; field - and when they do, the day of the week is not time-zone adjusted.&lt;/P&gt;

&lt;P&gt;You might also want to take a look at this question/answer: &lt;A href="http://answers.splunk.com/answers/99451/variance-betweeen-time-and-date-fields.html"&gt;Variance between &lt;EM&gt;time and date&lt;/EM&gt;* fields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you still feel that you have a bug, you can report it at &lt;A href="http://www.splunk.com/support"&gt;http://www.splunk.com/support&lt;/A&gt; by clicking "Submit a case"&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 20:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142559#M184939</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-09-26T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is date_wday reliable to search on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142560#M184940</link>
      <description>&lt;P&gt;Thanks a lot for your reply! &lt;BR /&gt;
So the reply to my questions is: "No, filtering on date_wday isn't reliable, because of timezone issues, and because sometimes it's not populated at all".&lt;BR /&gt;&lt;BR /&gt;
Instead, as a best practice, use eval weekday=strftime(_time,"%a") or eval weekday=strftime(_time,"%A").  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142560#M184940</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2020-09-28T17:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is date_wday reliable to search on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142561#M184941</link>
      <description>&lt;P&gt;What @manus means is that date_wday seems to always be interpreted in UTC whereas _time will be reported to you in your local time zone. Not sure if this is a bug or the way it's defined to be.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 01:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142561#M184941</guid>
      <dc:creator>enno</dc:creator>
      <dc:date>2016-02-12T01:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is date_wday reliable to search on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142562#M184942</link>
      <description>&lt;P&gt;&lt;CODE&gt;date_wday&lt;/CODE&gt; is based on the raw data - if that is UTC for this source, then &lt;CODE&gt;date_wday&lt;/CODE&gt; will be UTC. From another source, the &lt;CODE&gt;date_wday&lt;/CODE&gt;could be different. &lt;BR /&gt;
&lt;CODE&gt;_time&lt;/CODE&gt; is the normalized time that is stored in the index; it is always stored in UTC.&lt;BR /&gt;
Splunk displays &lt;CODE&gt;_time&lt;/CODE&gt; in the user interface based on the time zone you selected in your user settings.&lt;BR /&gt;
This is by design; it is not  bug.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-date-wday-reliable-to-search-on/m-p/142562#M184942</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-02-12T17:34:39Z</dc:date>
    </item>
  </channel>
</rss>

