Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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
Highlighted

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

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.

Don't have an account?
Coming from Hortonworks? Activate your account here