MediaTailor ad insertion session logs are sometimes verbose. To reduce log costs, you can
define the percentage of session logs that MediaTailor sends to Amazon CloudWatch Logs. For example, if
your playback configuration has 1000 ad insertion sessions and you set a percentage
enabled value of 60
, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs.
MediaTailor decides at random which of the sessions to send logs for. If you want to view logs
for a specific session, you can use the debug log
mode.
When you set a logging percentage, MediaTailor automatically creates a service-linked role that grants MediaTailor the permissions it requires to write CloudWatch Logs to your account. For information about how MediaTailor uses service-linked roles, see Using service-linked roles for MediaTailor.
Creating a log configuration
To control the percentage of session logs that MediaTailor writes to CloudWatch Logs, you create a log configuration for your playback configuration. When you create a log configuration, you specify a playback configuration name, and a percent enabled value.
To create a log configuration for an existing playback configuration
Sign in to the AWS Management Console and open the MediaTailor console at https://console.aws.amazon.com/mediatailor/
. -
On the Playback configuration pane, select the playback configuration that you'd like to set the log configuration for.
-
Choose Edit.
-
Under Log configuration, specify a percent enabled value.
To create a log configuration for a new playback configuration
-
Follow the procedure in Log configuration.
Deactivating a log
configuration
After you create a log configuration, you can't delete it—you can only deactivate it. To deactivate the log configuration, set the percent enabled value to 0 with the MediaTailor console or API. This turns off all session logging for that playback configuration.
If you want to delete the service-linked role that MediaTailor uses for the log configuration(s) in your account, you must first deactivate all of your log configurations. For information about how to delete the service-linked role, see Using service-linked roles for MediaTailor.
To deactivate log configuration on a playback configuration
Sign in to the AWS Management Console and open the MediaTailor console at https://console.aws.amazon.com/mediatailor/
. -
On the Playback configuration pane, select the playback configuration that you'd like to deactivate log configuration on.
-
Choose Edit.
-
Under Log configuration, set the percent enabled value to
0
. This turns off all session logging for this playback configuration. -
Select Save.