Support Questions

Find answers, ask questions, and share your expertise

Nifi - How to capture a seperate log file for each/selected nifi processors ?

avatar
Rising Star

nifi - how to configure a logback.xml in nifi to capture seperate log files for each nifi processor in terms of debug and error mode ?? Thanks .

3 REPLIES 3

avatar
Master Guru

You definitely could do this if you wanted to, but it would probably become a bit unmanageable when using a significant number of processors.

This post from yesterday talks about how to create a separate log file for LogAttribute, it would be the same for any other processors:

https://community.hortonworks.com/questions/63071/in-apache-ni-fi-how-can-i-log-all-the-flowfile-att...

avatar
Guru

avatar
Guru

This post will show you how to very quickly (seconds) build a flow that logs nifi at the processor and error level (or however you wish to customize). Very handy for development and production as well:

https://community.hortonworks.com/articles/65027/nifi-easy-custom-logging-of-diverse-sources-in-mer....