Skip to content

Commit

Permalink
create new filebeat pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
bthorat5 committed Oct 28, 2024
1 parent 1d7ad2b commit 0510a68
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions diagnostics/opensearch/filebeat/conf/filebeat-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,19 @@ processors:
target: ''
fields:
datastream: '${ALIAS:unknown}'
setup.template.name: "filebeat-7.11.2"
setup.template.pattern: "filebeat-7.11.2-*"
setup.template.name: "filebeat-%{[agent.version]}"
setup.template.pattern: "filebeat-%{[agent.version]}-*"
output.elasticsearch:
hosts: '${ELASTIC_HOST}'
index: "filebeat-%{[agent.version]}-new-%{+yyyy.MM.dd}"
indices:
- index: "%{[datastream]}"
when.not.equals:
datastream: "unknown"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{[kubernetes.container.name]}-%{+yyyy.MM.dd}"
- index: "filebeat-%{[agent.version]}-new-%{[tenant.name]}-%{[kubernetes.container.name]}-%{+yyyy.MM.dd}"
when.equals:
serviceLevelIndex: "yes"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{+yyyy.MM.dd}"
- index: "filebeat-%{[agent.version]}-new-%{[tenant.name]}-%{+yyyy.MM.dd}"
when.equals:
tenantLevelIndex: "yes"
bulk_max_size: '${BULK_MAX_SIZE:50}'
Expand Down

0 comments on commit 0510a68

Please sign in to comment.