功能 #4753
log_agent开发
0%
描述
日志服务器代理端
1)支持网管的日志采集命令
2) 支持SFTP server
3)基本信息上报
4)网管纳管
5)复位BaseService
历史记录
由 钱 伯宁 更新于 14 天 之前
- 指派给 从 钱 伯宁 变更为 马 党旗
信息采集接口(其中192.168.62.241,192.168.62.248为指定基站ip,如有多个逗号后追加即可):
Recv Netconf Request: <get><target><running/></target><operation>query</operation><collectinfo xmlns='http://www.yunzhiruantong.com/yzrt/yzmm/action/softwaremanage'>{"type":"collectinfo","extension":"all-log","value":"1677634022,1768877757,history-test,192.168.62.241,192.168.62.248"}</collectinfo></get>
基本信息:
type BaseInfo struct {
Id string `json:"id"`
Ip string `json:"ip"`
System SystemInfo `json:"system"`
Software Software `json:"software"`
Modules map[string]ModuleInfo `json:"modules"`
InnerVerison uint32 `json:"innerVersion"` //内部版本号
Timezone string `json:"timezone"` //时区
}
type Software struct {
Status string `json:"status"`
VersionInfo SoftwareVersion `json:"versionInfo"`
}
type ModuleInfo struct {
Type string `json:"type"` // CU,DU,MIX
Version string `json:"version"`
ShowVersion string `json:"showVersion"`
InnerVer InnerVersionInfo `json:"innerVerInfo"`
Status string `json:"status"`
ErrorMessage string `json:"errorMessage"`
}
type SoftwareVersion struct {
RelTime string `json:"releaseTime" yaml:"releaseTime"`
InsTime string `json:"installTime" yaml:"installTime"`
Version string `json:"version" yaml:"version"`
ShowVersion string `json:"showVersion" yaml:"showVersion"`
}
type InnerVersionInfo struct {
InnerVer uint32 `json:"innerVersion"`
BuildTime string `json:"buildTime"`
Description string `json:"description"`
GitTag string `json:"gitTag"`
}
由 马 自伟 更新于 6 天 之前
- 状态 从 进行中 变更为 转测试
- 指派给 从 马 自伟 变更为 马 党旗
前端:
系统管理,增加基站日志服务,有日志接收开关,ip和端口。该修改是修改网管侧的baseService服务的信息
基站配置:参数配置/高级参数配置,会显示logwriter的日志采集ip和端口
php:
对基站日志服务,增加php的与oam_backend的接口转发
oam-backend
1.根据获取的logwriter的日志服务ip,
1)ip=127.0.0.1,则走原来的采集日志逻辑,由gnb_agent采集
2)ip=网管ip,则采集两部分,一个是gnb_agent采集,一个是网管自身采集
3)ip=其他ip,则采集两部分,一个是gnb_agent采集,一个是log_server采集
2.采集完成,进行合并处理,最后返回前端下载