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

x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher/graph: set log max_size #40494

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Aug 13, 2024

Proposed commit message

There was no check on the tracer log settings, so the max_size was not being checked for zero. This would result in 100MB log rotation trigger and zero-sized bodies. There is no validation logic to hook this into in the config for the fetcher, so calculate it immediately before use.


A fix is already included in the prospective integration change that makes use of this feature.

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.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@efd6 efd6 added Filebeat Filebeat bugfix Team:Security-Service Integrations Security Service Integrations Team backport-8.15 Automated backport to the 8.15 branch with mergify labels Aug 13, 2024
@efd6 efd6 self-assigned this Aug 13, 2024
@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 Aug 13, 2024
… set log max_size

There was no check on the tracer log settings, so the max_size was not being
checked for zero. This would result in 100MB log rotation trigger and zero-sized
bodies. There is no validation logic to hook this into in the config for the
fetcher, so calculate it immediately before use.
@efd6 efd6 marked this pull request as ready for review August 13, 2024 06:29
@efd6 efd6 requested a review from a team as a code owner August 13, 2024 06:29
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

I didn't trace this down, but did see there is similar code in other providers. Are those affected as well?

CHANGELOG.next.asciidoc Outdated Show resolved Hide resolved
@efd6
Copy link
Contributor Author

efd6 commented Aug 13, 2024

This does not affect the other providers.

@efd6 efd6 merged commit 08b5628 into elastic:main Aug 13, 2024
20 checks passed
mergify bot pushed a commit that referenced this pull request Aug 13, 2024
… set log max_size (#40494)

There was no check on the tracer log settings, so the max_size was not being
checked for zero. This would result in 100MB log rotation trigger and zero-sized
bodies. There is no validation logic to hook this into in the config for the
fetcher, so calculate it immediately before use.

(cherry picked from commit 08b5628)
efd6 added a commit that referenced this pull request Aug 14, 2024
… set log max_size (#40494) (#40517)

There was no check on the tracer log settings, so the max_size was not being
checked for zero. This would result in 100MB log rotation trigger and zero-sized
bodies. There is no validation logic to hook this into in the config for the
fetcher, so calculate it immediately before use.

(cherry picked from commit 08b5628)

Co-authored-by: Dan Kortschak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.15 Automated backport to the 8.15 branch with mergify bugfix Filebeat Filebeat Team:Security-Service Integrations Security Service Integrations Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants