评审背景
openUBMC当前不支持入侵检测日志,web界面syslog上报页签“支持日志类型”中入侵检测日志应裁剪,新增字段表示日志类型是否支持
方案介绍
根据是否支持相关后端功能来设置该字段,若后端功能支持则同步支持上报对应日志类型
决策点
web rest接口新增属性表示syslog支持上报的日志类型
详细描述
Uri:/UI/Rest/GenericInfo
变化类型:新增属性
操作类型:Get
应用场景:根据获取到的日志类型判断syslog是否支持对应日志上报
详细描述:
在/UI/Rest/GenericInfo接口,Syslog下新增LogTypeSupported,其中新增属性IntrusionDetectionLog、OperationLog、SecurityLog、EventLog、DiagnosticLog、BmcComLog、SysComLog、ChipLog
| 属性名称 | 取值类型 | 取值范围 | 默认值 | 操作权限 | 约束 |
|---|---|---|---|---|---|
| LogTypeSupported { | object | NA | NA | NA | 无 |
| IntrusionDetectionLog | boolean | true:支持入侵检测日志 false:不支持入侵检测日志 |
false | read:ReadOnly | 无 |
| OperationLog | boolean | true:支持操作日志 false:不支持操作日志 |
true | read:ReadOnly | 无 |
| SecurityLog | boolean | true:支持安全日志 false:不支持安全日志 |
true | read:ReadOnly | 无 |
| EventLog | boolean | true:支持事件日志 false:不支持事件日志 |
true | read:ReadOnly | 无 |
| DiagnosticLog | boolean | true:支持故障诊断日志 false:不支持故障诊断日志 |
false | read:ReadOnly | 无 |
| BmcComLog | boolean | true:支持BMC串口日志 false:不支持BMC串口日志 |
false | read:ReadOnly | 无 |
| SysComLog | boolean | true:支持系统串口日志 false:不支持系统串口日志 |
false | read:ReadOnly | 无 |
| ChipLog | boolean | true:支持板卡芯片日志 false:不支持板卡芯片日志 |
false | read:ReadOnly | 无 |
| } |
响应示例:
{
"Syslog": {
"ProtocolSupported": {
"TLS": true,
"TCP": true,
"UDP": true,
"RELP": false
},
"LogTypeSupported": {
"IntrusionDetectionLog": false,
"OperationLog": true,
"SecurityLog": true,
"EventLog": true,
"DiagnosticLog": false,
"BmcComLog": false,
"SysComLog": false,
"ChipLog": false,
}
}
}
具体日志支持情况需要结合后端能力支持情况返回
评审结论
同意web rest接口/UI/Rest/GenericInfo新增属性LogTypeSupported,具体如下:
Uri:/UI/Rest/GenericInfo
操作类型:GET
新增属性:LogTypeSupported,类型为object,包含属性IntrusionDetectionLog、OperationLog、SecurityLog、EventLog、DiagnosticLog、BmcComLog、SysComLog、ChipLog,类型均为boolean,参见详细描述