lts__UpdateStructTemplate
Update the structured configuration for a specified log stream in Huawei Cloud LTS, enabling adjustment of parsing rules and fields for log data.
Instructions
[LTS] 该接口用于修改指定日志流下的结构化配置。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>",
"demo_fields": "<demo_fields>",
"log_group_id": "<log_group_id>",
"log_stream_id": "<log_stream_id>",
"parse_type": "<parse_type>",
"project_id": "<project_id>",
"tag_fields": "<tag_fields>"
},
"name": "lts__UpdateStructTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | 结构化方式 | |
| layers | No | parse_type为json类型时必填,解析层数,目前固定是3 | |
| content | Yes | 示例日志 | |
| tokenizer | No | parse_type为split类型时必填,分隔符,分词符号 | |
| log_format | No | parse_type为nginx类型时必填,nginx日志格式模板 | |
| parse_type | Yes | 结构化方式 | |
| project_id | Yes | 项目ID | |
| tag_fields | Yes | tag字段列表(使用tag字段解析时需要,其中系统模板不支持使用tag字段)。 | |
| demo_fields | Yes | 结构化字段 | |
| regex_rules | No | parse_type为custom_regex类型时必填,regex提取规则 | |
| log_group_id | Yes | 日志组ID | |
| log_stream_id | Yes | 日志流ID |