---
schema_version: "1"
id: d6e507e3adae6e0d4891f4a4ce15b2da5016eb939fe968c7772ef4c42169b018
title: Enable Enhanced Event Logs
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_setup_enhanced_event_logs.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_setup_enhanced_event_logs.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1aa4e0ca65f34308da31d8589f91b51bb49c9a66a16657d95e4b79ca778496a6
description: "Event logs capture the events and user messages in an agent session to help you test and troubleshoot your agent. In supported agent types, enable enhanced event logs to store conversation data and view all session activity in one place. When enhanced event logs aren't enabled, events associated with agent and user messages (such as Message sent: and User response:) are logged, but the messages themselves aren't included in the event."
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Enable Enhanced Event Logs

Event logs capture the events and user messages in an agent session to help you test and troubleshoot your agent. In supported agent types, enable enhanced event logs to store conversation data and view all session activity in one place. When enhanced event logs aren't enabled, events associated with agent and user messages (such as Message sent: and User response:) are logged, but the messages themselves aren't included in the event.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d187424e78">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d187424e78 ">To enable enhanced event logs:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d187424e78 ">Manage AI Agents AND <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;type=5&amp;language=en_US" target="_blank">the required permissions for your agent
                type</a></td>

          </tr>
        </tbody>
      </table>

Event logs store key details about each session to help you interpret the session activity.

 
| Column | Description |
| --- | --- |
| Connection | Indicates the channel of the agent session. |
| Dropped | Indicates that the session ended for a reason other than the user ending it, such as a timeout or error. |
| Duration | Indicates the length of the agent session. |
| Error | Indicates that an error occurred in the session. |

Enable enhanced event logs to view user messages as well as agent messages and events. View more information about the session, including any errors, when you click the session ID. While enhanced event logs aren’t required for Agentforce Testing Center or Agent Builder, they can add valuable context for testing. We recommend that you enable them as part of your overall testing strategy.

To use event logs, [verify Data 360 in your org and turn on Einstein data collection and storage](https://help.salesforce.com/s/articleView?id=ai.generative_ai_enable.htm&type=5&language=en_US). Event logs store information for seven days and consumes Data 360 credits. See [Generative AI Usage and Billing](https://help.salesforce.com/s/articleView?id=ai.generative_ai_usage.htm&type=5&language=en_US)

1. From Setup, in the Quick Find box, enter and then select **Agentforce Agents**.
2. Select your agent.
3. Click the edit icon next to **Keep a record of conversations with enhanced event logs to review agent behavior**.
4. Select **Keep a record of conversations with enhanced event logs to review agent behavior**.
5. Save your changes.

#### See Also

- [_Video_: View Agentforce Conversation Logs](https://youtu.be/1As1USNNYtE)