Skip to content

Commit

Permalink
Add data stream lifecycle to kibana reporting template
Browse files Browse the repository at this point in the history
As a follow-up to elastic#97765 this commit adds a lifecycle with infinite retention for Kibana reporting data streams. It also adds customization that follows our best practices with the optional `kibana-reporting@custom` component template.
  • Loading branch information
dakrone committed Mar 12, 2024
1 parent eea3574 commit 8a910f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"hidden": true
},
"allow_auto_create": true,
"composed_of": ["kibana-reporting@custom"],
"ignore_missing_component_templates": ["kibana-reporting@custom"],
"template": {
"lifecycle": {},
"settings": {
"number_of_shards": 1,
"auto_expand_replicas": "0-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ setup:
- match: { data_streams.0.timestamp_field.name: '@timestamp' }
- match: { data_streams.0.generation: 1 }
- length: { data_streams.0.indices: 1 }
- match: { data_streams.0.lifecycle.enabled: true }
- match: { data_streams.0.indices.0.index_name: '/\.ds-.kibana-reporting-foo-(\d{4}\.\d{2}\.\d{2}-)?000001/' }

- set: { data_streams.0.indices.0.index_name: idx0name }
Expand Down

0 comments on commit 8a910f6

Please sign in to comment.