Hi, I am trying to parse a JSON file with this structure:
[
{
"plugin": "cloudtrailBucketAccessLogging",
"category": "CloudTrail",
"title": "CloudTrail Bucket Access Logging",
"description": "Ensures CloudTrail logging bucket has access logging enabled to detect tampering of log files",
"resource": "arn:aws:s3:::cloudtrail",
"region": "eu-west-1",
"status": "FAIL",
"message": "Unable to locate S3 bucket, it may have been deleted",
"compliance": "CIS1: 2.6 Ensure CloudTrail bucket access logging is enabled"
},
{
"plugin": "cloudtrailToCloudwatch",
"category": "CloudTrail",
"title": "CloudTrail To CloudWatch",
"description": "Ensures CloudTrail logs are being properly delivered to CloudWatch",
"resource": "arn:aws:cloudtrail:eu-west-1:XXXXXXXX:trail/CloudTrail",
"region": "us-east-1",
"status": "FAIL",
"message": "CloudTrail CloudWatch integration is not enabled",
"compliance": "CIS1: 2.4 Ensure CloudTrail trails are integrated with CloudWatch Logs"
}
]
But I am getting errors. Is there any way to parse this kind of files?
Thanks!