Project

General

Profile

Feature #22588

Updated by Lukas Zapletal almost 7 years ago

Foreman will soon get ability to log to JSON format natively. 

 Candlepin supports ability to configure logging pattern to arbitrary string: http://www.candlepinproject.org/docs/candlepin/logging.html 

 Pulp team was asked to add the same configuration option: https://pulp.plan.io/issues/3372 

 After this is added to pulp, we need an installer option in katello scenario called for example @log_format@. When set to @json@ instead of @plain@, installer will configure foreman components (rails, proxy) to log to JSON and for candlepin/pulp it will create a pseudo-JSON logging pattern that will be easily parseable for 3rd parties: 

     { <pattern>{ "message": "%m", "request": "%X{requestUuid}", "org": "%X{org}", "correlation": "%X{csid}" }%n 

 }%n</pattern>  

 Similarly for Pulp (it will likely have different replacement keys). 

    

Back