Need Help with Aws Cli Command for INSPECTOR 2 Report

0

Hi I am trying to get a Report of INSPECTOR 2 in CSV Format with only ACTIVE Findings, some how I am not able to, but I am getting the report with All Findings which is a huge file The command I am using -- aws inspector2 create-findings-report --report-format CSV --s3-destination bucketName=inspector-scan-report-$env,keyPrefix=$today_date,kmsKeyArn=arn:aws:kms:us-east-1:.....

But I need this command to get only ACTIVE Findings, Can some one please help me with this, Thank you

RGADA
已提問 2 年前檢視次數 2488 次
1 個回答
0
已接受的答案

Hi,

You can try to use the filter criteria like that shown below:

aws inspector2 create-findings-report --filter-criteria '{"findingStatus" : [{"comparison" : "EQUALS", "value": "ACTIVE"}]}'  --report-format CSV --s3-destination bucketName=<bucketname>-$env,keyPrefix=$today_date,kmsKeyArn=arn:aws:kms:us-east-1 ....
profile picture
Syd
已回答 2 年前
profile picture
專家
已審閱 8 個月前
  • Thank you. I am using the Wrong Filter, your answer helped me thank you

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南