Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint metrics templates #12173

Merged
merged 3 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions salt/elasticsearch/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9250,6 +9250,138 @@ elasticsearch:
set_priority:
priority: 50
min_age: 30d
so-metrics-endpoint_x_metadata:
index_sorting: False
index_template:
index_patterns:
- "metrics-endpoint.metadata-*"
template:
settings:
index:
lifecycle:
name: so-metrics-endpoint.metadata-logs
number_of_replicas: 0
composed_of:
- "metrics-endpoint.metadata@package"
- "metrics-endpoint.metadata@custom"
- "so-fleet_globals-1"
- "so-fleet_agent_id_verification-1"
priority: 501
data_stream:
hidden: false
allow_custom_routing: false
policy:
phases:
cold:
actions:
set_priority:
priority: 0
min_age: 30d
delete:
actions:
delete: {}
min_age: 365d
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
min_age: 0ms
warm:
actions:
set_priority:
priority: 50
min_age: 30d
so-metrics-endpoint_x_metrics:
index_sorting: False
index_template:
index_patterns:
- "metrics-endpoint.metrics-*"
template:
settings:
index:
lifecycle:
name: so-metrics-endpoint.metrics-logs
number_of_replicas: 0
composed_of:
- "metrics-endpoint.metrics@package"
- "metrics-endpoint.metrics@custom"
- "so-fleet_globals-1"
- "so-fleet_agent_id_verification-1"
priority: 501
data_stream:
hidden: false
allow_custom_routing: false
policy:
phases:
cold:
actions:
set_priority:
priority: 0
min_age: 30d
delete:
actions:
delete: {}
min_age: 365d
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
min_age: 0ms
warm:
actions:
set_priority:
priority: 50
min_age: 30d
so-metrics-endpoint_x_policy:
index_sorting: False
index_template:
index_patterns:
- "metrics-endpoint.policy-*"
template:
settings:
index:
lifecycle:
name: so-metrics-endpoint.policy-logs
number_of_replicas: 0
composed_of:
- "metrics-endpoint.policy@package"
- "metrics-endpoint.policy@custom"
- "so-fleet_globals-1"
- "so-fleet_agent_id_verification-1"
priority: 501
data_stream:
hidden: false
allow_custom_routing: false
policy:
phases:
cold:
actions:
set_priority:
priority: 0
min_age: 30d
delete:
actions:
delete: {}
min_age: 365d
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
min_age: 0ms
warm:
actions:
set_priority:
priority: 50
min_age: 30d
so-metrics-vsphere_x_datastore:
index_sorting: False
index_template:
Expand Down
3 changes: 3 additions & 0 deletions salt/elasticsearch/soc_elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ elasticsearch:
so-logs-elastic_agent_x_metricbeat: *indexSettings
so-logs-elastic_agent_x_osquerybeat: *indexSettings
so-logs-elastic_agent_x_packetbeat: *indexSettings
so-metrics-endpoint_x_metadata: *indexSettings
so-metrics-endpoint_x_metrics: *indexSettings
so-metrics-endpoint_x_policy: *indexSettings
so-case: *indexSettings
so-common: *indexSettings
so-endgame: *indexSettings
Expand Down
Loading