---
name: logs-router-target-default
title: How do I configure a default target in IBM Cloud Logs Routing
description: You can configure up to two default targets for collecting logs data that is not explicitly managed in the IBM Cloud Logs Routing account's routing rules.
last-updated: 2026-09-10
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/logs-router?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.

# How do I configure a default target in IBM Cloud Logs Routing
{: #target-default}

You can configure up to two default targets for collecting logs data that is not explicitly managed in the IBM Cloud Logs Routing account's routing rules.
{: shortdesc}


## What are the CLI prerequisites to configure a default target in IBM Cloud Logs Routing
{: #target-default-prereqs}
{: cli}

1. [Install the IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-install-ibmcloud-cli&format=markdown).

2. [Install the IBM Cloud Logs Routing CLI](https://cloud.ibm.com/docs/logs-router?topic=logs-router-logs-router-cli-config&format=markdown).

3. Ensure you have the [correct IAM permissions to configure IBM Cloud Logs Routing settings](https://cloud.ibm.com/docs/logs-router?topic=logs-router-iam&format=markdown).

4. Log in to IBM Cloud by running the following command: [ibmcloud login](https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_cli&format=markdown#ibmcloud_login)



## Identify targets
{: #target-default-step1}
{: cli}
{: step}

Get the list of targets that are defined in the account. Run the following command:

```text
ibmcloud logs-router target list
```
{: pre}

Copy the **ID** value of the targets that you want to configure in the account.

## Check your current account settings
{: #target-default-step2}
{: cli}
{: step}

To check your account's configuration and find out whether there are default targets that are configured, run the following command:

```text
ibmcloud logs-router setting get
```
{: pre}

The **Default targets** setting lists any targets in the account that are configured as default targets.

## Configure default targets
{: #target-default-step3}
{: cli}
{: step}

Get the list of IDs for the targets that you want to configure as default targets. Then, run the following command to configure the default targets in the account:

When you run the command, make sure that you include the target IDs of all the default targets in the account. The command replaces the exiting configuration with the new one.
{: important}

```sh
ibmcloud logs-router setting update --default-targets '[{TARGETS}]'
```
{: pre}

Where `TARGETS` represent the list of comma-separated target IDs.

For example,

```sh
ibmcloud logs-router setting update --default-targets '[{"id": "c3af557f-fb0e-4476-85c3-0889e7fe7bc4"}]'
```
{: pre}



## How do I configure a default target in IBM Cloud Logs Routing using the UI
{: #default_targets_ui}
{: ui}

You can manage your default targets using the IBM Cloud Logs Routing UI. For more information, see [Creating a target using the UI](https://cloud.ibm.com/docs/logs-router?topic=logs-router-target_icl&interface=ui&format=markdown#target_icl_ui_create) and [Updating a target using the UI](https://cloud.ibm.com/docs/logs-router?topic=logs-router-target_icl&interface=ui&format=markdown#target_icl_ui_update).