Connects DataWorks to LogHub (Simple Log Service) as a data source for reading log data.
Data source type:
loghubSupported configuration mode (ConnectionPropertiesMode):
UrlMode(connection string mode)
Parameters
Connection string mode
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
regionId | String | Yes | cn-shanghai | The ID of the region where the LogHub project resides. |
endpoint | String | Yes | http://cn-beijing.log.aliyuncs.com | The endpoint of LogHub. |
project | String | Yes | project-name | The name of the LogHub project. |
accessId | String | Yes | xxxxx | The AccessKey ID used to authenticate access in AccessKey mode. |
accessKey | String | Yes | xxxxx | The AccessKey secret used to authenticate access in AccessKey mode. |
envType | String | Yes | Dev | The environment type. Valid values: Dev (development environment), Prod (production environment). |
Configuration examples
Connection string mode
{
"envType": "Prod",
"endpoint": "http://cn-beijing.log.aliyuncs.com",
"project": "jiangcheng-test1",
"accessId": "xxx",
"accessKey": "xxx"
}