Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

NiFi - Using EvaluateJsonPath on flowfiles containing multiple records.


Hello all

I have a NiFi data flow that has flowfiles containing multiple json records (with exactly the same received time) and I'm trying to extract the timestamp as a flowfile attribute as follows:


All the received times match as I'm using a PartitionRecord processor prior to EvaluateJsonPath, I have confirmed they are identical.

I am aware that I can split > extract > merge but I am trying to avoid that due to the high volume of data passing through this flow, is there any way to just extract the first timestamp for all the records in a single flowfile using EvaluateJsonPath? or another record processor?


I am also trying to avoid having to use ExtractText and regex to pull the timestamp, again due to the volume of data in the flow.


There is an existing flow working in our production environment using plain/text and regex etc. I am trying to re-design using record processing to improve efficiency. 


any assistance welcome. 






Rising Star

Hi ,

Since there is no json structure mentioned in the question , Could you please check the JOLT nifi processor . Refer the jolt specification .


Using Jolt nifi processor , we can perform many transformations from json file.




Thanks for the reply, is there a way to use Jolt to extract to flowfile attribute?



If you can share a source json, it may help with more specific guidance in the community.


Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.