Use the Go SDK to access all SLS API operations programmatically.
Releases
View the changelog and version history on GitHub.
Sample code
Available Go SDK samples:
|
Sample |
Description |
|
Create alerts (legacy). |
|
|
Create an index, write logs, and query logs. |
|
|
Create and modify a Logstore. |
|
|
Associate a machine group with a Logtail configuration. |
|
|
Use a consumer group to read data. |
|
|
Create a Logtail configuration in JSON pattern. |
|
|
Query logs. |
|
|
Create alerts (new). |
|
|
Create alert resources (new). |