检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Does LTS Delete Logs That Have Been Transferred to OBS Buckets? The log transfer function only forwards existing logs and does not delete them.
Can I Manually Delete Logs on the LTS Console? No. Manual deletion is not supported. LTS automatically deletes logs when the retention duration ends. For details about how to set the log retention duration, see Managing Log Streams. Parent topic: Log Search and Analysis
Range N/A Example Requests Delete a keyword alarm by alarm ID.
Range N/A Example Requests Delete a log ingestion configuration.
Deleting a Message Template Function This API is used to delete a notification template. Calling Method For details, see Calling APIs.
Range N/A Example Requests Delete a SQL alarm rule based on its ID.
Range N/A Example Requests Delete a log group. DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id} /v2/{project_id}/groups/{log_group_id} Example Responses Status code: 400 Invalid request.
Range N/A Example Requests Delete the structuring rule of the current ID.
Deleting a Quick Search Function This API is used to delete a quick search. Calling Method For details, see Calling APIs.
Deleting an Active Alarm Function This API is used to delete an active alarm. Calling Method For details, see Calling APIs.
Range N/A Example Requests Deleting an ingestion rule DELETE /v2/{project_id}/lts/aom-mapping?id={id} DELETE https://{endpoint}/v2/{project_id}/lts/aom-mapping?id=3e14a212-a633-411d-a8e1-dc4042b1471a Example Responses Status code: 400 Bad Request: The request is invalid.
Range N/A Example Requests Delete a log transfer task based on its ID. DELETE https://{endpoint}/v2/{project_id}/transfers /v2/{project_id}/transfers?
URI DELETE /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Project ID.
Range N/A Example Requests Delete one or multiple host groups at a time.
to delete them.
Once this period ends, LTS will delete them. For example, if you set the retention period to 30 days, logs will be kept for 30 days before being deleted. You can specify the retention period when creating a log group or stream.
To delete a single rule, click Delete in the Operation column in the row that contains the rule, and then click Yes on the displayed page. To delete one or more rules, select them, click Delete above the rule list, and then click Yes on the displayed page.
For example, you can query API versions, create, query, and delete log groups or log streams. Table 1 describes the LTS APIs.
Avoiding and Handling Arrears Reduce the log storage duration or delete unwanted log streams in a timely manner. Top up your account in time. For details, see Top-Up and Payment. If data stored in OBS is no longer used, delete it to avoid further expenditures.
Deleting a Log Group You can delete a log group that is no longer needed. Deleting a log group will also delete the log streams and log data in the log group. If you want to delete a log group that is associated with a log transfer task, delete the task first.