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

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

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.

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

New Contributor

I'm seeing the same behaviour in Nifiv1.4.0

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

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

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"?