From 4585c2b1005e1288f23d41a647f23433a8620c50 Mon Sep 17 00:00:00 2001 From: Bhushan Thorat <92509797+bthorat5@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:40:38 +0530 Subject: [PATCH] Update filebeat.yml --- diagnostics/opensearch/filebeat/conf/filebeat.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/diagnostics/opensearch/filebeat/conf/filebeat.yml b/diagnostics/opensearch/filebeat/conf/filebeat.yml index 2fbc830..40ccf8a 100644 --- a/diagnostics/opensearch/filebeat/conf/filebeat.yml +++ b/diagnostics/opensearch/filebeat/conf/filebeat.yml @@ -26,19 +26,19 @@ processors: - drop_fields: fields: docker.container.labels ignore_missing: true -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}' indices: - index: "%{[datastream]}" when.not.equals: datastream: "unknown" - - index: "filebeat-7.11.2-%{[tenant.name]}-%{[docker.attrs.ROLE_NAME]}-%{+yyyy.MM.dd}" + - index: "filebeat-%{[agent.version]}-new-%{[tenant.name]}-%{[docker.attrs.ROLE_NAME]}-%{+yyyy.MM.dd}" when.equals: serviceLevelIndex: "yes" - - index: "filebeat-7.11.2-%{[tenant.name]}-%{+yyyy.MM.dd}" + - index: "filebeat-%{[agent.version]}-new-%{+yyyy.MM.dd}" when.equals: tenantLevelIndex: "yes" bulk_max_size: '${BULK_MAX_SIZE:50}' - worker: '${WORKER_COUNT:1}' \ No newline at end of file + worker: '${WORKER_COUNT:1}'