elastic / elastic/fleet-server

HTTP Request log sampling

Open
#4,145 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
113
Forks
117
Avg merge
1d 16h
Merged PRs (30d)
112

Description

HTTP logs are only written if the Debug level is enabled, or if a request results in a non-2XX response.
We should change this to allow logging of 2XX responses with some level of sampling when Debug is not enabled.

A [BurstSampler](https://pkg.go.dev/github.com/rs/zerolog#BurstSampler) may be a good fit for this as it would limit the logs emitted during during activity spikes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.