Configuration Reference
The Traffic Policy configuration reference for this action.Supported Phases
on_tcp_connect
on_http_request
on_http_response
Action Type
log
Configuration Fields
A key-value map of metadata that you would like to include in your events
for this action.
Behavior
Event logs
When this action is executed, the specified metadata will be collected on the tcp_connection_closed.v0 event under thetraffic_policy.logs
key.Examples
Logging with CEL Interpolation
The following Traffic Policy configuration will log a message with the endpoint identifier for every request.Example Traffic Policy Document
Example Request
Action Result Variables
The following variables are made available for use in subsequent expressions and CEL interpolations after the action has run. Variable values will only apply to the last action execution, results are not concatenated.A key-value map containing metadata that was logged during the action.
Each key represents a metadata attribute, and the value provides its
corresponding details.