Skip to content

Instantly share code, notes, and snippets.

@ozzimpact
Created February 6, 2020 13:57
Show Gist options
  • Save ozzimpact/9c467ee21a8a432da73418064d21bff0 to your computer and use it in GitHub Desktop.
Save ozzimpact/9c467ee21a8a432da73418064d21bff0 to your computer and use it in GitHub Desktop.
PUT _template/log_template
{
"index_patterns": ["log-*"],
"settings": {
"index": {
"lifecycle": {
"name": "logs_policy",
"rollover_alias": "rolloverlogs"
},
"number_of_shards": "5",
"number_of_replicas": "0"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment