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

Is there a way to log all dropped verdict by policy deny? #1332

Open
smeeklai opened this issue Dec 19, 2023 · 2 comments
Open

Is there a way to log all dropped verdict by policy deny? #1332

smeeklai opened this issue Dec 19, 2023 · 2 comments

Comments

@smeeklai
Copy link

Hi

I'd like to log the traffic that got dropped by policy deny. Similar information to when I run hubble observe --verdict DROPPED. Ultimately I'd like to create an alert and/or a dashboard on those information.

@gandro
Copy link
Member

gandro commented Dec 19, 2023

Hi, you might be interested in the Hubble metrics collected by Cilium Agent: https://docs.cilium.io/en/stable/observability/metrics/#hubble-metrics

In particular, if you filter the reason label on the drop_total metric, you should get the total number of policy drops.

@smeeklai
Copy link
Author

Hi. Right, that's the way to get the total number but I'm looking for something like a structured log like this one where I can find it in a pod or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants