mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +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
|
||||
echo "$idx index found..."
|
||||
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"
|
||||
else
|
||||
echo -e "Skipping $idx... index does not exist\n"
|
||||
|
||||
Reference in New Issue
Block a user