IBM Cloud Docs
Template for tasks for migrating Log Analysis instances collecting logs in the account

Template for tasks for migrating Log Analysis instances collecting logs in the account

Template to plan migration from IBM® Log Analysis instances to IBM Cloud Logs instances.

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 planning

For each instance

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 xxx [--instance-name INSTANCENAME] [--instance-resource-group-id RESOURCEGROUPID] [--ecrn EVENT_NOTIFICATIONS_INSTANCE_CRN] [--api]|[-t -f]
    

    Add --api to migrate and create resources.

    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.

Manual tasks