elastic / elastic/logstash

Add source location to conditional statements

Open
#16,418 0 comments 0 reactions 1 assignee Claimed by @andsel View on GitHub
enhancement status:needs-triage
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

With #16322 was fixed the evaluation of conditional statement expression so that in case of error, like comparing string with integers, the pipeline doesn't crash, but simply log the problem and drop the offending problem.
In complex pipelines with many conditional it's difficult to go back to the impacted condition, so the log (and also the DLQ event when available) should contain a code reference to the if.

The feasibility of such feature was discussed in the [comment](https://github.com/elastic/logstash/pull/16322#issuecomment-2296203305)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.