The service log feature of Simple Log Service helps you record log data about the operations that are performed on the resources of a project. This feature also provides dashboards that allow you to analyze data in multiple dimensions. You can use this feature to view the service status of Simple Log Service in real time and improve O&M efficiency.
Default configuration item
When the service log feature is enabled for a project, the generated log data is classified and stored in one of the dedicated Logstores. By default, Simple Log Service automatically creates the following two dedicated Logstores:
For more information about log types and fields, see Log types.
By default, two shards are created for each Logstore and the automatic sharding feature is enabled. For more information, see Enable automatic sharding.
Log retention period
By default, log data is retained for 30 days. You can modify the retention period. For more information, see Manage a Logstore.
By default, the indexing feature is enabled for all collected log data. If you no longer need to query and analyze data or configure alert rules, you can click Index Attributes in the upper-right corner of the Search & Analysis page to disable the indexing feature.
The following dashboards are automatically created:
For more information, see Service log dashboards.
Check whether data is evenly written and consumed among shards
You can use predefined dashboards to view the data write and consumption trends of shards and check whether data is evenly written or consumed among shards.
Multiple Logstores in a project may share the same shards. To view the data writes to multiple shards of a Logstore, you can specify the Logstore as a filter condition.
Monitor API request status
You can call API operations to write log data, consume log data, and create projects or Logstores. A log is generated in the internal-operation_log Logstore each time an API operation is called. If an API request fails, the value of the Status field in the generated log is an integer that is greater than 200, for example, 404. You can monitor API requests by viewing the number of logs in which the value of the Status field is greater than 200.
View Logtail status
After you enable the collection of important logs, Simple Log Service automatically creates the following Logtail-related dashboards: Logtail Overall Status, Logtail File Collection Monitoring, and Logtail Exception Monitoring. You can use these dashboards to monitor the status of Logtail.