---
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](/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`](/reference/vcl/subroutines/log/) if the logging endpoint is using [version 2 log format](/guides/integrations/streaming-logs/custom-log-formats#version-2-log-format). If the logging endpoint is using [version 1 log format](/guides/integrations/streaming-logs/custom-log-formats#version-1-log-format), puts the log statement in [`vcl_deliver`](/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](/guides/full-site-delivery/fastly-vcl/about-fastly-vcl).

## Changing log placement

<!-- TabbedPanels component: 
<Panel id="fastly-control-panel">

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

  1. <Partial name='step-login' inline />
  1. <Partial name='step-select-service' inline />
  1. <Partial name='step-click-edit' inline />
  1. Click **Logging**.
  1. Click the name of the logging endpoint you want to edit.
  1. In the **Placement** section, select a placement for the logging endpoint.

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

  1. Click **Update**.
  1. <Partial name='step-activate-deploy' inline />

</Panel>
<Panel id="api" label="API">

You can use the [API](/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](/guides/integrations/streaming-logs/custom-log-formats#version-2-log-format) are placed in `vcl_log`. Logging endpoints using [version 1 log format](/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](/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"}'
  ```

</Panel>
 -->


## Related content

* [Real-time log streaming](/guides/integrations/streaming-logs/about-fastlys-realtime-log-streaming-features)
* [Logging API reference](/reference/api/logging/)
* [Logging CLI reference](/reference/cli/logging/)
