<?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: apache nifi to elasticsearch convert time to date in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176471#M138721</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/215236/apache-nifi-to-elasticsearch-convert-time-to-date.html#"&gt;@Thuy Le&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In order for the timestamp to work it has to be in the correct format which elasticsearch expects (default ISO 8601).&lt;/P&gt;&lt;P&gt;Here is a good article about timestamp manipulation in nifi:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://community.hortonworks.com/questions/113959/use-nifi-to-change-the-format-of-numeric-date-and.html"&gt;https://community.hortonworks.com/questions/113959/use-nifi-to-change-the-format-of-numeric-date-and.html&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Then in elasticsearch, you need to create a mapping which tells the index which field is the timestamp:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://www.elastic.co/guide/en/elasticsearch/hadoop/current/mapping.html#mapping-date"&gt;https://www.elastic.co/guide/en/elasticsearch/hadoop/current/mapping.html#mapping-date&lt;/A&gt;
&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://www.elastic.co/guide/en/elasticsearch/reference/2.0/mapping-date-format.html#built-in-date-formats"&gt;https://www.elastic.co/guide/en/elasticsearch/reference/2.0/mapping-date-format.html#built-in-date-formats&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;If this answer is helpful, please click ACCEPT to mark your question resolved.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 18:08:20 GMT</pubDate>
    <dc:creator>stevenmatison</dc:creator>
    <dc:date>2018-08-31T18:08:20Z</dc:date>
    <item>
      <title>apache nifi to elasticsearch convert time to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176470#M138720</link>
      <description>&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt;I am trying to insert json elastichsearch use apache nifi&lt;/P&gt;&lt;P&gt;{"&lt;EM&gt;&lt;STRONG&gt;submit_date&lt;/STRONG&gt;&lt;/EM&gt;": "2017-09-11 12:28:57.0", "request_type": "change", 
"origin": "monitoring", "description": "Start Event Process from 
Zabbix", "&lt;EM&gt;&lt;STRONG&gt;timestamp&lt;/STRONG&gt;&lt;/EM&gt;":"2018-08-30 08:16:18.970+0000"}&lt;/P&gt;&lt;P&gt;I insert this to elastichsearch, however, elastichsearch can understand submit_date and timestamp is datetime. &lt;EM&gt;&lt;STRONG&gt;So, how to insert time to  elastichsearch?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 17:02:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176470#M138720</guid>
      <dc:creator>thuylevn</dc:creator>
      <dc:date>2018-08-31T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi to elasticsearch convert time to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176471#M138721</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/215236/apache-nifi-to-elasticsearch-convert-time-to-date.html#"&gt;@Thuy Le&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In order for the timestamp to work it has to be in the correct format which elasticsearch expects (default ISO 8601).&lt;/P&gt;&lt;P&gt;Here is a good article about timestamp manipulation in nifi:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://community.hortonworks.com/questions/113959/use-nifi-to-change-the-format-of-numeric-date-and.html"&gt;https://community.hortonworks.com/questions/113959/use-nifi-to-change-the-format-of-numeric-date-and.html&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Then in elasticsearch, you need to create a mapping which tells the index which field is the timestamp:&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://www.elastic.co/guide/en/elasticsearch/hadoop/current/mapping.html#mapping-date"&gt;https://www.elastic.co/guide/en/elasticsearch/hadoop/current/mapping.html#mapping-date&lt;/A&gt;
&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;A href="https://www.elastic.co/guide/en/elasticsearch/reference/2.0/mapping-date-format.html#built-in-date-formats"&gt;https://www.elastic.co/guide/en/elasticsearch/reference/2.0/mapping-date-format.html#built-in-date-formats&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;If this answer is helpful, please click ACCEPT to mark your question resolved.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 18:08:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176471#M138721</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-31T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi to elasticsearch convert time to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176472#M138722</link>
      <description>&lt;P&gt;Hi @Steven Matision,&lt;/P&gt;&lt;P&gt;Thank you so much for your suggestions. I fixed that issue.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 01:12:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176472#M138722</guid>
      <dc:creator>thuylevn</dc:creator>
      <dc:date>2018-09-01T01:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: apache nifi to elasticsearch convert time to date</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176473#M138723</link>
      <description>&lt;P&gt;Can you please share how?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 21:51:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apache-nifi-to-elasticsearch-convert-time-to-date/m-p/176473#M138723</guid>
      <dc:creator>yaara66</dc:creator>
      <dc:date>2018-12-03T21:51:34Z</dc:date>
    </item>
  </channel>
</rss>

