[bug-hunter] filelog_otel multiline regex vars render invalid YAML when unquoted
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- handlebars, python, yaml
- Domain
- backend, observability-sre
Research direction
Start with packages/filelog_otel/agent/input/input.yml.hbs and the multiline variable definitions in packages/filelog_otel/manifest.yml; run the provided Python reproduction to confirm the rendered YAML failure. Trace how these values are rendered and verify that valid multiline regex values produce parseable agent configuration without changing other multiline behavior.
Written by the indexing model from the issue text.
Description
Impact
Users configuring filelog_otel multiline regex patterns can produce an invalid rendered input config, which prevents the input from starting. This is user-impacting because multiline regex is a documented setting, and valid regex patterns (e.g. date prefixes) cause parse failure.
Reproduction Steps
- Save and run this new minimal script:
import yaml
rendered = """receivers:
filelog:
multiline:
line_start_pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
omit_pattern: false
"""
print('--- Rendered YAML ---')
print(rendered)
print('--- Parse result ---')
yaml.safe_load(rendered)
- Run:
python /tmp/gh-aw/agent/repro_filelog_otel_yaml.py
- Observe deterministic parser failure.
Expected vs Actual
Expected: A valid multiline regex value should render into valid YAML and be parseable by the agent config loader.
Actual: YAML parsing fails with:
yaml.parser.ParserError: while parsing a block mapping
in "(unicode string)", line 4, column 7:
line_start_pattern: [0-9]{4}-[0- ...
^
expected (block end), but found '{'
in "(unicode string)", line 4, column 32:
line_start_pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
^
Failing Test
import yaml
rendered = """receivers:
filelog:
multiline:
line_start_pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}
omit_pattern: false
"""
yaml.safe_load(rendered)
Evidence
- Unquoted template rendering in
packages/filelog_otel/agent/input/input.yml.hbs:line_start_pattern: \{\{multiline_line_start_pattern}}(line 39)line_end_pattern: \{\{multiline_line_end_pattern}}(line 44)
- User-exposed multiline regex vars in
packages/filelog_otel/manifest.yml:multiline_line_start_pattern(line 195)multiline_line_end_pattern(line 201)
- No matching open duplicate found via issue search for
filelog_otel+multiline+line_start_pattern.
What is this? | From workflow: Bug Hunter
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
- expires on Mar 30, 2026, 11:30 AM UTC
- Dominant language
- Handlebars
- Stars
- 334
- Forks
- 652
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 241
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/integrations
-
automation flaky-test Integration:kafka_input_otel Team:obs-ds-intake-services
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/integrations#21427 ·
-
automation flaky-test Integration:mysql_input_otel Team:Obs-InfraObs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
elastic/integrations#21426 ·
-
automation flaky-test Integration:jaeger_input_otel Team:obs-ds-intake-services
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
elastic/integrations#21418 ·
-
automation flaky-test Integration:jaeger_input_otel Team:obs-ds-intake-services
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
elastic/integrations#21413 ·
-
automation flaky-test Integration:googlecloudmonitor_input_otel Team:Obs-InfraObs
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
elastic/integrations#21350 ·
All issues in elastic/integrations
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100