---
title: Changing log placement
summary: null
url: >-
  https://www.fastly.com/documentation/guides/integrations/streaming-logs/changing-log-placement
---

Fastly's [Real-Time Log Streaming](https://www.fastly.com/documentation/guides/integrations/streaming-logs/about-fastlys-realtime-log-streaming-features) feature allows you to specify where the logging call should be placed in the generated VCL.

## Available log placement options

You can choose one of the following log placement options:

- **Format Version Default** puts the log statement in [`vcl_log`](https://www.fastly.com/documentation/reference/vcl/subroutines/log/) if the logging endpoint is using [version 2 log format](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats#version-2-log-format). If the logging endpoint is using [version 1 log format](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats#version-1-log-format), puts the log statement in [`vcl_deliver`](https://www.fastly.com/documentation/reference/vcl/subroutines/deliver/).
- **None** prevents the log statement from being rendered in VCL. Use this option if you intend to write a log statement manually in [custom VCL](https://www.fastly.com/documentation/guides/full-site-delivery/fastly-vcl/about-fastly-vcl).

## Changing log placement

### Fastly Control Panel

Follow these instructions to update a logging endpoint's VCL placement using the Fastly control panel:

1.   Log in to the [Fastly control panel](https://manage.fastly.com).

2.   From the [**Home**](https://manage.fastly.com/home) page, select the appropriate service. You can use the search box to search by ID, name, or domain.

3.   Click **Edit configuration** and then select the option to clone the active version.

4. Click **Logging**.

5. Click the name of the logging endpoint you want to edit.

6. In the **Placement** section, select a placement for the logging endpoint.

   ![Logging placement options](/img/changing-log-placement-options.png)

7. Click **Update**.

8.   From the **Activate** menu, select **Activate on Production** to deploy your configuration changes.

### API

You can use the [API](https://www.fastly.com/documentation/reference/api/logging/) to update a logging endpoint's VCL placement. The API provides a `placement` field for specifying where in the generated VCL the logging call should be placed. It can be one of the following:

- `""` uses the default version placement when not set. Logging endpoints using [version 2 log format](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats#version-2-log-format) are placed in `vcl_log`. Logging endpoints using [version 1 log format](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats#version-1-log-format) are placed in `vcl_deliver`.
- `none` prevents the log statement from being rendered in VCL. Use this option if you intend to write a log statement manually in [custom VCL](https://www.fastly.com/documentation/guides/full-site-delivery/fastly-vcl/about-fastly-vcl).

  For example, to update the logging placement to `none`, the curl command would look like this:

  ```term copy
  $ curl -X PUT -H 'Fastly-Key: FASTLY_API_TOKEN' -H 'Content-Type: application/json' 'https://api.fastly.com/service/<your Fastly service ID>/version/<version_id>/logging/<logging_integration>/<logging_name>' --data-binary '{"placement":"none"}'
  ```

## Related content

- [Real-time log streaming](https://www.fastly.com/documentation/guides/integrations/streaming-logs/about-fastlys-realtime-log-streaming-features)
- [Logging API reference](https://www.fastly.com/documentation/reference/api/logging/)
- [Logging CLI reference](https://www.fastly.com/documentation/reference/cli/logging/)
