Skip to content
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

CLI filter with container name #3451

Open
2 tasks done
errordeveloper opened this issue Feb 28, 2025 · 2 comments
Open
2 tasks done

CLI filter with container name #3451

errordeveloper opened this issue Feb 28, 2025 · 2 comments
Labels
good first issue Good for newcomers kind/enhancement This improves or streamlines existing functionality

Comments

@errordeveloper
Copy link

errordeveloper commented Feb 28, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

No response

Describe the feature you would like

To be able to do some quick things with CLI it'd be very handy to specify a container name.

There is no jq inside the tetragon pod, which and even having installed it one needs to figure out a filter expression and cover the types of events user is interested in also.
It's also not obvious that one can use compact output format using a pipe. It'd be easier if there was a flag.

Here is what I had to use:

tetra getevents --namespace foo --pod=foo 
   | jq 'select(.process_exec.process.pod.container.name == "bar", .process_exit.process.pod.container.name == "bar")'
   | tetra getevents -o compact

It's workable, but having a simple flag would have been nicer, of course.

Describe your proposed solution

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@errordeveloper errordeveloper added the kind/enhancement This improves or streamlines existing functionality label Feb 28, 2025
@mtardy mtardy added the good first issue Good for newcomers label Mar 3, 2025
@mtardy
Copy link
Member

mtardy commented Mar 3, 2025

Hey, thank you for the suggestion, sure! Looks like a good first issue someone could pick. You can implement it as well if you have the time.

@prateek041
Copy link
Contributor

Hello Tetragon team, I would love to pick this up if no one else is working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/enhancement This improves or streamlines existing functionality
Projects
Status: No status
Development

No branches or pull requests

3 participants