{
    "Provider": "aws",
    "CheckID": "elb_logging_enabled",
    "CheckTitle": "Check if Elastic Load Balancers have logging enabled.",
    "CheckType": ["Logging and Monitoring"],
    "ServiceName": "elb",
    "SubServiceName": "",
    "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
    "Severity": "medium",
    "ResourceType": "AwsElbLoadBalancer",
    "Description": "Check if Elastic Load Balancers have logging enabled.",
    "Risk": "If logs are not enabled monitoring of service use and threat analysis is not possible.",
    "RelatedUrl": "",
    "Remediation": {
      "Code": {
        "CLI": "aws elb modify-load-balancer-attributes --load-balancer-name <lb_name> --load-balancer-attributes '{AccessLog:{Enabled:true,EmitInterval:60,S3BucketName:<bucket_name>}}'",
        "NativeIaC": "https://docs.bridgecrew.io/docs/bc_aws_logging_23#cloudformation",
        "Other": "https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/ELB/elb-access-log.html",
        "Terraform": "https://docs.bridgecrew.io/docs/bc_aws_logging_23#terraform"
      },
      "Recommendation": {
        "Text": "Enable ELB logging, create la log lifecycle and define use cases.",
        "Url": "https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html"
      }
    },
    "Categories": [],
    "Tags": {
      "Tag1Key": "value",
      "Tag2Key": "value"
    },
    "DependsOn": [],
    "RelatedTo": [],
    "Notes": "",
    "Compliance": []
  }
