All Products
Search
Document Center

Simple Log Service:Install Simple Log Service SDK for Go

Last Updated:Nov 12, 2024

To use the Simple Log Service SDK for Go, you need to install it first. This topic explains the installation process.

Prerequisites

  • Simple Log Service is activated. For more information, see Activate Simple Log Service.

  • An AccessKey pair is created and obtained. For more information, see AccessKey pair.

    An Alibaba Cloud account has permissions to call all API operations. If you use the AccessKey pair of an Alibaba Cloud account, security risks may occur. We recommend that you create and use a RAM user to call API operations or perform routine O&M. Make sure that the RAM user is granted the permissions to perform operations on Simple Log Service resources. For more information, see Grant permissions to a RAM user.

  • Go are installed. For more information, see Install Go.

Install or upgrade Simple Log Service SDK for Go

Run the following command as an administrator in the command-line interface (CLI) to install or upgrade Simple Log Service SDK for Go:

go get -u github.com/aliyun/aliyun-log-go-sdk
Note

No messages appear during the installation. The installation process requires a few minutes to complete. If the installation fails, run the preceding command again.

If the command is executed and no error is returned, Simple Log Service SDK for Go is installed or upgraded.

What to do next

After installing the Simple Log Service SDK for Go, you need to configure access credentials.