Support Questions
Find answers, ask questions, and share your expertise

How count a total numbers of files and total numbers of lines using NiFi

Explorer

Hi Everyone, I collect several files, each file contains several lines. I want to increment a counter that will give me the total number of files collected and a counter that will give me the total number of lines contained in all the files.

Can I get the number of documents and the number of lines of the documents by using the CountText processor. If yes, how to configure it. If no, which processor can allow me to get it.