### sls sink *This sink supports sls (Log Service of Alibaba Cloud)*. To use the sls sink add the following flag: --sink=sls:?logStore=[your_logstore]&project=[your_project]&topic=[topic_for_log]®ionId=[your_region_id]&label= The following options are available: * `project` - Project of SLS instance. * `logStore` - logStore of SLS instance project. * `topic` - topic for every log sent to SLS. * `regionId` - optional param. Region of SLS instance. **Must set for self-built (non-Alibaba Cloud managed) clusters.** * `label` - Custom labels on alerting message.(such as clusterId), format is label=ClusterId,test_clusterId&label=RegionId,test_regionId&label=UserId,test_uid * `accessKeyId` - optional param. aliyun access key to sink to sls. * `accessKeySecret` - optional param. aliyun access key secret to sink to sls. * `internal` - optional param. if true, it will sink to sls through aliyun internal network connection. > **Note for self-built clusters:** If `regionId` is not specified, kube-eventer will try to get region info from the metadata service. In self-built clusters this usually fails and kube-eventer will fail at startup with an error like: > `can not create sls client because of Get "http://100.100.100.200/latest/meta-data/region-id": dial tcp 100.100.100.200:80: i/o timeout` > > Always set `regionId` explicitly when running outside of Alibaba Cloud managed environments. For example: --sink=sls:https://cn-hangzhou.log.aliyuncs.com?project=my_sls_project&logStore=my_sls_project_logStore&topic=k8s-cluster-dev®ionId=cn-hangzhou&label=Key1,Value1&label=Key2,Value2 For Alibaba Cloud VPC network access: --sink=sls:https://cn-hangzhou-internal.log.aliyuncs.com?project=my_sls_project&logStore=my_sls_project_logStore&topic=k8s-cluster-dev®ionId=cn-hangzhou&internal=true&label=Key1,Value1&label=Key2,Value2 #### How to config aliyun access key. *If you run kube-eventer manually, you will need to config aliyun access key to get the permission to sink your data to sls. when running on Aliyun Container Service, you don't need to config access key manually.* You can config kube-eventer global aliyun access key through kube-eventer deployment's template env params: env: - name: AccessKeyId value: "xxx" - name: AccessKeySecret value: "xxx" You can also config aliyun access key with sls sink optional params.