Support Questions

Find answers, ask questions, and share your expertise

Adding DEBUG line in logback.xml does not cause DEBUG logs to appear

Rising Star

We have two nodes that Nifi is running on in our cluster.

Both logback.xml files have these lines below:

<!-- valid logging levels: TRACE, DEBUG, INFO, WARN, ERROR -->

<logger name="org.apache.nifi" level="INFO"/>

<logger name="org.apache.nifi.processors" level="WARN"/>

<logger name="org.apache.nifi.processors.standard.LogAttribute" level="INFO"/>

<logger name="org.apache.nifi.controller.repository.StandardProcessSession" level="WARN" />

<logger name="org.apache.nifi.processors.standard.TailFile" level="DEBUG"/>

Only one of the nodes is producing DEBUG logs for the TailFile processors. Is there anything else that needs to be set for this to work? I know I dont need to restart Nifi but havent done that yet.

1 REPLY 1

Super Collaborator

Hi @Eric Lloyd,

Could you please check TailFile processor is configured to run on "Master Only" or All nodes ( in the schuduling tab).

if that is master only, then since the processor is not running on the 2nd host you wont get any log associated to that.

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