Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automatic Import] Fix Structured log template to use single quotes #209736

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

bhapas
Copy link
Contributor

@bhapas bhapas commented Feb 5, 2025

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.

@bhapas bhapas added bug Fixes for quality problems that affect the customer experience release_note:fix backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Feature:AutomaticImport backport:8.17 backport:8.18 labels Feb 5, 2025
@bhapas bhapas self-assigned this Feb 5, 2025
@bhapas bhapas requested a review from a team as a code owner February 5, 2025 11:11
@bhapas bhapas added the Team:Security-Scalability Team label for Security Integrations Scalability Team label Feb 5, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-scalability (Team:Security-Scalability)

@bhapas bhapas enabled auto-merge (squash) February 5, 2025 11:33
@bhapas bhapas merged commit 8181858 into elastic:main Feb 5, 2025
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/13157781955

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @bhapas

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@bhapas bhapas added the backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development label Feb 5, 2025
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13159523476

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 5, 2025
…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.

(cherry picked from commit 8181858)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.17
8.18
8.x
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 5, 2025
…uotes (#209736) (#209782)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Automatic Import] Fix Structured log template to use single quotes
(#209736)](#209736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-05T12:52:04Z","message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport","backport:8.17","v9.1.0","backport:8.18"],"title":"[Automatic
Import] Fix Structured log template to use single
quotes","number":209736,"url":"https://github.com/elastic/kibana/pull/209736","mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209736","number":209736,"mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},{"url":"https://github.com/elastic/kibana/pull/209757","number":209757,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 5, 2025
…otes (#209736) (#209783)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Automatic Import] Fix Structured log template to use single quotes
(#209736)](#209736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-05T12:52:04Z","message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport","backport:8.17","v9.1.0","backport:8.18"],"title":"[Automatic
Import] Fix Structured log template to use single
quotes","number":209736,"url":"https://github.com/elastic/kibana/pull/209736","mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209736","number":209736,"mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},{"url":"https://github.com/elastic/kibana/pull/209757","number":209757,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 5, 2025
…uotes (#209736) (#209781)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Automatic Import] Fix Structured log template to use single quotes
(#209736)](#209736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-05T12:52:04Z","message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport","backport:8.17","v9.1.0","backport:8.18"],"title":"[Automatic
Import] Fix Structured log template to use single
quotes","number":209736,"url":"https://github.com/elastic/kibana/pull/209736","mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209736","number":209736,"mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},{"url":"https://github.com/elastic/kibana/pull/209757","number":209757,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 5, 2025
…otes (#209736) (#209757)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Automatic Import] Fix Structured log template to use single quotes
(#209736)](#209736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-05T12:52:04Z","message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","Team:Security-Scalability","Feature:AutomaticImport","backport:8.17","v9.1.0","backport:8.18"],"title":"[Automatic
Import] Fix Structured log template to use single
quotes","number":209736,"url":"https://github.com/elastic/kibana/pull/209736","mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209736","number":209736,"mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 5, 2025
…uotes (#209736) (#209780)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Automatic Import] Fix Structured log template to use single quotes
(#209736)](#209736)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bharat
Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-05T12:52:04Z","message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport","backport:8.17","v9.1.0","backport:8.18"],"title":"[Automatic
Import] Fix Structured log template to use single
quotes","number":209736,"url":"https://github.com/elastic/kibana/pull/209736","mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209736","number":209736,"mergeCommit":{"message":"[Automatic
Import] Fix Structured log template to use single quotes (#209736)\n\n##
Release Note\r\n\r\nFix Structured log template to use single
quotes\r\n\r\n### Summary\r\n\r\nCurrently with a single backslash as
escape character the template is\r\nsetting up a double quote
surrounding it and it causes YAML Exception\r\n```\r\n 1 | - kv:\r\n 2 |
field: message\r\n 3 | field_split:
\"\\|\"\r\n--------------------------^\r\n\r\nYAMLException: unknown
escape sequence (3:22)\r\n```\r\n\r\nThis PR fixes to use single quotes
to not break YAML
parsing.","sha":"8181858385efdc099b9ac517afe58ef6d1ba18a6"}},{"url":"https://github.com/elastic/kibana/pull/209757","number":209757,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->

Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) backport:8.17 backport:8.18 bug Fixes for quality problems that affect the customer experience Feature:AutomaticImport release_note:fix Team:Security-Scalability Team label for Security Integrations Scalability Team v8.16.4 v8.17.2 v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants