# Add a Trace Flag Entry for the Default Automated Process User

To collect logs for an event subscription, add a trace flag entry for the Automated Process entity in Setup.

1. From Setup, in the Quick Find box, enter `Debug Logs`, then click **Debug Logs**.

2. Click **New**.

3. For Traced Entity Type, select **Automated Process**.

4. Select the time period to collect logs. The start and expiration dates default to the current date and time. To extend the expiration date, click the end date input box, and select the next day from the calendar.

5. For Debug Level, click **New Debug Level**. Enter a name, such as `CustomDebugLevel`, and accept the defaults.

6. Click **Save**.

## Next Steps

To collect logs for the user who publishes the events, add another trace flag entry for that user.
