Alibaba Cloud Log Service data source

Updated at:

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

  1. Log on to the Quick BI console.

  2. Go to the page for adding a data source. For instructions, see Create a data source.

  3. On the Alibaba Cloud Database tab, click Log Service.

    image

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

    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.

    Note

    You 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.

  5. Click Test connection to verify the connection to the data source.

    image

  6. If the connection test is successful, click OK to add the data source.

Note

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__ < 1502692923

To 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.