Support Questions

Find answers, ask questions, and share your expertise

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

@springtide_ Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

View solution in original post

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

@springtide_ Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: