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.

How can I write out ControllerStatusReportingTask logs to a different file

How can I write out ControllerStatusReportingTask logs to a different file

Explorer

I tried following this guide, but it didn't work.

https://community.hortonworks.com/articles/79849/nifi-monitoring-controllerstatusreportingtask-with....

I just need to output ControllerStatusReportingTask logs into a separate file in my logs directory.

Attached is mylogback.xml logback.xml

Any ideas?

John

5 REPLIES 5
Highlighted

Re: How can I write out ControllerStatusReportingTask logs to a different file

Explorer

Also, the reporting logs no longer appear in the nifi-app.log but they do not populate in the new file specified in the logback.xml

I am using Apache nifi 1.3.0.

Highlighted

Re: How can I write out ControllerStatusReportingTask logs to a different file

New Contributor

I'm seeing the same behaviour in Nifiv1.4.0

Highlighted

Re: How can I write out ControllerStatusReportingTask logs to a different file

New Contributor

When doing the logging you have to specify the class path's. See below. Note the class options in the appender, encoder and rollingPolicy elements.

Here

Highlighted

Re: How can I write out ControllerStatusReportingTask logs to a different file

Master Guru

@John T

You did not specify the rolling appender type in your new appender. Since the appender entry is invalid it is not being used.

Modify your appender line to look like this:

<appender name="5MINUTES_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">

Thank you,

Matt

Highlighted

Re: How can I write out ControllerStatusReportingTask logs to a different file

New Contributor

Do we have to append ".Processors" to the logger name as <logger name="org.apache.nifi.controller.ControllerStatusReportingTask.Processors", instead of <logger name="org.apache.nifi.controller.ControllerStatusReportingTask"?

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