# IRPCEventsAdmin.EnableEventLogging

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/EnableEventLogging/

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Turns event logging of the vault on or off.

- **Service:** [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md) `MFiles.IRPCEventsAdmin`
- **gRPC method:** `/MFiles.IRPCEventsAdmin/EnableEventLogging`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/enable-event-logging`
- **Request:** [`EnableEventLoggingRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/EnableEventLogging/index.md#request)
- **Response:** [`EnableEventLoggingResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/EnableEventLogging/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires a vault session and the vault right `manage_events`.
- Turning logging off fails with "This operation is not allowed when the advanced event log
  features are enabled." in vaults that use those features.
- Changes only future logging; existing events stay.

<a id="request"></a>

## Request: EnableEventLoggingRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `enable` | `bool` | True to turn event logging on, false to turn it off. |

<a id="response"></a>

## Response: EnableEventLoggingResponse

No fields.
