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

Remove event fields from error log. #37330

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

belimawr
Copy link
Contributor

@belimawr belimawr commented Dec 7, 2023

Proposed commit message

Remove event fields from error log when the script processor panics. This is an unlikely situation to happen as the Javascript runtime we use should not panic on any error while executing Javascript code, hence the event fields are just removed.

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.

## Author's Checklist
## How to test this PR locally
## Related issues
## Use cases
## Screenshots
## Logs

Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.
@belimawr belimawr added the Team:Elastic-Agent Label for the Agent team label Dec 7, 2023
@belimawr belimawr requested a review from a team as a code owner December 7, 2023 08:16
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 7, 2023
Copy link
Contributor

mergify bot commented Dec 7, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @belimawr? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@belimawr belimawr added backport-v7.17.0 Automated backport with mergify backport-v8.11.0 Automated backport with mergify backport-v8.12.0 Automated backport with mergify labels Dec 7, 2023
Copy link
Collaborator

@jlind23 jlind23 left a comment

Choose a reason for hiding this comment

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

Thank you.

@elasticmachine
Copy link
Collaborator

💚 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

  • Duration: 142 min 22 sec

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

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

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@pierrehilbert
Copy link
Collaborator

@belimawr could you please take care of the linter issues?

@jlind23
Copy link
Collaborator

jlind23 commented Dec 7, 2023

@pierrehilbert @cmacknz this needs to be merged asap, we should probably follow up with the linter issue afterwards.

@cmacknz cmacknz merged commit 3a504dd into elastic:main Dec 7, 2023
88 of 90 checks passed
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)

# Conflicts:
#	libbeat/processors/script/javascript/session.go
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)
cmacknz pushed a commit that referenced this pull request Dec 7, 2023
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)

Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
cmacknz added a commit that referenced this pull request Dec 8, 2023
* Remove event fields from error log. (#37330)

Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)

# Conflicts:
#	libbeat/processors/script/javascript/session.go

* Fix conflict in libbeat/processors/script/javascript/session.go

---------

Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
cmacknz added a commit that referenced this pull request Dec 12, 2023
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.

(cherry picked from commit 3a504dd)

Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
Scholar-Li pushed a commit to Scholar-Li/beats that referenced this pull request Feb 5, 2024
Remove event fields from error log when the script processor
panics. This is an unlikely situation to happen as the Javascript
runtime we use should not panic on any error while executing
Javascript code, hence the event fields are just removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.17.0 Automated backport with mergify backport-v8.11.0 Automated backport with mergify backport-v8.12.0 Automated backport with mergify Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants