Update API path

Change-Id: I311a5ee608c5353d1eb6ea0100ba44b548ba899f
diff --git a/logging/opensearch_setting/Chart.yaml b/logging/opensearch_setting/Chart.yaml
index bc6258c..94a2e38 100644
--- a/logging/opensearch_setting/Chart.yaml
+++ b/logging/opensearch_setting/Chart.yaml
@@ -18,7 +18,7 @@
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.1.4
+version: 0.1.5
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/logging/opensearch_setting/templates/configmap-script.yml b/logging/opensearch_setting/templates/configmap-script.yml
index a90adcb..ba78a19 100644
--- a/logging/opensearch_setting/templates/configmap-script.yml
+++ b/logging/opensearch_setting/templates/configmap-script.yml
@@ -38,7 +38,7 @@
 
     #return destination id if exist
     check_destination() { name=$1
-        curl -s $curl_opts -H "content-type: application/json" "$host/_opensearch/_alerting/destinations" | jq -r ".destinations[] | select(.name == \"$name\").id"
+        curl -s $curl_opts -H "content-type: application/json" "$host/_plugins/_alerting/destinations" | jq -r ".destinations[] | select(.name == \"$name\").id"
     }
 
     update_destination() {
@@ -48,7 +48,7 @@
         #compress the json file to reduce the http size
         new_file="$temp_dir/$file"
         jq -c '' < "$file" > "$new_file"
-        curl -s $curl_opts -X PUT -H "content-type: application/json" -d "@$new_file" "$host/_opensearch/_alerting/destinations/$id"
+        curl -s $curl_opts -X PUT -H "content-type: application/json" -d "@$new_file" "$host/_plugins/_alerting/destinations/$id"
         rm "$new_file"
         echo "  "
     }
@@ -58,7 +58,7 @@
         file=$1
         new_file="$temp_dir/$file"
         jq -c '' < "$file" > "$new_file"
-        curl -s $curl_opts -X POST -H "content-type: application/json" -d "@$new_file" "$host/_opensearch/_alerting/destinations"
+        curl -s $curl_opts -X POST -H "content-type: application/json" -d "@$new_file" "$host/_plugins/_alerting/destinations"
         rm "$new_file"
         echo "  "
     }
@@ -68,7 +68,7 @@
         name=$1
         curl -s $curl_opts -H "content-type: application/json" \
             --data "{\"query\":{\"match\":{ \"monitor.name\": \"$name\"}}}" \
-            "$host/_opensearch/_alerting/monitors/_search" | jq -r '.hits.hits[0]._id'
+            "$host/_plugins/_alerting/monitors/_search" | jq -r '.hits.hits[0]._id'
     }
 
     create_monitor() {
@@ -77,7 +77,7 @@
         new_file="$temp_dir/$file"
         echo "create monitor"
         jq -c ".triggers[0].actions[0].destination_id=\"$dest_id\""  "$file" > "$new_file"
-        curl -s $curl_opts -X POST -H "content-type: application/json" -d "@$new_file" "$host/_opensearch/_alerting/monitors/"
+        curl -s $curl_opts -X POST -H "content-type: application/json" -d "@$new_file" "$host/_plugins/_alerting/monitors/"
         rm "$new_file"
         echo " "
     }
@@ -89,7 +89,7 @@
         new_file="$temp_dir/$file"
         echo "update monitor"
         jq -c ".triggers[0].actions[0].destination_id=\"$dest_id\""  "$file" > "$new_file"
-        curl -s $curl_opts -X PUT -H "content-type: application/json" -d "@$new_file" "$host/_opensearch/_alerting/monitors/$monitor_id"
+        curl -s $curl_opts -X PUT -H "content-type: application/json" -d "@$new_file" "$host/_plugins/_alerting/monitors/$monitor_id"
         rm "$new_file"
         echo " "
     }