bk-log
bk-log copied to clipboard
字段提取功能问题
版本信息
- saas&后台版本:4.2.653
json提取方式问题
- 问题描述:json清洗后带特殊字符的字段重命名后前端校验不通过;
- 理想结果:json清洗后带特殊字符的字段重命名,只需要校验重命名字段格式,而不需要校验原始字段;
- 问题截图:
- 日志原文:
{
"@timestamp": "2021-11-05T22:10:00.000Z",
"@version": "1",
"program": "/usr/sbin/cron",
"host": "127.0.0.1",
"timestamp": "Nov 6 06:10:00",
"message": "(root) CMD ( /usr/libexec/atrun)",
"priority": 78,
"pid": "39172",
"facility_label": "clock",
"logsource": "ELI-PC",
"severity_label": "Informational",
"severity": 6,
"facility": 9
}
时间字段清洗问题
- 问题描述:“2021-11-05T22:10:00.000Z” 时间数据用“YYYY-MM-DDTHH:mm:ss.SSSZ”格式清洗失败;
- 理想结果:时间字段和数据格式匹配应该清洗成功;
- 问题截图:
- 日志原文:
{
"@timestamp": "2021-11-05T22:10:00.000Z",
"@version": "1",
"program": "/usr/sbin/cron",
"host": "127.0.0.1",
"timestamp": "Nov 6 06:10:00",
"message": "(root) CMD ( /usr/libexec/atrun)",
"priority": 78,
"pid": "39172",
"facility_label": "clock",
"logsource": "ELI-PC",
"severity_label": "Informational",
"severity": 6,
"facility": 9
}
@ziijiawen 看下第一个问题