Re: JoltTransformJson issues with date enrichment

2018-08-07 Thread Juan Sequeiros
Matt thanks for the quick reply. So I changed the attribute name and set it to now() and it worked. I then changed it back to ${now():format("-MM-dd HH:mm",'Z')} and it worked!!! too Either I did have something funky with my attribute name on the spec or I wonder if the setting in

Re: JoltTransformJson issues with date enrichment

2018-08-07 Thread Matt Burgess
Juan, What version of NiFi are you using? I tried with the latest master, using a GenerateFlowFile (where I set the attribute using the now() expression) into JoltTransformJSON with your spec above, and it works fine. Are you sure there's not a double-quote missing somewhere, or something extra

JoltTransformJson issues with date enrichment

2018-08-07 Thread Juan Sequeiros
Hello all, I am trying to "enrich" my json. My problem happens when I try to give it a timestamp. My requirement is to give it time in this format: ${now():format("-MM-dd HH:mm",'Z')} So at the top level and every element of my json should have an entry called EX: "createTime":"2018-08-07