All Products
Search
Document Center

CloudOps Orchestration Service:Deliver execution records

Last Updated:Dec 28, 2023

This topic describes how to deliver execution records in the CloudOps Orchestration Service (OOS) console. OOS allows you to use the execution record delivery feature to deliver execution records in OOS to Object Storage Service (OSS) or Log Service for persistent storage. This way, you can query the execution records to perform behavior analysis, security analysis, resource change tracking, and compliance auditing. If you do not enable this feature, you can view only the execution records that were generated in the last 90 days in the OOS console.

Important

You can use the execution record delivery feature only in the region in which you enable this feature. To use this feature in different regions, you must enable this feature in each of the regions.

Procedure

  1. Log on to the OOS console.

  2. Enable the execution record delivery feature.

    1. In the left-side navigation pane, click Save.image

    2. Specify the destination to which you want to deliver execution records.

      1. On the Deliver Execution Records tab, select Deliver Execution Records to OSS. From the Storage space drop-down list, select a bucket that you created in the OSS console. For more information about how to create a bucket, see Create buckets. You can also enter a subdirectory of the bucket in the Specify Directory (Prefix) field to deliver execution records to the subdirectory. If you do not specify this parameter, execution records are delivered to the default directory in OSS.

      2. On the Deliver Execution Records tab, select Deliver Execution Records to Log Service. From the Select Log Service Project drop-down list, select a project that you created in the Log Service console. Before you select a project, make sure that indexes are configured for the specified Logstore in the project to which you want to deliver execution records. For more information about how to create a Log Service project, see What is Log Service? For more information about how to configure indexes, see Configure indexes.

    3. Click Save in the lower-left corner.

  3. Execute a template. For more information, see Execute a template.

  4. View the execution records that are delivered to OSS if you select Deliver Execution Records to OSS in Step 2.

    To view the execution records that are delivered to OSS, perform the following steps:

    1. On the Save page, click OSS Console to the right of the Storage space drop-down list.

    2. On the Buckets page of the OSS console, click the name of the bucket that you select in Step 2. On the Objects page, view the delivery results of the execution records.image

    3. Find the file that is generated after the execution records are delivered to OSS.

    4. Click View Details in the Actions column of the file.image

    5. In the View Details panel, click Download below the URL field. Open the downloaded file to view the details of the execution records. Example:

      {
          "ExecutionId": "exec-c276ee521*********",
          "Description": null,
          "TemplateName": "Example",
          "TemplateId": "t-5c377ff********",
          "TemplateVersion": "v1",
          "Mode": "Automatic",
          "LoopMode": "Automatic",
          "ExecutedBy": "root.root(*******)",
          "StartDate": "2020-12-28T10:33:23Z",
          "EndDate": "2020-12-28T10:33:25Z",
          "CreateDate": "2020-12-28T10:33:23Z",
          "UpdateDate": "2020-12-28T10:33:23Z",
          "Status": "Success",
          "StatusMessage": null,
          "StatusReason": null,
          "CurrentTasks": [
              {
                  "TaskExecutionId": null,
                  "TaskName": null,
                  "TaskAction": null
              }
          ],
          "Counters": {
              "TotalTasks": 1,
              "SuccessTasks": 1,
              "FailedTasks": 0
          },
          "ParentExecutionId": null,
          "IsParent": false,
          "Parameters": {
              "Status": "Running",
              "RamRole": ""
          },
          "Outputs": "{\"InstanceIds\": [ \"i-bp1gs30bd*********\"]}",
          "SafetyCheck": "Skip",
          "RamRole": null,
          "Category": "Other",
          "Targets": null,
          "LastTriggerTime": null,
          "LastTriggerStatus": null,
          "LastSuccessfulTriggerTime": null,
          "ResourceStatus": null,
          "Path": "executionId=exec-c276ee521*********/",
          "Type": "execution"
      }
  5. View the execution records that are delivered to Log Service if you select Deliver Execution Records to Log Service in Step 2.

    To view the execution records that are delivered to Log Service, perform the following steps:

    1. On the Save page, click Log Service Console to the right of the Select Log Service Project drop-down list.image

    2. In the Log Service console, click the name of the project that you select in Step 2. In the left-side Logstore list, click the name of the Logstore to which the execution records are delivered. Then, view the delivery results of the execution records.