All Products
Search
Document Center

Simple Log Service:Enable the log dump feature

Last Updated:Aug 18, 2023

This topic describes how to enable the log dump feature in the IoT Platform console to dump operational logs to Simple Log Service.

Prerequisites

  • Simple Log Service is activated.

  • A product is created and connected to a device. For more information, see Create a product.

Procedure

  1. Log on to the IoT Platform console.

    Important

    You can use the log dump feature by using only an Alibaba Cloud account.

  2. On the Overview page, click the instance that you want to manage.

  3. In the left-side navigation pane, choose Maintenance > Device Log.

  4. Select the product.

  5. On the IoT Platform Log Dump tab, click Enable.

  6. In the Log Configurations dialog box, click OK.

    After the log dump feature is enabled, the system creates a service-linked role named AliyunServiceRoleForIoTLogExport. IoT Platform assumes the role to access your Simple Log Service resources.

    Warning

    Do not revoke the permissions from the RAM role or delete the RAM role. If you revoke the permissions from the RAM role or delete the RAM role, IoT Platform logs cannot be sent to Simple Log Service.

What to do next

  • After you dump logs from IoT Platform to Simple Log Service, you can query, analyze, download, ship, and transform log data. You can also configure alerts for log data. For more information, see Common operations on logs of Alibaba Cloud services.

  • If you no longer need to dump logs to Simple Log Service, click Stop Dump on the IoT Platform Log Dump tab.

    After you disable the log dump feature, newly generated logs are no longer exported to Simple Log Service. Exported logs are automatically deleted when the specified data retention period expires.