log_​custom

Version: v2025-01-13Includes use: Yes

Behavior name: Log Custom Details

Logs custom details from the origin response in the Log Delivery Service report.

Default behavior

These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.

data "akamai_property_rules_builder" "log_custom" {
  rules_v2025_02_18 {
    name     = "Log Custom Details"
    comments = "Logs custom details from the origin response in the Log Delivery Service report."
    behavior {
      log_custom {
        log_custom_log_field = false
      }
    }
  }
}
"behaviors": [
  {
  "name": "logCustom",
  "options": {
    "logCustomLogField": false
    }
  }
]

Options

Option Description
log_custom_log_field
Whether to append additional custom data to each log line.
custom_log_field
Specifies an additional data field to append to each log line with a maximum of 1000 bytes. For example, round-trip: {{builtin.AK_CLIENT_TURNAROUND_TIME}}ms logs the total time to complete the response.

For more information, see Support for variables.

Note: Since this option can specify both a request and response, it overrides any custom_log_field settings in the report behavior.