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

1 réponse
0
Réponse acceptée

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
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a 8 mois
  • Thank you. I am using the Wrong Filter, your answer helped me thank you

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions