Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
Rising Star

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

avatar
Super Guru
3 REPLIES 3

avatar
Super Guru

avatar
Rising Star

Hi @Steven Matision,

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

avatar
Super Guru

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