-
Notifications
You must be signed in to change notification settings - Fork 189
How to fetch Kubeaudit output in text file? #357
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Hi @ridhika1628 , Kubeaudit exits with exit code 2 (customizable via the exitcode flag) if there are any errors, so if you're running it in a script you can determine if kubeaudit passed or failed that way. If you want to write the Kubeaudit output to file you can redirect the output to a file:
Does that work for you? |
H @genevieveluyt, I tried running that command but no luck. Getting below error Error: unknown flag: --format
|
It looks like you're using an older version of kubeaudit. Can you follow the installation instructions to install the latest version of kubeaudit? You'll know you have the right one if you can run the version command:
|
@ridhika1628 do you still need help with this? |
Closing this issue due to inactivity but @ridhika1628 feel free to reopen if you are still experiencing issues. |
I am trying to run below command
kubeaudit all
Want to get the output in some text file so that if there are "level=error" in auditing will make it as fail.
The text was updated successfully, but these errors were encountered: