SLS records operation logs and other log data for each project, and provides dashboards for real-time monitoring and O&M analysis.
Default configurations
|
Default configuration item |
Configuration details |
|
Logstore |
Two dedicated Logstores are created by default:
Note
|
|
Region |
|
|
Shard |
Each Logstore has two shards by default with Automatic sharding enabled. |
|
Log storage period |
Default retention is 30 days, modifiable for all Logstores except |
|
Index |
Enabled by default. To disable, go to Query & Analysis > Query & Analysis Properties and turn off indexing. |
|
Dashboard |
Created by default:
|
Scenarios
-
Determine if shard writes and consumption are balanced
Use the predefined dashboards to compare shard write and consumption trends.
Logstores in a project may share shards. Add a Logstore filter to view per-Logstore write distribution.
-
Monitor API request status
Each API call generates an entry in internal-operation_log. Failed requests return a Status code greater than 200 (for example, 404). Monitor entries where Status exceeds 200 to detect anomalies.
-
Check Logtail status
Enabling critical logs creates three Logtail dashboards by default: Overall Logtail status, Logtail file collection monitoring, and Logtail anomaly monitoring.