sls

sls sink is used to send logs to Alibaba Cloud SLS.

Example

  1. sink:
  2. type: sls
  3. name: demo
  4. endpoint: cn-hangzhou.log.aliyuncs.com
  5. accessKeyId: ${id}
  6. accessKeySecret: ${secret}
  7. project: test
  8. logstore: test1
  9. topic: myservice

endpoint

fieldtyperequireddefaultdescription
endpointstringtrueSLS storage domain name

You can see it in the project overview on the specific project page.

accessKeyId

fieldtyperequireddefaultdescription
accessKeyIdstringtrueFor accessKeyId,please refer to the access credential management of Alibaba Cloud account.

It is recommended to use a sub-account of Alibaba Cloud. The sub-account needs to have the corresponding project and logstore permissions.

accessKeySecret

fieldtyperequireddefaultdescription
accessKeySecretstringtrueFor accessKeySecret,please refer to the access credential management of Alibaba Cloud account.

project

fieldtyperequireddefaultdescription
projectstringtrueproject name in SLS

logstore

fieldtyperequireddefaultdescription
logstorestringtruelogstore name is SLS

topic

fieldtyperequireddefaultdescription
topicstringfalseThe log topic is the basic management unit of the log service. You can specify a topic when collecting logs to distinguish logs