From fb1c81fd21eedb4a53a72c81af83350f1c021031 Mon Sep 17 00:00:00 2001 From: "Jason A. Gambino" Date: Tue, 10 Dec 2024 10:55:53 -0500 Subject: [PATCH 1/2] seeing if it uploads to indexs --- .../templates/bin/upload-config.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jobs/upload_opensearch_config/templates/bin/upload-config.erb b/jobs/upload_opensearch_config/templates/bin/upload-config.erb index d4ebc795..1dfd48e9 100755 --- a/jobs/upload_opensearch_config/templates/bin/upload-config.erb +++ b/jobs/upload_opensearch_config/templates/bin/upload-config.erb @@ -120,4 +120,9 @@ curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_ism/policies/logs-app-rollo HTTP_CODE=$(curl -s -o /dev/null -s -w "%{http_code}\n" -I ${CA} ${CERT} ${KEY} ${BASEURL}/_alias/${ALIAS}/ ) if [ "$HTTP_CODE" -ge "201" ]; then curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/%3Clogs-app-%7Bnow%2Fd%7D-01%3E -H 'Content-Type: application/json' -d'{"aliases": {"'${ALIAS}'": {}}}' -fi \ No newline at end of file +fi + +echo "--- Creating Reporting indexs" + +curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/definitions +curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/instances \ No newline at end of file From 65dfb40b0f27a59935af5803926de3f417bd1a36 Mon Sep 17 00:00:00 2001 From: "Jason A. Gambino" Date: Tue, 10 Dec 2024 11:21:39 -0500 Subject: [PATCH 2/2] making reporting indexz --- jobs/upload_opensearch_config/templates/bin/upload-config.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/upload_opensearch_config/templates/bin/upload-config.erb b/jobs/upload_opensearch_config/templates/bin/upload-config.erb index 1dfd48e9..d5009b09 100755 --- a/jobs/upload_opensearch_config/templates/bin/upload-config.erb +++ b/jobs/upload_opensearch_config/templates/bin/upload-config.erb @@ -124,5 +124,5 @@ fi echo "--- Creating Reporting indexs" -curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/definitions -curl -XPUT ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/instances \ No newline at end of file +curl -XGET ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/definitions +curl -XGET ${CA} ${CERT} ${KEY} ${BASEURL}/_plugins/_reports/instances \ No newline at end of file