<?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 NT Epoch Time with props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162621#M98070</link>
    <description>&lt;P&gt;Based on the two magic numbers he's referring to tenths of microseconds since January 1st, 1601... used in some MS applications.&lt;/P&gt;

&lt;P&gt;You're not going to succeed with props.conf, its power ends with formatting and regular expressions - those cannot do maths.&lt;BR /&gt;
I've faced the same thing a while back: &lt;A href="http://answers.splunk.com/answers/64504/how-to-apply-an-arbitrary-offset-to-the-timestamp-at-index-time"&gt;http://answers.splunk.com/answers/64504/how-to-apply-an-arbitrary-offset-to-the-timestamp-at-index-time&lt;/A&gt;&lt;BR /&gt;
Back then I worked on the people producing my data, eventually getting them to output intelligible timestamps.&lt;BR /&gt;
In your case you might be able to tell the SQL query to do some conversion before the data even gets to Splunk.&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2014 20:43:24 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-05-13T20:43:24Z</dc:date>
    <item>
      <title>Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162619#M98068</link>
      <description>&lt;P&gt;I'm using db connect to access our SQL SCCM database which stores timestamps as NT EPOCH.  I want to use props.conf to have the data indexed with the time field converted for human readability.  From the search line I can easily leverage the strftime command to get the date I need.  However, due to how NT Epoch works, that same command doesn't work in props.conf.&lt;/P&gt;

&lt;P&gt;Here is the stanza for my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::UBERSCCMSERVER]
TIME_PREFIX = (?i)^(?:[^ ]* ){8}\w+=(?P&amp;lt;FIELDNAME&amp;gt;.+)
MAX_TIMESTAMP_LOOKAHEAD = 0
TIME_FORMAT =/10000000-11644473600,"%m-%d-%Y %H:%M:%S"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anyone know how to modify my TIME_FORMAT line to work properly with NT Epoch?&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 18:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162619#M98068</guid>
      <dc:creator>xdp4</dc:creator>
      <dc:date>2014-05-13T18:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162620#M98069</link>
      <description>&lt;P&gt;Can you provide a referent to NT Epoch?  Not sure which epoch time you are referring to.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 20:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162620#M98069</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-05-13T20:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162621#M98070</link>
      <description>&lt;P&gt;Based on the two magic numbers he's referring to tenths of microseconds since January 1st, 1601... used in some MS applications.&lt;/P&gt;

&lt;P&gt;You're not going to succeed with props.conf, its power ends with formatting and regular expressions - those cannot do maths.&lt;BR /&gt;
I've faced the same thing a while back: &lt;A href="http://answers.splunk.com/answers/64504/how-to-apply-an-arbitrary-offset-to-the-timestamp-at-index-time"&gt;http://answers.splunk.com/answers/64504/how-to-apply-an-arbitrary-offset-to-the-timestamp-at-index-time&lt;/A&gt;&lt;BR /&gt;
Back then I worked on the people producing my data, eventually getting them to output intelligible timestamps.&lt;BR /&gt;
In your case you might be able to tell the SQL query to do some conversion before the data even gets to Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 20:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162621#M98070</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-13T20:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162622#M98071</link>
      <description>&lt;P&gt;Yeah, I'd try CAST or CONVERT to DATETIME.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 01:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162622#M98071</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2014-05-14T01:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162623#M98072</link>
      <description>&lt;P&gt;See &lt;A href="http://www.epochconverter.com/epoch/ldap-timestamp.php"&gt;http://www.epochconverter.com/epoch/ldap-timestamp.php&lt;/A&gt; for some background on MS Windows NT time format.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 11:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162623#M98072</guid>
      <dc:creator>xdp4</dc:creator>
      <dc:date>2014-05-14T11:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert NT Epoch Time with props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162624#M98073</link>
      <description>&lt;P&gt;I am doing the same thing with the SCCM database using dbx.  I have my timestamp working but I'm trying to figure out how to convert a few of the other SCCM date fields that are EPOCH.  Not sure where I should do those conversions.  props.conf? Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jan 2015 04:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-NT-Epoch-Time-with-props-conf/m-p/162624#M98073</guid>
      <dc:creator>bwindham</dc:creator>
      <dc:date>2015-01-25T04:21:56Z</dc:date>
    </item>
  </channel>
</rss>

