<?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 Converting Active Directory Time Fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42162#M7828</link>
    <description>&lt;P&gt;AD stores certain fields like:&lt;/P&gt;

&lt;P&gt;pwdLastSet&lt;/P&gt;

&lt;P&gt;in a large integer format.  How can I convert these to a human readable time format using Splunk?&lt;/P&gt;

&lt;P&gt;Examples:&lt;/P&gt;

&lt;P&gt;129290832000000000
129278238808929391&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2010 06:30:01 GMT</pubDate>
    <dc:creator>ogdin</dc:creator>
    <dc:date>2010-09-02T06:30:01Z</dc:date>
    <item>
      <title>Converting Active Directory Time Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42162#M7828</link>
      <description>&lt;P&gt;AD stores certain fields like:&lt;/P&gt;

&lt;P&gt;pwdLastSet&lt;/P&gt;

&lt;P&gt;in a large integer format.  How can I convert these to a human readable time format using Splunk?&lt;/P&gt;

&lt;P&gt;Examples:&lt;/P&gt;

&lt;P&gt;129290832000000000
129278238808929391&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 06:30:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42162#M7828</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2010-09-02T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Active Directory Time Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42163#M7829</link>
      <description>&lt;P&gt;Looks to me like this, for example, would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval human_time=strftime(pwdLastSet/1000000000,"%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Sep 2010 06:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42163#M7829</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-02T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Active Directory Time Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42164#M7830</link>
      <description>&lt;P&gt;Close.  Windows uses NT epoch.  Below should work.&lt;/P&gt;

&lt;P&gt;... | eval human_time=strftime(pwdLastSet/10000000-11644473600,"%Y-%m-%d %H:%M:%S")&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 20:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42164#M7830</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2010-09-02T20:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Active Directory Time Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42165#M7831</link>
      <description>&lt;P&gt;Some parts of Windows uses NT epoch, which are based off 01/01/1601 00:00:00, but others (.NET-based mostly) use MS Ticks, which are 10^-7 seconds since 01/01/0001 00:00:00. (Using which calendar, I do not know.)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 21:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42165#M7831</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-02T21:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Active Directory Time Fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42166#M7832</link>
      <description>&lt;P&gt;Yes.  I should have qualified that.  This specific field in the AD logs use NT epoch.  Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 03:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Converting-Active-Directory-Time-Fields/m-p/42166#M7832</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2010-09-03T03:14:23Z</dc:date>
    </item>
  </channel>
</rss>

