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

flow logs for non-ACCEPT events only #357

Open
pznamensky opened this issue Jan 26, 2025 · 0 comments
Open

flow logs for non-ACCEPT events only #357

pznamensky opened this issue Jan 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@pznamensky
Copy link

What would you like to be added:
Currently, network policy events can be written to network-policy-agent.log.
It's a very convenient way to debug network policy problems.
However, when lots of connections are being established, the status of all of them has to be written to disk.
This creates unnecessary and sometimes high pressure on the CPU & disk.
In our case, we use these logs for easier application of NetworkPolicies and I thought that it might make sense to be able to configure what type of events should be written to the log.
Specifically, I think for this case either only events with verdict: DENY or events without verdict: ACCEPT are needed.

Why is this needed:
To not burn CPU cycles.

@pznamensky pznamensky added the enhancement New feature or request label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant