Skip to content

Commit

Permalink
[Automatic Import] Cel template fixes (#196945)
Browse files Browse the repository at this point in the history
## Summary

This PR corrects the CEL template so that it can successfully complete
package policy installation. The fixes are 1) adding a template path,
and 2) removing the common template values from the cel templates.

Tested and verified with and without the CEL generation FF enabled.

(cherry picked from commit 15390e4)
  • Loading branch information
kgeller committed Oct 22, 2024
1 parent 259ab11 commit a0a66cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- input: cel
template_path: cel.yml.hbs
title: |
{{ data_stream_title }}
description: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0a66cc

Please sign in to comment.