更新时间:2024-08-02 GMT+08:00
场景五:使用default传参为日志不存在的字段填充默认值
- 原始日志
{ "content": "this is a log" } - 加工规则:
e_if(e_not_has("type"), e_set("type", "log")) - 加工结果
{ "type": "log", "content": "this is a log" }
父主题: 使用DSL加工函数清洗LTS日志数据
检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
{
"content": "this is a log"
}e_if(e_not_has("type"), e_set("type", "log")){
"type": "log",
"content": "this is a log"
}