Quiet the log query done by the bouncer #57
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the log flood is repeated each 10 seconds, it comes from the get of the bouncer to know if he needs to ban a decision
Oct 15 10:39:13 R2-pve.rocky9-pve2.org crowdsec1[123878]: time="2024-10-15T08:39:13Z" level=info msg="127.0.0.1 - [Tue, 15 Oct 2024 08:39:13 UTC] \"GET /v1/decisions/stream HTTP/1.1 200 4.875875ms \"crowdsec-firewall-bouncer/v0.0.28-debian-pragmatic-af6e7e25822c2b1a02168b99ebbf8458bc6728e5\" \""
also
Oct 15 11:47:04 R2-pve.rocky9-pve2.org crowdsec2[136638]: time="2024-10-15T09:47:04Z" level=info msg="127.0.0.1 - [Tue, 15 Oct 2024 09:47:04 UTC] \"GET /v1/heartbeat HTTP/1.1 200 245.958µs \"crowdsec/v1.6.3-4851945a-docker\" \""
we can continue to see the
GET
byrunagent -m crowdsec2 podman exec -ti crowdsec2 cscli metrics
Refs: NethServer/dev#7062