aboutsummaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/scripts
diff options
context:
space:
mode:
authorWojciech Sliwka <wojciech.sliwka@nokia.com>2019-06-07 15:53:08 +0200
committerWojciech Sliwka <wojciech.sliwka@nokia.com>2019-06-07 15:53:08 +0200
commit2625de9e904e1389a9d99e5cd90f9f462d0fec72 (patch)
treee1340e7090cc7a898bbc0af7afa9090bdc43b900 /deliveries/src/main/scripts
parentdd3ba9800ec14898f50858ecd67db0f9245ffc01 (diff)
Send logs to logstash
Removing logback from vid container as it is not used at all Setting eelf variable to read configuration from /tmp/logback.xml -place which is mounted in oom /tmp/logback.xml has logpath set to /var/log/onap/ Change-Id: I8045e1d63f8f2b7574684f0758475555463fe8b1 Issue-ID: VID-485 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
Diffstat (limited to 'deliveries/src/main/scripts')
-rwxr-xr-xdeliveries/src/main/scripts/localize_logback.sh17
-rwxr-xr-xdeliveries/src/main/scripts/localize_war.sh5
2 files changed, 0 insertions, 22 deletions
diff --git a/deliveries/src/main/scripts/localize_logback.sh b/deliveries/src/main/scripts/localize_logback.sh
deleted file mode 100755
index 90ce883cc..000000000
--- a/deliveries/src/main/scripts/localize_logback.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-BASE_DIR=/etc/onap/vid/conf.d
-FINAL_CONFIG_FILE=${BASE_DIR}/logback.xml
-TEMPLATE_CONFIG_FILE=${BASE_DIR}/logback_template.xml
-
-echo "Localizing the VID logback configuration"
-
-mkdir -p "${VID_LOG_DIR}"
-
-sed -e 's/${VID_LOG_LEVEL}/'${VID_LOG_LEVEL}'/g' \
- -e 's,${VID_LOG_DIR},'${VID_LOG_DIR}',g' ${TEMPLATE_CONFIG_FILE} > ${FINAL_CONFIG_FILE} || {
- echo "ERROR: Could not process template file ${TEMPLATE_CONFIG_FILE} into ${FINAL_CONFIG_FILE}"
- exit 3
- }
-
-echo "Localized ${FINAL_CONFIG_FILE} successfully."
diff --git a/deliveries/src/main/scripts/localize_war.sh b/deliveries/src/main/scripts/localize_war.sh
index 53a928e84..29cdc5137 100755
--- a/deliveries/src/main/scripts/localize_war.sh
+++ b/deliveries/src/main/scripts/localize_war.sh
@@ -1,10 +1,5 @@
#!/bin/bash
-source /tmp/vid/localize_logback.sh || {
- echo "ERROR: Localizing logback.xml failed"
- exit 1
-}
-
source /tmp/vid/localize_portal.sh $1 || {
echo "ERROR: Localizing portal.properties failed"
exit 1