mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
use curl vs es query to force PUT request
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
This commit is contained in:
@@ -947,7 +947,7 @@ update_elasticsearch_index_settings() {
|
|||||||
if [ $exists -eq 200 ]; then
|
if [ $exists -eq 200 ]; then
|
||||||
echo "$idx index found..."
|
echo "$idx index found..."
|
||||||
echo "Updating $idx index settings"
|
echo "Updating $idx index settings"
|
||||||
so-elasticsearch-query $idx/_settings -d "$JSON_STRING" -XPUT
|
curl -K /opt/so/conf/elasticsearch/curl.config -s -k -L -H "Content-Type: application/json" "https://localhost:9200/$idx/_settings" -d "$JSON_STRING" -XPUT
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
else
|
else
|
||||||
echo -e "Skipping $idx... index does not exist\n"
|
echo -e "Skipping $idx... index does not exist\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user