This capability requires Rules Engine - Advanced Rules which must be purchased separately. Contact your CDN account manager to activate it.
Category: Logs
Purpose: Determines the format and the content that will be assigned to the custom log field in a raw log file and log data delivered via Real-Time Log Delivery. Use this feature to add request and response header values to your log data.
Raw Log Files Only: By default, the custom log field is called "x-ec_custom-1." However, the name of this field can be customized from the Raw Log Settings page.
The formatting that you should use to specify request and response headers is defined below.
Header Type | Format | Examples |
---|---|---|
Request Header |
%{RequestHeaderReplace this term with the name of the desired request header.}iThis letter identifies that the header being specified provides information that is inbound to our CDN. |
%{Accept-Encoding}i %{Referer}i %{Authorization}i |
Response Header |
%{ResponseHeaderReplace this term with the name of the desired response header.}oThis letter identifies that the header being specified provides information that is outbound from our CDN. |
%{Age}o %{Content-Type}o %{Cookie}o |
Key information:
When specifying multiple headers, it is recommended to use a separator to identify each header.
For example, an abbreviation may be used to identify each header.
Sample Syntax:
This feature defines the value that will be set for the custom log field. If this feature is applied multiple times to the same request, then the last instance applied to the request will overwrite all previous instances.
Default Value: