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 9989bb3 commit 1d7ad2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/filebeat-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Filebeat image build

on:
push:
branches: [ "master" ]
branches: [ "docparser" ]
pull_request:
branches: [ "master" ]
branches: [ "docparser" ]

defaults:
run:
Expand Down
8 changes: 4 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,18 @@ processors:
target: ''
fields:
datastream: '${ALIAS:unknown}'
setup.template.name: "filebeat-%{[agent.version]}"
setup.template.pattern: "filebeat-%{[agent.version]}-*"
setup.template.name: "filebeat-7.11.2"
setup.template.pattern: "filebeat-7.11.2-*"
output.elasticsearch:
hosts: '${ELASTIC_HOST}'
indices:
- index: "%{[datastream]}"
when.not.equals:
datastream: "unknown"
- index: "filebeat-%{[agent.version]}-%{[tenant.name]}-%{[kubernetes.container.name]}-%{+yyyy.MM.dd}"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{[kubernetes.container.name]}-%{+yyyy.MM.dd}"
when.equals:
serviceLevelIndex: "yes"
- index: "filebeat-%{[agent.version]}-%{[tenant.name]}-%{+yyyy.MM.dd}"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{+yyyy.MM.dd}"
when.equals:
tenantLevelIndex: "yes"
bulk_max_size: '${BULK_MAX_SIZE:50}'
Expand Down
8 changes: 4 additions & 4 deletions diagnostics/opensearch/filebeat/conf/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ processors:
- drop_fields:
fields: docker.container.labels
ignore_missing: true
setup.template.name: "filebeat-%{[agent.version]}"
setup.template.pattern: "filebeat-%{[agent.version]}-*"
setup.template.name: "filebeat-7.11.2"
setup.template.pattern: "filebeat-7.11.2-*"
output.elasticsearch:
hosts: '${ELASTIC_HOST}'
indices:
- index: "%{[datastream]}"
when.not.equals:
datastream: "unknown"
- index: "filebeat-%{[agent.version]}-%{[tenant.name]}-%{[docker.attrs.ROLE_NAME]}-%{+yyyy.MM.dd}"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{[docker.attrs.ROLE_NAME]}-%{+yyyy.MM.dd}"
when.equals:
serviceLevelIndex: "yes"
- index: "filebeat-%{[agent.version]}-%{[tenant.name]}-%{+yyyy.MM.dd}"
- index: "filebeat-7.11.2-%{[tenant.name]}-%{+yyyy.MM.dd}"
when.equals:
tenantLevelIndex: "yes"
bulk_max_size: '${BULK_MAX_SIZE:50}'
Expand Down

0 comments on commit 1d7ad2b

Please sign in to comment.