Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

Solved Go to solution

Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

New Contributor

hi all,

I have business case put data to Elasticsearch,

In updateAttribute, I convert date to datetime

${submit_date:toDate():format("yyyy-MM-dd HH:mm:ss.SSSZ")}
${now():toDate():format("yyyy-MM-dd HH:mm:ss.SSSZ"))}


however, data on Elasticsearch became to string?

Do you know how to fix it?

Many thanks,

1.png2-updateattribute.png3.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

Super Collaborator
3 REPLIES 3

Re: Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

Super Collaborator

Re: Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

New Contributor

Hi @Steven Matision,

Thank you so much for your suggestions. I fixed that issue.

Highlighted

Re: Apache Nifi to Elasticsearch (Wrong to insert datetime to Elasticsearch)

Super Collaborator

@Thuy Le great job! Glad you got it working.

Don't have an account?
Coming from Hortonworks? Activate your account here