<?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: AD Field Dates Converting and Searching in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132346#M27221</link>
    <description>&lt;P&gt;Did you find an answer for this? I am having the same issue.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2014 15:33:32 GMT</pubDate>
    <dc:creator>bigtyma</dc:creator>
    <dc:date>2014-01-17T15:33:32Z</dc:date>
    <item>
      <title>AD Field Dates Converting and Searching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132342#M27217</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;

&lt;P&gt;New to splunk and would like a bit of guidance on dealing with Active Directory attributes that ave dates such as accountExpires and pwdLastSet.&lt;/P&gt;

&lt;P&gt;For example; this work well&lt;/P&gt;

&lt;P&gt;source="ActiveDirectory" AND accountExpires="12:00.00 AM, Tue 01/01/2013" AND accountExpires&amp;gt;0 | dedup name | search userAccountControl="512"&lt;/P&gt;

&lt;P&gt;However I would really like to see everything that expires prior to this date. "&amp;lt;" does not work because I suspect splunk see's this value as a string.&lt;/P&gt;

&lt;P&gt;Anyone have some examples of efficient ways to accomplish what I am looking for.&lt;/P&gt;

&lt;P&gt;TY&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 13:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132342#M27217</guid>
      <dc:creator>tmugherini</dc:creator>
      <dc:date>2013-11-07T13:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: AD Field Dates Converting and Searching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132343#M27218</link>
      <description>&lt;P&gt;You can try converting the accountExpires string value to a time with strftime like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval accountExpires=strftime(Date, "%I:%M.%S %P, %a %m/%d/%Y") |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only issue I see is your seconds appear to be decimal minutes, and I don't see a strftime representation for that...&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 14:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132343#M27218</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-07T14:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: AD Field Dates Converting and Searching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132344#M27219</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;What do I do with converted value post, just query as usual with &amp;lt; value?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 19:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132344#M27219</guid>
      <dc:creator>tmugherini</dc:creator>
      <dc:date>2013-11-07T19:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: AD Field Dates Converting and Searching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132345#M27220</link>
      <description>&lt;P&gt;This particular example does not appear to work for the LastLogonTimestamp field in AD which is the same format.  Unless I'm missing something, when using this eval and displaying the field; it just appears null.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 20:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132345#M27220</guid>
      <dc:creator>mcrawford44</dc:creator>
      <dc:date>2013-12-18T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: AD Field Dates Converting and Searching</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132346#M27221</link>
      <description>&lt;P&gt;Did you find an answer for this? I am having the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Field-Dates-Converting-and-Searching/m-p/132346#M27221</guid>
      <dc:creator>bigtyma</dc:creator>
      <dc:date>2014-01-17T15:33:32Z</dc:date>
    </item>
  </channel>
</rss>

