CloudFront Realtime Log Config

CloudFront Realtime Log Config in AWS defines how CloudFront delivers detailed request logs in near real time. It specifies which data fields to include, the sampling rate, and the destination such as Kinesis Data Streams. This allows you to monitor, analyze, and respond to viewer requests with minimal delay, providing deeper visibility into traffic patterns and performance.

aws.cloudfront_realtime_log_config

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
arncorestringThe Amazon Resource Name (ARN) of this real-time log configuration.
end_pointscorejsonContains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
fieldscorearray<string>A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream. For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
namecorestringThe unique name of this real-time log configuration.
sampling_ratecoreint64The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
tagscorehstore