Skip to main content
AlokKumar
Gold ⭐️
Nov 9, 2026 6:46 AM UTC
Solved

What is the purpose of Lineage Duration in View Data Provenance

Hello 
We have a pretty big flow in NiFi (NiFi 2.8.0) having many processors and my requirement is to determine how much time a particular request took. Most of the request starts with a HandleHttpRequest Processor and has some 250 processors in between them (some in the same process group and some in different process group communicating through Input and Output Ports).

Sometimes we notice the request to be taking 1 minute to return the response and sometimes as less as 10 sec.

So want to diagnose what is taking time.

How do I determine this?

I went to View Data provenance of a particular processor and then View Details and there in Details section I see some properties like-- Time, Event Duration and Lineage Duration (it is showing <1 sec for both these last two fields ). So I am not able to check accurate as it shows less than symbol. 
Which of these will represent the total time it took end to end (HandleHttpRequest to HandleHttpResponse). Also any rules which processor I need to do view data provenance for this or I can select any random processor in between. 

What is the purpose of “Show Lineage”? When I click this, it shows symbols of many processors connected. While for small process groups like having say 5 processors, I see all of them but for my large app which had 250 processors I am not able to understand this. Does it show only some processors depending on where I clicked?

MattWho
MattWhoAnswer
Titanium ⭐️⭐️
Nov 10, 2026 2:50 PM UTC

​@AlokKumar 

NiFi provenance lineage tracks the life of a NiFi FlowFile from creation to drop. 

A NiFi FlowFile consist of two parts:

  1. FlowFile Attributes/Metadata - Stored in the flowfile repository. Includes information about the FlowFile (size, name, claim, claim offset,etc)
  2. FlowFile content - Stored in a content claim. A content claim is immutable. A single content claim may contain the content for 1 too many FlowFiles.

A FlowFile as it progresses through your dataflow is likely to go through numerous transformations.  Maybe you add attributes to it, maybe you modify its content (new content is written to a new content claim and FlowFile attributes/metadata is updated to point at that new claim and offset), etc.  But sometimes a processor may create an entirely new child FlowFile(s).    For example consider a SplitText processor that can split the content into many new FlowFiles or a MergeContent that can combine multiple FlowFiles into a single new FlowFile.   This is where NiFi’s lineage graph can show parents and child FlowFiles. 

So you have two ways of using the lineage graph.  Search the data provenance starting at dataflow termination point at end your dataflow.  Then start “Find Parents” to track backwards through the parent FlowFiles to point of source FlowFile creation (no more parents).  The other option is starting at source processor and clicking “Expand” to until you reach the destination (with this route you may end up see a FlowFile that splits and goes multiple routes or one FlowFile that becomes many.  Along the bottom of the the Lineage graph is a slide bar that you can manipulate and can be used to see the full lineage time by looking at source timestamp at beginning of the full lineage graph and the final timestamp at the end of the lineage.

I typically look back from point of termination

Reference documentation:
https://nifi.apache.org/nifi-docs/user-guide.html#viewing-flowfile-lineage

 

There is are also a couple provenance reporting tasks available that can  send Provenance events somewheer else where you can built your own reporting, reporting, analytics around that data.

Hope you find this helpful,

Matt

4 replies

MattWho
Titanium ⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️
Nov 10, 2026 2:50 PM UTC

​@AlokKumar 

NiFi provenance lineage tracks the life of a NiFi FlowFile from creation to drop. 

A NiFi FlowFile consist of two parts:

  1. FlowFile Attributes/Metadata - Stored in the flowfile repository. Includes information about the FlowFile (size, name, claim, claim offset,etc)
  2. FlowFile content - Stored in a content claim. A content claim is immutable. A single content claim may contain the content for 1 too many FlowFiles.

A FlowFile as it progresses through your dataflow is likely to go through numerous transformations.  Maybe you add attributes to it, maybe you modify its content (new content is written to a new content claim and FlowFile attributes/metadata is updated to point at that new claim and offset), etc.  But sometimes a processor may create an entirely new child FlowFile(s).    For example consider a SplitText processor that can split the content into many new FlowFiles or a MergeContent that can combine multiple FlowFiles into a single new FlowFile.   This is where NiFi’s lineage graph can show parents and child FlowFiles. 

So you have two ways of using the lineage graph.  Search the data provenance starting at dataflow termination point at end your dataflow.  Then start “Find Parents” to track backwards through the parent FlowFiles to point of source FlowFile creation (no more parents).  The other option is starting at source processor and clicking “Expand” to until you reach the destination (with this route you may end up see a FlowFile that splits and goes multiple routes or one FlowFile that becomes many.  Along the bottom of the the Lineage graph is a slide bar that you can manipulate and can be used to see the full lineage time by looking at source timestamp at beginning of the full lineage graph and the final timestamp at the end of the lineage.

I typically look back from point of termination

Reference documentation:
https://nifi.apache.org/nifi-docs/user-guide.html#viewing-flowfile-lineage

 

There is are also a couple provenance reporting tasks available that can  send Provenance events somewheer else where you can built your own reporting, reporting, analytics around that data.

Hope you find this helpful,

Matt

Translate
AlokKumar
AlokKumarAuthor
Gold ⭐️
Nov 11, 2026 7:39 AM UTC

Thank you ​@MattWho  With respect to “NiFi provenance lineage tracks the life of a NiFi FlowFile from creation to drop. ” I wanted to ask one more thing.
My flow has some InvokeHttp and I think the flowfile’s UUID is getting changed post that as processors following it gets connected to the “Response” relationship of InvokeHttp. Can it affect the Lineage Duration in the sense that I won’t be having full time it took end to end but from the point flowfile proceeded after InvokeHttp. I had one doubt related to Types of Data Provenance related to InvokeHttp as well. I see some types like DROP, CLONE,FETCH, FORK, SEND for one incoming request to InvokeHttp. What is the difference between them. Can you give any information as I tried to look at https://nifi.apache.org/components/org.apache.nifi.processors.standard.InvokeHTTP/ but could not get information related to this.
Also many times the Event Duration or Lineage Duration shows <1 Sec Due to this I am not able to understand the exact duration like for example if it was 200 milliseconds or 550 milliseconds. 

Translate
vafs
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Nov 10, 2026 3:15 PM UTC

Hello ​@AlokKumar, 

Thanks for being part of our community. 

The time you want to check is “Lineage Duration”, this should show the entire flowfile time since the beginning. 
Now, you should check this from the last processor so you can have the complete history. 

 

If you want to check the entire execution time with more details, you could add some log that update that. 
For example, something like this: 
After HandleHttpRequest, add an UpdateAttribute with a property such as “request_start_time = ${now():toNumber()}”. Before entering the last processor, calculate the time with “${now():toNumber():minus(${request_start_time})}” and save it on a log. 

 

About the “Show Lineage”, it will show a map of the flowfile passing on the processors, it will just show the processors that it actually passed by. 
Check on the latest processor and use the slider at the bottom to move between the time. 

 

Now, the reason on why some take more or less time, can be checked using the “Status History” on the Process Group, this will show some more information about the queuing, processing and more. That information could be useful. 

Regards,
Andrés Fallas
-- Was your question answered?
Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.

Translate
vafs
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Nov 10, 2026 3:16 PM UTC

Didn’t saw ​@MattWho already answered this. Check that first. 

Translate