JSON parsing and verbose logging

This page contains information about configuring JSON parsing and verbose logging. These are both optional features that you can use with your Google Cloud Armor security policies.

Use JSON parsing

You can enable or disable parsing of the JSON body content of POST requests for each security policy. When the Content-Type header is set to application/json, use the --json-parsing flag in the Google Cloud CLI.

By default, this option is disabled. The syntax for the flag is as follows:

--json-parsing=[STANDARD | DISABLED]

The flag is available only with gcloud compute security-policies update. You cannot create a new security policy with this option unless you create a security policy in a file and then import that file. For more information, see Importing security policies.

For more information about POST body content parsing, see the Security policy overview.

Use verbose logging

You can configure the Google Cloud Armor logging level to enable more detailed logging for each security policy by using the --log-level flag in the gcloud CLI.

By default, this option is disabled. The syntax for the flag is as follows:

--log-level=[NORMAL | VERBOSE]

The flag is available only by using the gcloud compute security-policies update command. You cannot create a new security policy with this option unless you create a security policy in a file and then import that file. For more information, see Import security policies.

For more information about verbose logging, see When to use verbose logging.

What's next