---
title: fastly audit-log event-mapping create
summary: Create an audit log event mapping
url: https://www.fastly.com/documentation/reference/cli/audit-log/event-mapping/create
---

Create an audit log event mapping

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--name` | A descriptive name for the mapping | Yes | - |
| `--scope-type` | The category of Fastly resource the mapping applies to (account, vcl, wasm, ngwaf) | Yes | - |
| `--event-type` | An audit event type that triggers a notification. Set flag multiple times, or provide a comma-separated list, to specify multiple event types | Yes | - |
| `--integration-id` | The ID of an integration that should receive notifications. Set flag multiple times, or provide a comma-separated list, to specify multiple integrations | Yes | - |
| `--description` | A description of the mapping | No | - |
| `--scope-id` | The ID of a service or workspace to scope the mapping to. Set flag multiple times, or provide a comma-separated list, to specify multiple scope IDs. Omit to apply the mapping to all resources of the given scope type | No | - |
| `--json` | Render output as JSON | No | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

