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

Cherry-pick #18679 to 7.8: Include name of S3 bucket when logging S3 processing error #18822

Merged
merged 1 commit into from
May 29, 2020
Merged

Cherry-pick #18679 to 7.8: Include name of S3 bucket when logging S3 processing error #18822

merged 1 commit into from
May 29, 2020

Conversation

kaiyan-sheng
Copy link
Contributor

Cherry-pick of PR #18679 to 7.8 branch. Original message:

Enhancement

What does this PR do?

Include name of S3 bucket in error logs when processing fails with s3 input plugin.

Why is it important?

One possible wrapped error says The specified bucket does not exist and this is particularly difficult to troubleshoot when the bucket name is not given. I know that I can get the bucket name by running with logging.level:debug, but that's not helpful when I really need it from the moment of failure. Full error line below:

2020-05-20T21:56:52.119Z	ERROR	[s3]	s3/input.go:386	createEventsFromS3Info failed for AWSLogs/123456789/CloudFront/AB8B8BA8S8D.2020-05-19-22.6400e81a.gz: s3 get object request failed: NoSuchBucket: The specified bucket does not exist

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 28, 2020
@kaiyan-sheng kaiyan-sheng self-assigned this May 28, 2020
@kaiyan-sheng kaiyan-sheng added the Team:Platforms Label for the Integrations - Platforms team label May 28, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 28, 2020
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #18822 opened]

  • Start Time: 2020-05-28T15:12:38.798+0000

  • Duration: 44 min 32 sec

Test stats 🧪

Test Results
Failed 0
Passed 1680
Skipped 255
Total 1935

@kaiyan-sheng kaiyan-sheng merged commit 3d65f07 into elastic:7.8 May 29, 2020
@kaiyan-sheng kaiyan-sheng deleted the backport_18679_7.8 branch May 29, 2020 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants