-
Notifications
You must be signed in to change notification settings - Fork 426
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 traceectl to tracee #4396
base: main
Are you sure you want to change the base?
add traceectl to tracee #4396
Conversation
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.
Please see comments below.
In addition, please add documentation to traceectl.
As part of the documentation, please also refer to the way the user should start tracee "daemon" (e.g. using NONE output and setting the grpc server address)
What do you think about adding a flag to traceectl version command called |
I believe we wouldn't bother with it. When it's from a released version, it's already short. |
Gonna through this tomorrow. 👍🏻 |
64b8a32
to
21986f0
Compare
cmd/traceectl/pkg/mock/server.go
Outdated
) | ||
|
||
var ( | ||
ExpectedVersion string = "v0.22.0-15-gd09d7fca0d" |
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.
Update this output when writing test to version command or remove it entirely
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.
Looks great to me, maybe go over the documentation and review it once more
@ShohamBit @yanivagman what do you think about splitting this? Since we already have a working stream command, we could open a PR with just the base root and stream commands to establish a foundation for the upcoming new commands (each added in separate PRs). This approach would make both implementation and review more manageable. |
Hey @geyslan, great thinking, let's discuss this over with @yanivagman |
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.
First pass...
dd19b43
to
2159616
Compare
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Co-authored-by: Yaniv Agman <[email protected]>
Description
This PR introduces
traceectl
, a new CLI tool for interacting with Tracee. It implements basic commands for communication with Tracee via gRPC.Key Changes
traceectl
CLI tool.version
metrics
stream
event
042349a fix more issues
59e6e3c fix lint problom in traceectl
0618d49 made changes to the docs of traceectl
144cf90 resolve client creation code
0c5a8d2 fix stream code
d08c7d7 fix root command
dcd71ed fix event command code
e1eef96 tidy formmatter pkg
c55d1a9 fix flag pkg
df3501d fix client pkg
4866b0c Update cmd/traceectl/cmd/event.go
f0ec9fe Update cmd/traceectl/cmd/event.go
ee84109 Update docs/docs/traceectl/index.md
8046da8 Update docs/docs/traceectl/index.md
9680bb9 Update docs/docs/traceectl/flags/server.md
62da87d Update cmd/traceectl/cmd/event.go
2815df6 Update docs/docs/traceectl/flags/format.md
c8a1b92 Update docs/docs/traceectl/commands/version.md
93fa420 Update cmd/traceectl/cmd/event.go
a58c7ea Update cmd/traceectl/cmd/event.go
216c76e Update cmd/traceectl/cmd/event.go
a1cc925 Update cmd/traceectl/cmd/event.go
90b8ef4 added docs to mkdocs file
d717339 change default socket to /var/run/tracee.sock
795f2d9 change make bulid to go build, remove install
6dd5960 modified code to align with new status flag code, fix minor issues
0f816ba added server flag code
71db0a9 added error msg for not supported output format
30fbfe1 added docs to traceectl flags
3cfff2b ** make formt flag global**
21ac45f added metrics docs
13549c7 added stream doc
b3ed5ac added doc for event
a026f34 added version command doc
997a267 ** add white space to make the server connection a separate block.**
9184a1c added basic documantion for traceectl
0673944 support output
6fca72e fix event and remove printer pkg
b0f43a7 add support to json
77dce12 moved printer stream code to stream
d68b359 fix client and root
f33a9fa fix mock server and client
d085ca1 fix formatter
3997a6f fix client code
b3baff0 remove not support code by tracee
f27998e change design for traceectl
c1bafdf Add traceectl to tracee
4866b0c Update cmd/traceectl/cmd/event.go
f0ec9fe Update cmd/traceectl/cmd/event.go
ee84109 Update docs/docs/traceectl/index.md
8046da8 Update docs/docs/traceectl/index.md
9680bb9 Update docs/docs/traceectl/flags/server.md
62da87d Update cmd/traceectl/cmd/event.go
2815df6 Update docs/docs/traceectl/flags/format.md
c8a1b92 Update docs/docs/traceectl/commands/version.md
93fa420 Update cmd/traceectl/cmd/event.go
a58c7ea Update cmd/traceectl/cmd/event.go
216c76e Update cmd/traceectl/cmd/event.go
a1cc925 Update cmd/traceectl/cmd/event.go
Testing
Compile and run Tracee with gRPC:
Run
traceectl
:cd ./cmd/traceectl sudo go run main.go stream
This displays the help command.
Current Limitations
metrics
: JSON output is not yet supported.stream
: Only the basestream
command is supported. Streams events directly from Tracee.Related Issues
traceectl
#4419Note: This PR was accidentally closed previously and is now being resubmitted.