

# Enable agent event streams to report agent activity in Connect Customer
<a name="agent-event-streams-enable"></a>

Agent event streams are not enabled by default. Before you can enable agent event streams in Connect Customer, create a data stream in Amazon Kinesis Data Streams. Then, choose the Kinesis stream as the stream to use for agent event streams. Though you can use the same stream for both agent event streams and contact records, managing and getting data from the stream is much easier when you use a separate stream for each. For more information, see the [Amazon Kinesis Data Streams Developer Guide](https://docs.aws.amazon.com/streams/latest/dev/).

When data is sent to Kinesis, the partition key used is the agent ARN. All events for a single agent are sent to the same shard, and any resharding events in the stream are ignored.

**Note**  
If you enable server-side encryption for the Kinesis stream you select for agent event streams, Connect Customer cannot publish to the stream. This is because it does not have permission to Kinesis `kms:GenerateDataKey`. To work around this, first enable encryption for scheduled reports or recordings of conversations. Next, create a AWS KMS key using KMS for encryption. Finally, choose the same KMS key for your Kinesis data stream that you use for encryption of scheduled reports or recordings of conversations so that Connect Customer has appropriate permissions to encrypt data sent to Kinesis. For more information about creating a KMS key, see [Creating Keys](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html).

**To enable agent event streams**

1. Open the Connect Customer console at [https://console.aws.amazon.com/connect/](https://console.aws.amazon.com/connect/).

1. On the console, choose the name in the **Instance Alias** column of the instance for which to enable agent event streams.

1. Choose **Data streaming**, then select **Enable data streaming**.

1. Under **Agent Events**, select the Kinesis stream to use, and then choose **Save**.