Use Alibaba Cloud Toolkit

更新时间:
复制 MD 格式

Alibaba Cloud Toolkit is a free IDE plugin that integrates development, testing, operations, diagnostics, and deployment. You can use Alibaba Cloud Toolkit to query and analyze Log Service data directly from your IDE.

Prerequisites

Procedure

This section uses IntelliJ IDEA as an example to demonstrate how to use Log Service in Alibaba Cloud Toolkit. For more information, see Alibaba Cloud Toolkit User Guide.

  1. Open IntelliJ IDEA.

  2. On the top menu bar of IntelliJ IDEA, choose Tools > Alibaba Cloud > Preferences....

  3. In the left-side navigation pane of the Settings dialog box, choose Alibaba Cloud Toolkit > Accounts, enter your Access Key ID and Access Key Secret, and then click OK.

  4. On the bottom tab bar of IntelliJ IDEA, click Alibaba Cloud View.

  5. In the new panel, click Alibaba Cloud SLS.

  6. Select the region and Project for Log Service.

    The toolkit automatically loads the list of LogStores in the Project.

  7. In the Action column of the target LogStore, click View.

    The query and analysis page for the LogStore opens. The operations on this page are similar to those in the Log Service console. For more information, see Quick start for query and analysis.

More operations

On the Alibaba Cloud SLS tab, you can perform the following operations.

Location

Operation

Description

Left toolbar

open in editor

Opens all loaded logs in the editor.

Live Tail

Queries logs at regular intervals. The default interval is 5 seconds.

filter internal fields

Filters out fields that start with an underscore (_).

scroll to top

Scrolls to the top of the table.

scroll to bottom

Scrolls to the bottom of the table and loads more log entries.

Right-click a table entry

view context

Displays logs within a specific time range before and after the current log entry. The supported time ranges are 10 seconds, 1 minute, 5 minutes, and 10 minutes.

open in editor

Opens the current log entry in the editor.

Toolbar on the right side of the table

open in editor

Opens the current log entry in the editor.