Skip to content

Use event.kind to validate if there is any pipeline error#3330

Merged
mrodm merged 8 commits intoelastic:mainfrom
mrodm:use_event_kind_errors
Mar 4, 2026
Merged

Use event.kind to validate if there is any pipeline error#3330
mrodm merged 8 commits intoelastic:mainfrom
mrodm:use_event_kind_errors

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Mar 3, 2026

Validate if event.kind field contains pipeline_error to decide if there is any error. When there is an error check also error.message field.

Considerations:

  • Errors retrieving event.kind and error.message fields are ignored.

Author's Checklist

Closes #1392

@mrodm mrodm self-assigned this Mar 3, 2026
@mrodm mrodm force-pushed the use_event_kind_errors branch from af55cbb to 0110191 Compare March 3, 2026 12:13
@mrodm
Copy link
Contributor Author

mrodm commented Mar 3, 2026

test integrations

@elastic-vault-github-plugin-prod

Created or updated PR in integrations repository to test this version. Check elastic/integrations#17636

mrodm added 4 commits March 3, 2026 15:00
Validate if `event.kind` field contains `pipeline_error` to
decide if there is any error. When there is an error check also
`error.message` field.
Added test package as false positive to validate that errors from
pipeline are detected in system tests.
@mrodm
Copy link
Contributor Author

mrodm commented Mar 3, 2026

Created another PR to test packages in integrations elastic/integrations#17639

This PR includes the changes of this revert #3331

@mrodm mrodm marked this pull request as ready for review March 3, 2026 18:34
@mrodm mrodm requested a review from a team March 3, 2026 18:34
# Dump stack logs
# Required containers could not be running, so ignore the error
elastic-package stack dump -v --output "build/elastic-stack-dump/check-${SUFFIX_FOLDER_DUMP_LOGS}}" || true
elastic-package stack dump -v --output "build/elastic-stack-dump/check-${SUFFIX_FOLDER_DUMP_LOGS}" || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫠

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, added a couple of small suggestions.

Comment on lines +2489 to +2491
if errorMessage == "" {
return "found pipeline_error in document: no error message"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this change we would ignore the absence of error.message, but now that we are checking if the event is a pipeline error I think it is better to report something, even if the error is not present. 👍

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm merged commit 8214100 into elastic:main Mar 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

elastic-package uses error.message as an indicator of pipeline failure

4 participants