---
name: vpc-fl-activate
title: Suspending and resuming a flow log collector
description: You can suspend and resume a flow log collector by using the UI, the CLI, or the API.
last-updated: 2026-06-11
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/vpc?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Suspending and resuming a flow log collector
{: #managing-flow-log-collectors_activate}

You can suspend and resume a flow log collector by using the UI, the CLI, or the API.

After you create a flow log collector, its default state is `Active`.
{: note}

## Suspending and resuming a flow log collector in the console
{: #fl-managing-ui}
{: ui}

To suspend an `Active` flow log collector, click the Actions menu ![Actions menu](../icons/action-menu-icon.svg "Actions") and select **Suspend**.

Suspending the flow log stops the flow log from writing to the IBM Cloud&reg; Object Storage bucket.
{: note}

To resume a suspended flow log, select **Resume** from the Actions menu ![Actions menu](../icons/action-menu-icon.svg "Actions").

Alternatively, you can suspend and resume a flow log collector from the flow log's details page using the **Active**/**Inactive** switch.
{: tip}

## Suspending and resuming a flow log collector from the CLI
{: #fl-managing-cli}
{: cli}

Before you begin, [set up your CLI environment](https://cloud.ibm.com/docs/vpc?topic=vpc-set-up-environment&interface=cli&format=markdown).

To suspend or resume a flow log collector by using the CLI, you must pass a **true** or **false** value to the **--active** flag on the **flow-log-update** command.


```sh
ibmcloud is flow-log-update FLOW_LOG --active (true|false) [--json]
```
{: pre}

Where:

`FLOW_LOG`
:   ID of the flow log instance.
`--active`
:   The intended `active` status after the update. Set to `true` to resume or `false` to suspend.
`--json`
:   Formats the output in JSON.



## Suspending and resuming a flow log collector with the API
{: #fl-managing-api}
{: api}

To suspend and resume flow log collectors by using the API, follow these steps:

1. Set up your [API environment](https://cloud.ibm.com/docs/vpc?topic=vpc-set-up-environment&format=markdown#api-prerequisites-setup) with the right variables.
1. Store your `FlowLogID01` in a variable to be used in the API command:

   ```sh
   export FlowLogID01="<your_flow_log_id>"
   ```
   {: pre}

1. Choose either to suspend or resume a flow log:

   * To suspend a flow logs collector:

      ```sh
      curl -s -X PATCH \
      "$vpc_api_endpoint/v1/flow_log_collectors/$FlowLogID01?version=$api_version&generation=2" \
      -H "Authorization: Bearer $iam_token" \
      -d '{ "active": false }' | jq
      ```
      {: pre}

   * To resume a flow log collector's operation:

      ```sh
      curl -s -X PATCH \
      "$vpc_api_endpoint/v1/flow_log_collectors/$FlowLogID01?version=$api_version&generation=2" \
      -H "Authorization: Bearer $iam_token" \
      -d '{ "active": true }' | jq
      ```
      {: pre}

      The example uses `jq` as a parser, a third-party tool licensed under the [MIT license](https://stedolan.github.io/jq/download/). `jq` might not come preinstalled on all VPC images available when you create an instance. You might need to install `jq` before use or use another parser of your choice.
      {: note}