edit-icon download-icon

Create a trail

Last Updated: Mar 21, 2018
  1. Log on to the ActionTrail console.

  2. Click Trail list in the navigation pane.

  3. Select a region, then click Create Trail. This is the home region of the trail.
    choose_region

  4. Enter a name for the trail.

  5. For Create new OSS Bucket:
    1. Select Yes, and enter a name for the bucket.
    2. Select No. In the OSS Bucket list, select a bucket.
  6. Move the slider to the right to Enable logging.

  7. Click Submit. If this is the first trail you create, there will be a window informing you to authorize ActionTrail to have access to OSS.

  8. You can change the OSS bucket on the console after the trail is created. Then the logs are stored in the new bucket.
    configure_trail

Note: The format of OSS storage path

  1. oss://<bucket>/<Log file prefix>/AliyunLogs/Actiontrail/<region>/<YYYY>/<MM>/<DD>/<Log data file>

An example path of a file stored in OSS is as follows.

  1. oss://mybucket/auditing/AliyunLogs/ActionTrail/cn-hangzhou/2015/12/16/xxx.gz

ActionTrail records are saved to an OSS bucket as logs in a compressed JSON formatted file. The maximum file size is 2 KB.
You can further analyze the logs using E-MapReduce or a third-party log analysis service.

Thank you! We've received your feedback.