IBM Cloud Docs
Template for migrating Activity Tracker instances in the account

Template for migrating Activity Tracker instances in the account

Template to plan migration from 1 IBM Cloud® Activity Tracker instance to 1 IBM Cloud Logs instance.

Overview

Migrating IBM Cloud® Activity Tracker instances to IBM Cloud Logs in IBM Cloud requires the configuration of the IBM Cloud Activity Tracker Event Routing service in the account and provisioning 1 or more IBM Cloud Logs instances. A migration tool is provided to help you migrate.

High-level view of the migration tool
High-level view of the migration tool

List of services that you might need for migration

List of permissions that you might need for migration

The following list outlines the IAM permissions that you need to migrate:

If you have the IAM permission to create policies and authorizations, you can grant only the level of access that you have as a user of the target service. For example, if you have viewer access for the target service, you can assign only the viewer role for the authorization. If you attempt to assign a higher permission such as administrator, it might appear that permission is granted, however, only the highest level permission you have for the target service, that is viewer, will be assigned.

For more information on permissions, see Required permissions for running the Migration tool.

Migration

For each instance, complete the following steps:

Step 1. Run the Migration tool command

You can run the migration tool as follows:

Run the Migration Tool in a development or staging environment to test and validate the migration.

    1. Set the API key that is required to create resources.

      Set the API key that you must configure to create resources for migration.

      Run export IC_API_KEY=xxxxxx in the command line where you plan to run the Terraform CLI commands.

      If running in Windows, use set IC_API_KEY=xxxxxx instead.

    2. Check you have the Terraform CLI installed. For more information, see Installing the Terraform CLI.

  • ibmcloud logging migrate create-resources --scope instance --instance-crn CRN_VALUE --platform --ingestion-key INGESTION_KEY [--instance-name INSTANCENAME] [--instance-resource-group-id RESOURCEGROUPID] [--ecrn EVENT_NOTIFICATIONS_INSTANCE_CRN] [--api]|[-t -f]
    

    Add --api to migrate and create resources. Notice that when you run the API mode, you will be ask to create resources in IAM and Event Notifications.

    Add -t -f to generate Terraform files and apply creation of resources. You are asked to confirm that you want to apply the scripts.

    You can add a new name for the instance that is created in Cloud Logs by adding the option --instance-name INSTANCENAME.

    You can change the resource group ID associated with the instance that is created in Cloud Logs by adding the option --instance-resource-group-id RESOURCEGROUPID.

    You can configure Event Notifications by adding destinations for your notification channels and topics and subscriptions to trigger alerts by adding the option --ecrn EVENT_NOTIFICATIONS_INSTANCE_CRN.

    This command will:

The Migration Tool only migrates configuration of selected resources.

Step 2. Manual tasks

Complete the following manual tasks: