Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SAS Viya Monitoring for Kubernetes
## Unreleased
* **Logging**
* [FIX] Corrected handling of unavailable API endpoint in deploy_opensearch_content.sh
* [FIX] Log messages from Prometheus Operator pod redirected to OpenSearch viya_ops-* (rather than viya_logs-*) index
* [UPGRADE] OpenSearch and OpenSearch Dashboards upgraded from 2.19.2 to 2.19.3
* [UPGRADE] OpenSearch Helm chart upgraded from 2.34.0 to 2.35.0.
Expand Down
5 changes: 3 additions & 2 deletions logging/bin/deploy_opensearch_content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ fi
log_info "Loading Content into OpenSearch"

# temp file used to capture command output
# shellcheck disable=SC2034
tmpfile=$TMP_DIR/output.txt

set -e

# check for pre-reqs

# Confirm namespace exists
Expand Down Expand Up @@ -169,6 +168,8 @@ function add_ism_template {
fi
}

set -e

LOG_RETENTION_PERIOD="${LOG_RETENTION_PERIOD:-3}"
set_retention_period viya_logs_idxmgmt_policy LOG_RETENTION_PERIOD
add_ism_template "viya_logs_idxmgmt_policy" "viya_logs-*" 100
Expand Down