hubble icon indicating copy to clipboard operation
hubble copied to clipboard

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

Open smeeklai opened this issue 1 year ago • 2 comments

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.

smeeklai avatar Dec 19 '23 08:12 smeeklai

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.

gandro avatar Dec 19 '23 16:12 gandro

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.

smeeklai avatar Dec 20 '23 06:12 smeeklai