-
Notifications
You must be signed in to change notification settings - Fork 449
Add multiple printers #2746
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
Add multiple printers #2746
Conversation
5678262
to
e9b169a
Compare
e9b169a
to
63d6cfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put some comments to be addressed.
3571116
to
a0cf505
Compare
pkg/cmd/flags/output.go
Outdated
Log options: | ||
log-file:/path/to/file write the logs to a specified file. create/trim the file if exists (default: stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log options should probably move to the --log
flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, will create an issue for it.
311659e
to
77167f7
Compare
77167f7
to
cc16da4
Compare
cc16da4
to
a11127a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Great job with the printer broadcast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @josedonizetti !
Overall LGTM, some nit comments ahead
Make sure to rebase so #2776 is included and new testers are used. |
The output flag will be different depending on the binary. This commit is renaming the output based on the binary that will use it, tracee-ebpf.
a11127a
to
f5e77c4
Compare
f5e77c4
to
3b792ef
Compare
Thanks for waiting on my review/read. Nice job! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1. Explain what the PR does
This PR add support for multiple printers to new
tracee
binary. The old binarytracee-ebpf
maintain the previous syntax, and the change is only implemented for the new binary, for such I have first created a commit where I rename the previousoutput
flag in order to simplify the deletion once we deprecate and removetracee-ebpf
.The new syntax was discussed on a previous PR #2709
This PR is part of #2355
Close #2231
2. Explain how to test it
Please check the help commands:
3. Other comments
Multiple printers will be the base of the webhook implementation for the new binary, where webhooks will be a printer like stdout, etc.