aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.71k stars 581 forks source link

Log output redirection #329

Closed iyehuda closed 3 years ago

iyehuda commented 4 years ago

What would you like to be added

Enable separation of report and log into two separate destinations. Supply a configurable log output file.

Why is this needed

In order to make kube-hunter automation and human friendly, we should enable separation of logs and reports in a convenient way. Right now, log messages are being printed to the standard error and the report is written into the standard output. If you want to separate them apart, you'll need to use shell redirection (e.g., 2> kube-hunter.log). We can save the user from using shell output redirection and supply a parameter for log file path (--log-file).

jabhishek87 commented 3 years ago

can i take this ?

Nibba2018 commented 3 years ago

Is this issue still open @iYehuda ?

milindchawre commented 3 years ago

assign @milindchawre