Alibaba Cloud Log Service data source
This topic shows you how to add an Alibaba Cloud Log Service data source.
Prerequisites
You have created a Log Service project.
You have enabled and configured an index. For more information, see Create index.
Limitations
Log Service data sources are supported only on the public cloud.
Procedure
Log on to the Quick BI console.
Go to the page for adding a data source. For instructions, see Create a data source.
On the Alibaba Cloud Database tab, click Log Service.

In the Configure connection dialog box, configure the following parameters.

Parameter
Description
Display name
The display name of the data source. This name appears in your list of data sources. Do not use special characters or include leading or trailing spaces.
Service endpoint
The endpoint used to access Log Service.
For more information, see Service endpoints.
NoteYou can use a public endpoint only if Log Service is in a region listed below. Otherwise, you must use a cross-region endpoint.
Philippines (Manila)
South Korea (Seoul)
Thailand (Bangkok)
Port
The port number used to connect to the service. The default value is 10005.
Project name
A project is the basic resource management unit in Log Service, used for resource isolation and control.
For more information, see Manage projects.
AccessKey ID and AccessKey Secret
The AccessKey ID and AccessKey Secret with permission to access the target project.
Log on to the RAM console to obtain the AccessKey ID and AccessKey Secret.
Click Test connection to verify the connection to the data source.

If the connection test is successful, click OK to add the data source.
For a Log Service data source, the WHERE clause in your query must include the __date__ or __time__ field to specify a time range. For example:
__date__ > '2017-08-07 00:00:00' and __date__ < '2017-08-08 00:00:00'
__time__ > 1502691923 and __time__ < 1502692923To specify a time range, set filters, parameters, or placeholders when you create a dataset.
Otherwise, the query returns data from only the last 15 minutes by default.
For more information, see Connect over JDBC.
Next steps
After you create the data source, you can create a dataset and analyze your data.
To add data tables or create custom SQL queries, see Create a dataset.
To add visualizations and analyze data, see Create a dashboard and Visualization overview.
To drill down, see Step 3: Drill-down settings and presentation.