Skip to content

[network_traffic] Ensure event.kind is correctly set for pipeline errors#6641

Merged
efd6 merged 4 commits intoelastic:mainfrom
MakoWish:6582-network_traffic
Jun 21, 2023
Merged

[network_traffic] Ensure event.kind is correctly set for pipeline errors#6641
efd6 merged 4 commits intoelastic:mainfrom
MakoWish:6582-network_traffic

Conversation

@MakoWish
Copy link
Copy Markdown
Contributor

What does this PR do?

Modify network_traffic integration to correctly set event.kind for pipeline errors and ensure error.message is an array.

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.

Author's Checklist

  •  

How to test this PR locally

Related issues

Screenshots

@MakoWish MakoWish requested a review from a team as a code owner June 20, 2023 21:00
@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Jun 20, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-06-20T21:29:26.300+0000

  • Duration: 63 min 3 sec

Test stats 🧪

Test Results
Failed 0
Passed 151
Skipped 2
Total 153

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@efd6
Copy link
Copy Markdown
Contributor

efd6 commented Jun 20, 2023

/test

@elasticmachine
Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (0/0) 💚
Files 100.0% (0/0) 💚 5.172
Classes 100.0% (0/0) 💚 5.172
Methods 75.0% (48/64) 👎 -20.668
Lines 100.0% (0/0) 💚 9.038
Conditionals 100.0% (0/0) 💚

Comment on lines +53 to +59
- append:
field: error.message
value: |-
Processor "{{ _ingest.on_failure_processor_type }}" with tag "{{ _ingest.on_failure_processor_tag }}" in pipeline "{{ _ingest.on_failure_pipeline }}" failed with message "{{ _ingest.on_failure_message }}"
- set:
field: event.kind
value: pipeline_error
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Normally, we'd keep the formatting consistent with the rest in the file. This is not an error condition and there would be a lot of work here to make this cosmetic change, so we'll let it pass.

@efd6 efd6 merged commit dee3a78 into elastic:main Jun 21, 2023
@elasticmachine
Copy link
Copy Markdown

Package network_traffic - 1.19.0 containing this change is available at https://epr.elastic.co/search?package=network_traffic

@MakoWish MakoWish deleted the 6582-network_traffic branch June 21, 2023 14:27
@andrewkroh andrewkroh added the Integration:network_traffic Network Packet Capture label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:network_traffic Network Packet Capture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants