From b71995b5532c5ed15454ef18613637140c2a691d Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 24 Oct 2024 01:30:14 +1100 Subject: [PATCH] [8.x] [Automatic Import] Cel template fixes (#196945) (#197327) # Backport This will backport the following commits from `main` to `8.x`: - [[Automatic Import] Cel template fixes (#196945)](https://github.com/elastic/kibana/pull/196945) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) \n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Kylie Meli "}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kylie Meli --- .../server/templates/agent/cel.yml.hbs | 14 -------------- .../templates/manifest/cel_manifest.yml.njk | 16 +--------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/x-pack/plugins/integration_assistant/server/templates/agent/cel.yml.hbs b/x-pack/plugins/integration_assistant/server/templates/agent/cel.yml.hbs index 2947f6343a763..6a0f1f1d52bea 100644 --- a/x-pack/plugins/integration_assistant/server/templates/agent/cel.yml.hbs +++ b/x-pack/plugins/integration_assistant/server/templates/agent/cel.yml.hbs @@ -146,18 +146,4 @@ resource.rate_limit.burst: {{resource_rate_limit_burst}} {{#if enable_request_tracer}} resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson" resource.tracer.maxbackups: 5 -{{/if}} - -{{#if tags}} -tags: -{{#each tags as |tag|}} - - {{tag}} -{{/each}} -{{/if}} -{{#contains "forwarded" tags}} -publisher_pipeline.disable_host: true -{{/contains}} -{{#if processors}} -processors: -{{processors}} {{/if}} \ No newline at end of file diff --git a/x-pack/plugins/integration_assistant/server/templates/manifest/cel_manifest.yml.njk b/x-pack/plugins/integration_assistant/server/templates/manifest/cel_manifest.yml.njk index 025732305a59d..eae1ebaa3be38 100644 --- a/x-pack/plugins/integration_assistant/server/templates/manifest/cel_manifest.yml.njk +++ b/x-pack/plugins/integration_assistant/server/templates/manifest/cel_manifest.yml.njk @@ -1,4 +1,5 @@ - input: cel + template_path: cel.yml.hbs title: | {{ data_stream_title }} description: | @@ -308,21 +309,6 @@ show_user: false multi: false required: false - - name: processors - type: yaml - title: Processors - multi: false - required: false - show_user: false - description: > - Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details. - - name: tags - type: text - title: Tags - multi: true - show_user: false - default: - - forwarded - name: enable_request_tracer type: bool title: Enable request tracing