-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/observe: improve policy verdict output in compact mode
The default output (compact) makes it hard for a user to tell the different event types apart. In particular, it is hard for a user to distinguish a trace event from a policy verdict one. This commit modifies the output for policy verdict events in two ways. First, instead of printing the drop reason (which is redundant as also printed out with the dropped flow) or the policy match type string for the event (L3-Only, L3-L4, L4-Only, all, none), the string 'policy-verdict' is displayed. Additionally, flows that are forwarded or redirected are printed as ALLOWED, those that are dropped or error as DENIED and the audit ones as AUDITED. Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
- Loading branch information
Showing
2 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters