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

[8.17](backport #4181) Prevent mapping explosion on logs #4524

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 26, 2025

What is the problem this PR solves?

This commit remove some JSON objects that were added to the logs, thus preventing mapping explosion when those logs are ingested into Elasticsearch.

How does this PR solve the problem?

Some entries are converted to strings and others just removed to keep the log within a reasonable size.

How to test this PR locally

Run Fleet-Server, watch the logs

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • [ ] 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/fragments using the changelog tool

## Related issues


This is an automatic backport of pull request #4181 done by Mergify.

This commit remove some JSON objects that were added to the logs, thus
preventing mapping explosion when those logs are ingested into
Elasticsearch.

Some entries are converted to strings, others are fully removed to keep
the log within a reasonable size and some are kept as string at trace level.

(cherry picked from commit 8ff01e3)
@mergify mergify bot requested a review from a team as a code owner February 26, 2025 21:29
@mergify mergify bot added the backport label Feb 26, 2025
@mergify mergify bot requested review from kaanyalti and pchila February 26, 2025 21:29
@belimawr
Copy link
Contributor

I'm activating the auto merge because this is an important fix and it's a simple change in logging.

@belimawr belimawr enabled auto-merge (squash) February 26, 2025 21:34
@belimawr belimawr merged commit be0aad7 into 8.17 Feb 27, 2025
9 checks passed
@belimawr belimawr deleted the mergify/bp/8.17/pr-4181 branch February 27, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants