calico
calico copied to clipboard
Does calico network policies only log denied traffic?
Hello,
I am a bit confused on the Log action for Calico network policies. Im not seeing in the calico documentation if the Log action only logs denied traffic or if it can log both denied and accepted traffic. I just see an example of logging denied traffic in the documentation. Is there a way to tell if it's accepted or denied by the "calico-packet:" log line in syslog? I don't see a DROP in any of my calico-packet log lines.
https://projectcalico.docs.tigera.io/security/calico-network-policy#apply-network-policies-in-specific-order
Thanks for the clarification.
The log action will log packets that traverse the rule, it's not tied to accept / drop in any way and you need to use other rules in order to perform those actions.
Going to close this for now due to inactivity but if you have any more questions please feel free to reopen, thanks!