Log Service SDK for Node.js encapsulates all API operations of Log Service. You can use Log Service SDK for Node.js to call API operations of Log Service in a convenient manner.

Release notes

For more information, see aliyun-sdk-js.

Sample code

Log Service SDK for Node.js provides a variety of sample code for your reference and use. The following table provides links to the sample code.
GitHub source code Description
All.js Examples on how to write logs, query logs, query Logstores, and query log distribution
BatchGetLogs.js Examples on how to perform batch queries
CreateLogStore.js Examples on how to create and modify Logstores
GetLogs.js Examples on how to query logs by using GetLogs
PutLogs.js Examples on how to write logs by using PutLogs
Shard.js Examples on how to manage shards