All Products
Search
Document Center

DataWorks:LogHub

Last Updated:Mar 26, 2026

Connects DataWorks to LogHub (Simple Log Service) as a data source for reading log data.

  • Data source type: loghub

  • Supported configuration mode (ConnectionPropertiesMode): UrlMode (connection string mode)

Parameters

Connection string mode

ParameterTypeRequiredExampleDescription
regionIdStringYescn-shanghaiThe ID of the region where the LogHub project resides.
endpointStringYeshttp://cn-beijing.log.aliyuncs.comThe endpoint of LogHub.
projectStringYesproject-nameThe name of the LogHub project.
accessIdStringYesxxxxxThe AccessKey ID used to authenticate access in AccessKey mode.
accessKeyStringYesxxxxxThe AccessKey secret used to authenticate access in AccessKey mode.
envTypeStringYesDevThe 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"
}