All Products
Search
Document Center

Simple Log Service:Function Compute execution logs

Last Updated:Dec 20, 2024

Simple Log Service and Function Compute jointly launch the logging feature that allows you to collect function invocation logs to Simple Log Service Logstores. You can debug code, troubleshoot errors, and analyze data based on the logs. This topic describes the assets, billing, and limits of the logging feature.

Assets

  • Project and Logstore

    Warning

    Before you disable the logging feature, do not delete the project or Logstore that is related to function invocation logs. Otherwise, function invocation logs cannot be sent to Simple Log Service.

    • If you enable the logging feature when you create a service, Simple Log Service creates a project named aliyun-fc-Region ID-Random ID and a dedicated Logstore named function-log by default.

      Important

      If you have enabled the pay-by-ingested-data billing mode, Simple Log Service creates a dedicated Logstore that uses the pay-by-ingested-data billing mode by default. If you want to switch the billing mode from pay-by-ingested-data to pay-by-feature, you can modify the configuration of the Logstore. For more information, see Modify the configurations of a Logstore.

    • If you enable the logging feature when you change the configuration of a service, you can select a project and Logstore based on your business requirements.

      Important

      When you create a custom Logstore, note that billable items that are involved vary based on the billing mode of the Logstore. For more information, see Billable items.

  • Dashboard

    Simple Log Service does not generate a dedicated dashboard after you enable the feature. You can create a custom dashboard based on your business requirements.

Billing

  • You are not charged for the logging feature on the Function Compute side.

  • If your Logstore uses the pay-by-feature billing mode, you are charged for storage, read traffic, number of requests, data transformation, and data shipping after the logs are collected from Function Compute to Simple Log Service. The fees are included in the bills of Simple Log Service. For more information, see Billable items of pay-by-feature.

  • If your Logstore uses the pay-by-ingested-data billing mode, you are charged only for read traffic over the Internet after the logs are collected from Function Compute to Simple Log Service. The fees are included in the bills of Simple Log Service. For more information, see Billable items of pay-by-ingested-data.

Limits

You can write only function invocation logs to the Logstore that is involved. No limits are imposed for features such as query, analysis, alerting, and consumption.