<?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>question Re: Morphilines add some minutes in convertTimestamp in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Morphilines-add-some-minutes-in-convertTimestamp/m-p/55019#M61316</link>
    <description>&lt;DIV class="post-text"&gt;&lt;P&gt;At last I solved my problem, apparently morphilines have a problem with high precision dates, they simply eliminate the accuracy after seconds and worked correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;convertTimestamp {&lt;BR /&gt;field : fechaError&lt;BR /&gt;inputFormats : ["yyyy-MM-dd'T'HH:mm:ss.SSS", "yyyy-MM-dd"]&lt;BR /&gt;inputTimezone : America/Bogota&lt;BR /&gt;outputFormat : "yyyy-MM-dd'T'HH:mm:ss'Z'"&lt;BR /&gt;outputTimezone : UTC&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 May 2017 20:33:53 GMT</pubDate>
    <dc:creator>BVC</dc:creator>
    <dc:date>2017-05-24T20:33:53Z</dc:date>
    <item>
      <title>Morphilines add some minutes in convertTimestamp</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Morphilines-add-some-minutes-in-convertTimestamp/m-p/54828#M61315</link>
      <description>&lt;P&gt;Hi, i have a problem with morphilines and solr, i can send events logs with flume and morphilines to store in solr for later processing but this event log have a time stamp with this format "2017-05-17T15:20:00.848528" in morphilines, i added the convertTimestamp fragment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
convertTimestamp {
field : fechaError
inputFormats : ["yyyy-MM-dd'T'HH:mm:ss.SSS", "yyyy-MM-dd"]
inputTimezone : America/Los_Angeles
outputFormat : "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
outputTimezone : UTC
}
}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This work correctly for store data in correct format for Solr but this convertion add some minutes (8 - 15) to real date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Real date : 2017-05-17T08:46:45.552554&lt;BR /&gt;After convertion : 2017-05-17T08:55:57.554Z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I using this expression for extract the value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%{TIMESTAMP_ISO8601:fechaError}&lt;/PRE&gt;&lt;P&gt;I try change de inputTimezone and outputTimezone and the inputLocale and outputLocale puting the same value but the result is esqueals or worst&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:37:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Morphilines-add-some-minutes-in-convertTimestamp/m-p/54828#M61315</guid>
      <dc:creator>BVC</dc:creator>
      <dc:date>2022-09-16T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Morphilines add some minutes in convertTimestamp</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Morphilines-add-some-minutes-in-convertTimestamp/m-p/55019#M61316</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;At last I solved my problem, apparently morphilines have a problem with high precision dates, they simply eliminate the accuracy after seconds and worked correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;convertTimestamp {&lt;BR /&gt;field : fechaError&lt;BR /&gt;inputFormats : ["yyyy-MM-dd'T'HH:mm:ss.SSS", "yyyy-MM-dd"]&lt;BR /&gt;inputTimezone : America/Bogota&lt;BR /&gt;outputFormat : "yyyy-MM-dd'T'HH:mm:ss'Z'"&lt;BR /&gt;outputTimezone : UTC&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2017 20:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Morphilines-add-some-minutes-in-convertTimestamp/m-p/55019#M61316</guid>
      <dc:creator>BVC</dc:creator>
      <dc:date>2017-05-24T20:33:53Z</dc:date>
    </item>
  </channel>
</rss>

