CmdID

CmdID / aws / aws wafv2

aws wafv2 get-logging-configuration

Returns the LoggingConfiguration for the specified web ACL. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve the logging configurations for a web ACL

The following get-logging-configuration example retrieves the logging configuration for the specified web ACL.

aws wafv2 get-logging-configuration --resource-arn arn:aws:wafv2:us-west-2:123456789012:regional/webacl/test/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222Identify
--resource-arnThe Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.
Its output
{
    "LoggingConfiguration":{
        "ResourceArn":"arn:aws:wafv2:us-west-2:123456789012:regional/webacl/test/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
        "RedactedFields":[
            {
                "Method":{

                }
            }
        ],
        "LogDestinationConfigs":[
            "arn:aws:firehose:us-west-2:123456789012:deliverystream/aws-waf-logs-custom-transformation"
        ]
    }
}

For more information, see Logging Web ACL Traffic Information in the AWS WAF, AWS Firewall Manager, and AWS Shield Advanced Developer Guide.

Options

3 in the AWS CLI reference
--log-scopeThe owner of the logging configuration, which must be set to CUSTOMER for the configurations that you manage.
--log-typeUsed to distinguish between various logging options.
--resource-arnThe Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.