<?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: Get Day of Week from Created Date Field through extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347574#M102941</link>
    <description>&lt;P&gt;If the &lt;CODE&gt;_Date&lt;/CODE&gt; is the same as &lt;CODE&gt;_time&lt;/CODE&gt;, then just use the field &lt;CODE&gt;date_wday&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If you need it in a number, then you can do a &lt;CODE&gt;lookup&lt;/CODE&gt; or &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If &lt;CODE&gt;_Date&lt;/CODE&gt; is not the same as &lt;CODE&gt;_time&lt;/CODE&gt;, then &lt;STRONG&gt;&lt;EM&gt;sbbadri's&lt;/EM&gt;&lt;/STRONG&gt; answer is probably what you want to consider.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 23:31:12 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2017-08-03T23:31:12Z</dc:date>
    <item>
      <title>Get Day of Week from Created Date Field through extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347572#M102939</link>
      <description>&lt;P&gt;I have extracted a field from log files that is called file_Date and it is in the format "8/1/2017". How do get the day of the week from a date in this format. I CAN NOT use "_time" for when Splunk gets the date forwarded because it can be a different date based on the location of the server.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347572#M102939</guid>
      <dc:creator>griffinpair</dc:creator>
      <dc:date>2020-09-29T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Day of Week from Created Date Field through extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347573#M102940</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/53062"&gt;@griffinpair&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;Try this, &lt;/P&gt;

&lt;P&gt;| eval tdate_w = strftime(strptime(file_Date, "%m/%d/%Y"), "%A") | table file_Date  tdate_w&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347573#M102940</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Day of Week from Created Date Field through extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347574#M102941</link>
      <description>&lt;P&gt;If the &lt;CODE&gt;_Date&lt;/CODE&gt; is the same as &lt;CODE&gt;_time&lt;/CODE&gt;, then just use the field &lt;CODE&gt;date_wday&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If you need it in a number, then you can do a &lt;CODE&gt;lookup&lt;/CODE&gt; or &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If &lt;CODE&gt;_Date&lt;/CODE&gt; is not the same as &lt;CODE&gt;_time&lt;/CODE&gt;, then &lt;STRONG&gt;&lt;EM&gt;sbbadri's&lt;/EM&gt;&lt;/STRONG&gt; answer is probably what you want to consider.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 23:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347574#M102941</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-08-03T23:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Day of Week from Created Date Field through extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347575#M102942</link>
      <description>&lt;P&gt;NOTE - If you prefer numbers, 0 for Sunday, 1 for Monday and so on, use "%w"&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 00:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347575#M102942</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-04T00:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Day of Week from Created Date Field through extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347576#M102943</link>
      <description>&lt;P&gt;This works perfectly! Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-Day-of-Week-from-Created-Date-Field-through-extraction/m-p/347576#M102943</guid>
      <dc:creator>griffinpair</dc:creator>
      <dc:date>2017-08-04T17:00:14Z</dc:date>
    </item>
  </channel>
</rss>

