Help Center> Log Tank Service> Best Practices> Collecting Statistics on LTS Expenses of Different Departments Based on Log Stream Tags
Updated on 2024-01-30 GMT+08:00

Collecting Statistics on LTS Expenses of Different Departments Based on Log Stream Tags

To collect statistics on the expenses of different departments in an enterprise on LTS, you can add tags to LTS log streams to identify different service departments. LTS will add these tags when uploading CDRs to the billing center. You can download LTS billing information from Billing > Bills > Bill Details. Then, you can collect statistics on expenses of different departments based on resource tags, providing a basis for expense allocation of the enterprise.

Prerequisites

The function of reporting CDRs by log stream is being tested by friendly users. To use this function to collect statistics on the expenses of different departments in LTS, submit a service ticket.

Solution

Collect statistics on LTS expenses of different departments by adding log stream tags.

This practice uses departments aa and bb as an example. First, add the group=groupaa tag to the log group of department aa and the group=groupbb tag to the log group of department bb. Then, export bills from the fee details and perform statistical analysis with Excel.

The prices mentioned in the following are only for reference. For details, see Price Calculator.

Procedure

  1. Log in to the LTS console.
  2. Move the cursor to the Tag column of the target log group and click .

    By adding a tag to a log group, you can apply the tag to an existing log stream in the log group. If a new log stream is added to the log group, you need to add a tag to the log stream separately. For details, see Tagging a Log Stream.

  3. On the Edit dialog box displayed, click Add Tags, enter the tag key group and tag value groupaa of department aa, and click OK.

  4. Move the cursor to the Tag column of the target log group and click .
  5. On the Edit dialog box displayed, click Add Tags, enter the tag key group and tag value groupbb of department bb, and click OK.

  6. After the tag is added successfully, the following information is displayed. It is estimated that the CDR can be generated one hour later. The screenshot is for reference only.

  7. On the top menu bar, choose Billing & Costs > Bills. The Bills page is displayed.
  8. Choose Transactions and Detailed Bills > Bill Details, choose a billing cycle, select Details for Data Period, and choose Service Type: Log Tank Service (LTS) for filters.

  9. Click to export fee details to the local host.

  10. In the exported excel file, filter Resource Tag column to view the expenditure details of departments aa and bb.

    The prices mentioned in the figure are only for reference. For details, see Price Calculator.