Moving an Agent Configuration Between Compartments

Move an agent configuration in Logging to a different compartment.

    1. Open the navigation menu and click Observability & Management. Under Logging, click Agent Configurations.
    2. Under List scope, select the compartment that contains the agent configuration that you want to move.
    3. Click the name of the agent configuration.
    4. On the agent configuration details page, click Move Resource.
    5. In the Move resource dialog box, choose the new compartment and then click Move resource.
  • Use the oci logging agent-configuration change-compartment command and required parameters to move an agent configuration for logging between compartments:

    oci logging agent-configuration change-compartment --config-id config_ocid [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangeUnifiedAgentConfigurationCompartment operation to move an agent configuration for logging between compartments.