|
| 1 | +--- |
| 2 | +title: Email Security logs |
| 3 | +pcx_content_type: how-to |
| 4 | +sidebar: |
| 5 | + order: 5 |
| 6 | +--- |
| 7 | + |
| 8 | +Email Security allows you to configure logs to send detection data to an endpoint of your choosing. |
| 9 | + |
| 10 | +To enable Logpush for Email Security: |
| 11 | + |
| 12 | +1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/). |
| 13 | +2. Select **Analytics & Logs** > **Logpush**. |
| 14 | +2. Select **Create a Logpush job**, then select **S3-Compatible**. |
| 15 | +3. Enter the **destination details**: |
| 16 | + - **Bucket**: Enter the bucket name. |
| 17 | + - **Endpoint URL**: Enter your endpoint URL. To find your endpoint URL: |
| 18 | + - On the Cloudflare dashboard, go to **R2 Object Storage** > **Overview** > Select your bucket. |
| 19 | + - Go to Settings, and copy and paste the **S3 API** URL. |
| 20 | + - **Bucket region**: Enter the Bucket region: Enter the region of your bucket: To find the bucket region: |
| 21 | + - On the dashboard, go to **R2 Object Storage** > **Overview** > Select your bucket. |
| 22 | + - Go to Settings, and find your region in **Location**. |
| 23 | + - Enter the **Access Key ID**. |
| 24 | + - Enter the **Secret Access Key**. |
| 25 | +4. Select **Continue**. Your destination has now been configured. |
| 26 | + |
| 27 | +## Audit logs |
| 28 | + |
| 29 | +Once you have configured your destination, you can audit your logs. |
| 30 | + |
| 31 | +1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/). |
| 32 | +2. Select **Analytics & Logs** > **Logpush**. |
| 33 | +3. Select **Audit logs**. |
| 34 | +4. **Configure logpush job**: |
| 35 | + - **Job name**: Enter the job name. |
| 36 | + - **If logs match**: Select **Filtered logs**: |
| 37 | + - Field: Choose ResourceType |
| 38 | + - Operator: starts with |
| 39 | + - Value: Enter `email_security` |
| 40 | + - **Send the following field**: Ensure **General** is selected. |
| 41 | +5. Select **Submit**. |
| 42 | + |
| 43 | +Your job has now been created successfully. |
| 44 | + |
| 45 | +To view the job you created: |
| 46 | + |
| 47 | +1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/). |
| 48 | +2. Go to **R2 Object Storage**, select your bucket. |
| 49 | +3. Select **Objects**. |
0 commit comments