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.