Merge "log RI kubernetes and docker devops"
[logging-analytics.git] / onap / sdnc / README.md
1 ####################################################################################################################################################################
2 ## SDNC Logging Configuration
3 ====================================================================================================================================================================
4 SDNC has four docker containers -sdnc_dgbuilder_container, sdnc_portal_container, sdnc_controller_container,sdnc_db_container.
5 The canonical logging implementation is only done for the container, sdnc_controller_container.
6 Canonical logs will be generated at /var/log/onap/sdnc/
7 ====================================================================================================================================================================
8 ## Instructions for deployment
9 ====================================================================================================================================================================
10   1. Create the canonical path for log provider, /etc/onap/sdnc/conf.d/,on the host VM.
11   2. Copy the canonical \91org.ops4j.pax.logging.cfg\92 from 'sdnc' directory (of gerrit) into the path created in step 1.
12   3. Create the canonical path for logs, /var/log/onap/sdnc, on the host VM.
13   4. Provide write permissions for "others" users for directory created in step 3.
14   5. Volume-Mount: The sdnc container requires two host paths mapped as volume in the container
15         
16       5.1. Log file path:
17         Host path -      /var/log/onap/sdnc/ mapped to
18         Container path - /var/log/onap/sdnc/
19       5.2. Log provider file path: 
20           Host Path         : /etc/onap/sdnc/conf.d/org.ops4j.pax.logging.cfg mapped to
21                 Container path    : ${karaf_data}/etc/org.ops4j.pax.logging.cfg
22                 Note: The current value of ${karaf_data} is /opt/opendaylight/distribution-karaf-0.4.2-Beryllium-SR2/data, which may change depending upon the karaf version.
23 ####################################################################################################################################################################