All Products
Search
Document Center

CloudOps Orchestration Service:Deliver execution records

Last Updated:Aug 29, 2024

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 CloudOps Orchestration Service to Object Storage Service (OSS) or Simple Log Service for persistent storage. This way, you can query the execution records to perform operations such as behavior analysis, security analysis, resource change tracking, and compliance auditing. If this feature is disabled, you can view only the execution records that were generated in the previous 90 days in the CloudOps Orchestration Service 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 CloudOps Orchestration Service console.

  2. Enable the execution record delivery feature.

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

    2. On the Global Settings page, click the Deliver Execution Records tab.

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

      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 Simple 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 Simple Log Service project, see What is Simple Log Service? For more information about how to configure indexes for Logstores, see Create indexes.

        20211228112234

    3. Click OK. The execution record delivery feature is enabled.

  3. Execute a template. For more information, see Create an execution.

  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 Deliver Execution Records tab of the Global Settings page, click OSS Console to the right of the Storage space drop-down list.image

    2. You are navigated to the details page of the bucket that you select in Step 2. On the Objects page, view the delivery results of the execution records.setting-03

    3. Find the file that is generated after the execution records are delivered to OSS.1724899565353_5DAE0737-9CCE-4caf-A036-987D9B938735

    4. Click View Details in the Actions column of the file. 1724899577895_59E8CC24-ADCE-4c70-87DF-B3D2A44206D7

    5. In the View Details panel, click Download below the URL field. Open the downloaded file to view the details of the execution records. The following sample code provides an 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 Simple Log Service if you select Deliver Execution Records to Log Service in Step 2.

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

    1. On the Deliver Execution Records tab, click Log Service Console to the right of the Select Log Service Project drop-down list.settings-06

    2. You are navigated to the details page of the project that you select in Step 2. In the left-side Logstores list, click the name of the Logstore to which the execution records are delivered. Then, view the delivery results of the execution records.settings-04