检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 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
Deleting a Keyword Alarm Rule Function This API is used to delete a keyword alarm. Calling Method For details, see Calling APIs.
Deleting Log Ingestion Configurations Function This API is used to delete log ingestion configurations. Calling Method For details, see Calling APIs.
Deleting a Message Template Function This API is used to delete a notification template. Calling Method For details, see Calling APIs.
Deleting a SQL Alarm Rule Function This API is used to delete a SQL alarm. Calling Method For details, see Calling APIs.
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.
Deleting a Structuring Rule Function This API is used to delete a structuring rule of a log stream. Calling Method For details, see Calling APIs.
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.
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.
Deleting a Log Transfer Task Function This API is used to delete an OBS, DIS, or DMS transfer task. Calling Method For details, see Calling APIs. URI DELETE /v2/{project_id}/transfers Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Project ID.
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.
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. For details about how to top up your account, see Topping Up an Account. If data stored in OBS is no longer used, you can 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.