Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

nifi logback.xml persistance

avatar
New Contributor

Hi,

 

I am unfamiliar with Cloudera and tasked with enforcing a log retention policy on all services, currently working in NIFI. Our NIFIis part of CFM-2.2.3.2.

I have changes to make to logback.xml, but they are overwritten when a new process directory is created. What is the source of the config.zip that is downloaded to create the process directory and how can I rebuild config.zip to include a copy of logback.xml with my changes? I couldn't find this in the docs I had access to, nor clearly in the cloudera logs I examined. 

 

Many thanks in advance!

1 ACCEPTED SOLUTION

avatar
Community Manager
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
5 REPLIES 5

avatar
Rising Star

logback.xml configuration must be edited with Cloudera Manager, You need to go to NiFi Service > Configuration and search for logback.xml. These property will preserve the custom logback.xml changes and will be added to the logback.xml created during process start  

avatar
Expert Contributor

Hello,

 

You need to change this on Cloudera Manager > NiFi > Configs > Search for "logback_safety_valve"

Paste the complete contents of the logback.xml in logback_safety_valve

avatar
New Contributor

Thanks for the direction.

Is there anyway to do this via command line/api call?

I'm maintaining code for deployment of clusters including this service to be deployed by other people. I would like this set "out of the box" for our config by way of a shell script or ansible

avatar
Rising Star

In the following link you can find how to call Cloudera Manager API to modify Safety valves:
https://docs.cloudera.com/cdp-private-cloud-base/latest/configuring-clusters/topics/cm-api-set-snipp...

 

avatar
Community Manager
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login