Skip to content

Commit

Permalink
[Automatic Import] Fix Structured log template to use single quotes (e…
Browse files Browse the repository at this point in the history
…lastic#209736)

## Release Note

Fix Structured log template to use single quotes

### Summary

Currently with a single backslash as escape character the template is
setting up a double quote surrounding it and it causes YAML Exception
```
 1 |   - kv:
 2 |       field: message
 3 |       field_split: "\|"
--------------------------^

YAMLException: unknown escape sequence (3:22)
```

This PR fixes to use single quotes to not break YAML parsing.
  • Loading branch information
bhapas authored Feb 5, 2025
1 parent 70989af commit 8181858
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- kv:
field: message
field_split: "{{ kvInput.field_split }}"
value_split: "{{ kvInput.value_split }}"
trim_key: "{{ kvInput.trim_key }}"
trim_value: "{{ kvInput.trim_value }}"
target_field: "{{ packageName }}.{{ dataStreamName }}"
field_split: '{{ kvInput.field_split }}'
value_split: '{{ kvInput.value_split }}'
trim_key: '{{ kvInput.trim_key }}'
trim_value: '{{ kvInput.trim_value }}'
target_field: '{{ packageName }}.{{ dataStreamName }}'

0 comments on commit 8181858

Please sign in to comment.