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

Logstash fix health report conditional cel logic #13416

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flexitrev
Copy link
Contributor

  • Bug

Proposed commit message

Check for pipeline.details for flow and state in cel for health report datastream to handle "unknown" status

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

How to test this PR locally

Use of logstash integration no longer has cel parsing failures

Related issues

Screenshots

@flexitrev flexitrev requested a review from a team as a code owner April 4, 2025 00:04
@elasticmachine
Copy link

💚 Build Succeeded

@@ -47,8 +47,8 @@ program: |
"id":pipeline_name,
"status":pipeline.status,
"symptom":pipeline.symptom,
"state":pipeline.details.status.state,
"flow": pipeline.details.flow,
"state": has(pipeline.details.status.state) ? pipeline.details.status.state : {},

Choose a reason for hiding this comment

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

state could be LOADING, RUNNING, FINISHED or TERMINATED
I am wondering should the default be an empty string "" instead of empthy hash {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants