Skip to content

Commit 1f486ee

Browse files
chore: add rollup ilm settings
1 parent 2f94f14 commit 1f486ee

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

config/setup/easysearch/template_rollup.tpl

+37
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,42 @@ PUT /.easysearch-ilm-config/_settings
358358
}
359359
}
360360

361+
# ilm settings for rollup indices
362+
DELETE _ilm/policy/ilm_$[[SETUP_INDEX_PREFIX]]rollup-30days-retention
363+
PUT _ilm/policy/ilm_$[[SETUP_INDEX_PREFIX]]rollup-30days-retention
364+
{
365+
"policy": {
366+
"phases": {
367+
"hot": {
368+
"min_age": "0ms",
369+
"actions": {
370+
"rollover": {
371+
"max_age": "30d",
372+
"max_size": "50gb"
373+
},
374+
"set_priority": {
375+
"priority": 100
376+
}
377+
}
378+
},
379+
"delete": {
380+
"min_age": "30d",
381+
"actions": {
382+
"delete": {
383+
"timestamp_field": "timestamp.date_histogram",
384+
"min_data_age": "30d"
385+
}
386+
}
387+
}
388+
}
389+
}
390+
}
391+
392+
# add ilm policy to rollup indices
393+
#POST _ilm/add/rollup_index_stats_logs-write
394+
#{
395+
# "policy_id": "ilm_$[[SETUP_INDEX_PREFIX]]rollup-30days-retention"
396+
#}
397+
361398
# start all rollup jobs
362399
POST /_rollup/jobs/rollup*/_start

0 commit comments

Comments
 (0)