<?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: Read Kafka timestamp as an attribute in Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-Kafka-timestamp-as-an-attribute-in-Nifi/m-p/202467#M76898</link>
    <description>&lt;P&gt;This is not currently supported, but there is a JIRA for this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-4487" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-4487&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Part of the issue is that this would only make sense if you are consuming 1 message per flow file, which generally is poor for performance. So what do you do when you consume 10k messages into a single flow file? For ConsumeKafkaRecord then the potentially the timestamp could be put into a field in each record, assuming the schema had a timestamp field, but for regular ConsumeKafka there would be no way to handle it.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 23:59:17 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2018-04-05T23:59:17Z</dc:date>
    <item>
      <title>Read Kafka timestamp as an attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-Kafka-timestamp-as-an-attribute-in-Nifi/m-p/202466#M76897</link>
      <description>&lt;P&gt;Hi, Is there a way to consume a kafka message along with its timestamp in Nifi using the Consumekafka processor?&lt;/P&gt;&lt;P&gt;e.g. we can consume the kafka message and see the time stamp by adding the property print.timestamp=true . The output looks something like this on the console &lt;/P&gt;&lt;P&gt;CreateTime:1522893745217 test_message&lt;/P&gt;&lt;P&gt;I can't seem to access this variable 'CreateTime'. I've tried using ${kafka.CreateTime} in the Updateattribute process but it doesnt work. Please let me know if there is way to do this as adding the custom timestamp (now()) is not an option in our case.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:03:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-Kafka-timestamp-as-an-attribute-in-Nifi/m-p/202466#M76897</guid>
      <dc:creator>te04_0172</dc:creator>
      <dc:date>2018-04-05T13:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read Kafka timestamp as an attribute in Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-Kafka-timestamp-as-an-attribute-in-Nifi/m-p/202467#M76898</link>
      <description>&lt;P&gt;This is not currently supported, but there is a JIRA for this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-4487" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-4487&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Part of the issue is that this would only make sense if you are consuming 1 message per flow file, which generally is poor for performance. So what do you do when you consume 10k messages into a single flow file? For ConsumeKafkaRecord then the potentially the timestamp could be put into a field in each record, assuming the schema had a timestamp field, but for regular ConsumeKafka there would be no way to handle it.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 23:59:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-Kafka-timestamp-as-an-attribute-in-Nifi/m-p/202467#M76898</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2018-04-05T23:59:17Z</dc:date>
    </item>
  </channel>
</rss>

