<?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: Convert AD LDAP Timestamp to Epoch or other readable date in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133348#M27400</link>
    <description>&lt;P&gt;eval myTime=AD_time/10000000 - 11644473600&lt;/P&gt;

&lt;P&gt;got it.  Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2014 13:42:33 GMT</pubDate>
    <dc:creator>dwithers</dc:creator>
    <dc:date>2014-04-16T13:42:33Z</dc:date>
    <item>
      <title>Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133343#M27395</link>
      <description>&lt;P&gt;Using ldapsearch queries in the splunk for windows ifnrastructure app, I am trying to convert the following fields timestamp which is the integer8 windows NT timestamp to epoch or other readable time after my query runs. The timestamp is the number of 100-nanoseconds intervals (1 nanosecond = one billionth of a second) since Jan 1, 1601 UTC&lt;/P&gt;

&lt;P&gt;Anyone have any experience with this?  Would be much appreciated!&lt;/P&gt;

&lt;P&gt;field = msDS-LastSuccessfulInteractiveLogonTime&lt;BR /&gt;
timestamp returned = 129878945338632316&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 12:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133343#M27395</guid>
      <dc:creator>dwithers</dc:creator>
      <dc:date>2014-04-16T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133344#M27396</link>
      <description>&lt;P&gt;Hi dwithers,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | head 1 | eval AD_time="129878945338632316" 
| eval myTime=AD_time/1000000000 
| eval myNiceTime=strftime(myTime, "%F %H:%M:%S.%3Q") 
| table myNiceTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the first line is only to setup the AD like time field, the second eval will 'convert' it into epoch time and the last eval will create a nice human readable time stamp out of it.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 12:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133344#M27396</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-16T12:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133345#M27397</link>
      <description>&lt;P&gt;small update: are you sure these are nano seconds? Looks like there is one number missing in your example....&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 12:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133345#M27397</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-16T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133346#M27398</link>
      <description>&lt;P&gt;Actually, i just found  it's 64bit in of the number of 100 nanoseconds since 1/1/1601&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133346#M27398</guid>
      <dc:creator>dwithers</dc:creator>
      <dc:date>2014-04-16T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133347#M27399</link>
      <description>&lt;P&gt;he current LDAP time = (time()+11644473600)*10000000;&lt;BR /&gt;
You can replace time() with any UNIX timestamp or strtotime("15 November 2012")   is the math if ound around it&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133347#M27399</guid>
      <dc:creator>dwithers</dc:creator>
      <dc:date>2014-04-16T13:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert AD LDAP Timestamp to Epoch or other readable date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133348#M27400</link>
      <description>&lt;P&gt;eval myTime=AD_time/10000000 - 11644473600&lt;/P&gt;

&lt;P&gt;got it.  Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-AD-LDAP-Timestamp-to-Epoch-or-other-readable-date/m-p/133348#M27400</guid>
      <dc:creator>dwithers</dc:creator>
      <dc:date>2014-04-16T13:42:33Z</dc:date>
    </item>
  </channel>
</rss>

