summaryrefslogtreecommitdiffstats
path: root/onap/portal/README.md
diff options
context:
space:
mode:
authorVidya Shinde <vidya.shinde@amdocs.com>2017-08-11 18:07:27 +0530
committerVidya Shinde <vidya.shinde@amdocs.com>2017-08-22 12:43:51 +0530
commit747a2a7feb8fb1921da601ab6b4611f3ca90070e (patch)
tree9421c0bbc0c4e18813248c87f1e8e60b7392bc29 /onap/portal/README.md
parenta8378beb078950ba9ae9e72465da31886616291c (diff)
[LOG] Add canonicalization for Portal logs
Canonicalization of path for log provider configuration file and log files Change-Id: Ia669aaff2b9516a7da97c64fe76cdd0297a5dfc6 Issue-ID: LOG-26 Signed-off-by: Vidya Shinde <vidya.shinde@amdocs.com>
Diffstat (limited to 'onap/portal/README.md')
-rw-r--r--onap/portal/README.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/onap/portal/README.md b/onap/portal/README.md
new file mode 100644
index 0000000..7d473d2
--- /dev/null
+++ b/onap/portal/README.md
@@ -0,0 +1,39 @@
+##############################################################################################################################################
+## Portal Logging Configuration
+=================================================================================================
+Portal has two docker containers- portal and mariadb.
+The canonical logging implementation is only done for the container, portal.
+Portal has two sub-modules portal-be and portal-db each one has its own separate logback.xml file.
+Canonical logs will be generated at /var/log/onap/portal/
+=================================================================================================
+## Instructions for deployment
+=================================================================================================
+### Portal logging deployment for sub-module portal-be
+-------------------------------------------------------------------------------------------------
+ 1. Log provider file is available at the path, /opt/apache-tomcat-8.0.37/webapps/ECOMPPORTAL/WEB-INF/classes, in the container.
+ 2. Copy the canonical logback.xml from 'portal-be' directory (of gerrit) into the path mentioned in step 1.
+ 3. Create the canonical path for logs, /var/log/onap/portal/portal-be on the host VM.
+ 4. Provide write permissions for "others" users for directory created in step 3.
+ 5. Volume-Mount: The portal container requires one host path mapped as volume in the container
+
+ 5.1. Log file path:
+ Host path - /var/log/onap/portal/portal-be/ mapped to
+ Container path - /var/log/onap/portal/portal-be/
+ 5.2. Log provider file path:
+ Note: Log provider path cannot be configured externally as it is bundled inside a WAR.
+---------------------------------------------------------------------------------------------------------------------------------------------
+### Portal logging deployment for sub-module portal-db
+-------------------------------------------------------------------------------------------------
+ 1. Log provider file is available at the path, /opt/apache-tomcat-8.0.37/webapps/ECOMPDBCAPP/WEB-INF/classes, in the container.
+ 2. Copy the canonical logback.xml from 'portal-db' directory (of gerrit) into the path mentioned in step 1.
+ 3. Create the canonical path for logs, /var/log/onap/portal/portal-db on the host VM.
+ 4. Provide write permissions for "others" users for directory created in step 3.
+ 5. Volume-Mount: The portal container requires one host path mapped as volume in the container
+
+ 5.1. Log file path:
+ Host path - /var/log/onap/portal/portal-db/ mapped to
+ Container path - /var/log/onap/portal/portal-db/
+ This is done so that the log files are also visible in the VM and then to the filebeat.
+ 5.2. Log provider file path:
+ Note: Log provider path cannot be configured externally as it is bundled inside a WAR.
+##############################################################################################################################################