Skip to content

aws: improve error.message and add event.kind:pipeline_error for pipeline errors #11112

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

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Sep 12, 2024

Proposed commit message

Also fix instances of incorrect yaml for script processors.

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

@efd6 efd6 added enhancement New feature or request Integration:aws AWS Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Sep 12, 2024
@efd6 efd6 self-assigned this Sep 12, 2024
@elasticmachine
Copy link

elasticmachine commented Sep 12, 2024

🚀 Benchmarks report

Package aws 👍(8) 💚(5) 💔(6)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
guardduty 1152.07 801.28 -350.79 (-30.45%) 💔
waf 7407.41 5917.16 -1490.25 (-20.12%) 💔
cloudfront_logs 2518.89 1923.08 -595.81 (-23.65%) 💔
cloudwatch_logs 500000 250000 -250000 (-50%) 💔
elb_logs 4739.34 3937.01 -802.33 (-16.93%) 💔
firewall_logs 3184.71 2538.07 -646.64 (-20.3%) 💔

To see the full report comment with /test benchmark fullreport

@efd6 efd6 marked this pull request as ready for review September 12, 2024 08:12
@efd6 efd6 requested review from a team as code owners September 12, 2024 08:12
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@andrewkroh andrewkroh added Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services] Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Sep 12, 2024
value: pipeline_error
- 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}}}'
Copy link
Member

Choose a reason for hiding this comment

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

If you have an easy way to update these, consider making the "with tag" part conditional on whether the processor has a tag.

For example:

https://github.com/andrewkroh/go-examples/blob/ee88091db24ef39d92d4431fa4a112e6fcb00d02/ecs-update/ecs-update.go#L1697-L1700

@efd6
Copy link
Contributor Author

efd6 commented Oct 9, 2024

@romulets I would like to understand how to resolve the conflicts in this PR. There are three possible approaches (four):

  1. Merge this as 2.27.0-preview01 and leave the benefits unavailable to users until the the features in 2.26.0-preview01 are accepted as GA.
  2. Merge this as 2.26.0 after reverting the changes in 2.26.0-preview01.
  3. Merge this as 2.27.0 and release the features in 2.26.0-preview01.
  4. (abandon this change)

value: "{{ _ingest.on_failure_message }}"
value: >-
Processor '{{{ _ingest.on_failure_processor_type }}}'
{{{#_ingest.on_failure_processor_tag}}}with tag '{{{ _ingest.on_failure_processor_tag }}}'
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

For a few values, with tag (whitespace in front of with) is used, for a few this whitespace is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I thought I got all of them with a s///g.

@efd6
Copy link
Contributor Author

efd6 commented Oct 14, 2024

@ishleenk17 and @constanca-m it would be really helpful if you could also check out the blocking PR #11397 that this depends on.

efd6 added 2 commits October 15, 2024 17:50
…line errors

Also fix instances of incorrect yaml for script processors.
@efd6 efd6 enabled auto-merge (squash) October 15, 2024 07:21
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
2.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@efd6 efd6 merged commit 6dd07a5 into elastic:main Oct 15, 2024
3 of 4 checks passed
@elasticmachine
Copy link

💚 Build Succeeded

History

  • 💚 Build #17071 succeeded 306831c435e436e814322c4da64b01130dcb4426
  • 💔 Build #16956 failed 7a43dd42b75de8e907c2cdb238b6b3537b91e671
  • 💔 Build #16944 failed 7c1bb793fbe0a3c4943341012f941631b0be5ec8
  • 💔 Build #16943 failed 8c687ec561594866737c5a32e79edca7d0294b4b
  • 💚 Build #16392 succeeded 2aefed683b8815994036a67447801b458a29c4cb
  • 💚 Build #15908 succeeded b012926a001d13a8ebe96375d83953ed9d8265f0

cc @efd6

@elastic-vault-github-plugin-prod

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

harnish-elastic pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…line errors (elastic#11112)

Also fix instances of incorrect yaml for script processors.
harnish-elastic pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…line errors (elastic#11112)

Also fix instances of incorrect yaml for script processors.
@efd6 efd6 deleted the 11090-aws branch February 5, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:aws AWS Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services] Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aws]: guardduty error message is unhelpful
9 participants