Skip to content

Commit

Permalink
Merge branch 'main' into shard-lower
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheMain authored Jun 20, 2024
2 parents d255d7d + f209db8 commit 14edf0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ echo "--- License"
<%= put_to_es('_license', license, acknowledge: true) %>
<% end %>
echo "--- Starting Index"
echo "--- Creating ISM policy"
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}/_plugins/_ism/policies/logs-app-rollover_policy -H 'Content-Type: application/json' -d'{"policy":{"description":"Rollover to a new index when age or size becomes our target","default_state":"Rollover","states":[{"name":"Rollover","actions":[{"retry":{"count":3,"backoff":"exponential","delay":"1m"},"rollover":{"min_index_age":"'${INDEX_AGE}'","min_primary_shard_size":"'${DOCUMENT_SIZE}'","copy_alias":false}}],"transitions":[]}],"ism_template":[{"index_patterns":["logs-app-*"],"priority":100}]}}'
Expand Down

0 comments on commit 14edf0d

Please sign in to comment.