CLS supports self-service bill and usage query in the following steps:
Viewing Bills
Viewing log topic costs
1. Log in to the Billing Center and enter the Bill Details page. 2. In the All Products drop-down list, select "CLS" to view the CLS-related bills.
By default, the bill data is arranged by cost in descending order, and you can visually view log topics that cost the most.
With the bill time range selector on the top, you can switch the statistics time of the bills.
3. Select the log topic you want to view, and then click Bill Details.
4. Go to the detailed analysis of the current log topic bill.
On this page, you can view the following information:
Cost and proportion of each billable item in the bill of the log topic: When doing cost optimization, you can choose different policies based on the proportions of the traffic cost and storage cost. If the traffic cost occupies a large proportion, you can reduce the amount of logs printed on the log collection client or filter out useless logs through data processing. If the storage cost occupies a large proportion, in addition to the above two methods, you can shorten the log storage duration.
Monthly cost trend in the bill of the log topic: The information can be used for year-on-year analysis to determine whether there is an abnormal sudden increase in the cost.
Classifying services by cost allocation tags
When CLS is shared by different business departments, the CLS costs need to be allocated among the business departments. In this case, you can use the cost allocation tag feature to associate the log topic fees with the business departments. 1. Create a business Tag. For details, see Create Tag.
Tag Key: for example, "service"
Tag Value: for example, "service A" and "service B"
2. Bind a log topic.
Binding on the CLS Console
Binding on the Tag Console
1. Log in to the CLS console, and enter the Log Topic page. 2. Select the existing or newly created log topic, and then click Edit Tag.
3. In the pop-up window, select the "service" tag you created, and click OK.
1. Log in to the tag console, and enter the Tag List page. 2. Select the corresponding business Tag, and click Bind Resource.
3. In the pop-up window, select "CLS" for **Cloud Service**, select "Log Topic" for **Resource Type**, select the corresponding log topic, and then click OK.
4. Select the newly created "service" Tag, and click Set as Cost Allocation Tag.
5. View bill statistics of different businesses by the ''service'' cost allocation tag.
Viewing the Log Topic Cost of Each Business
Viewing the Total Cost of Each Business
1. Log in to the Billing Center, and enter the Bill Details page. 2. Select "CLS" from the All Products drop-down list and select the newly configured "service" Tag key-value pair from the All Tags drop-down list to view the corresponding data.
1. Log in to the Billing Center, and enter the Bill Overview page. 2. Select the Summarize by Tag tab to view the data.
Querying Usage
Viewing the usage of a single log topic
1. Log in to the CLS console, and enter the Log Topic page. 2. In the log topic list, click to view the usage of the log topic. Viewing the usage of multiple log topics
2. Click Other Regions at the top to view the usage of log topics in different regions. (The traffic data in the list represents the cumulative traffic for the current day.)
3. In the log topic list, click to view the usage of the log topics. Customizing Analysis of Log Topic Usage
1. Log in to the Tencent Cloud Observability Platform console, and enter the Dashboard List page. 2. Click Create Dashboard to create a dashboard for analyzing log topic usage.
3. After completing the configuration, click Save in the top-right corner to save the dashboard.
For more instructions about the dashboard feature, see Dashboard in the operation guide of Tencent Cloud Observability Platform.