The invention discloses a system event log uploading method, which comprises: acquiring the system event log generated by the target server; converting the system event log into a syslog log; and uploading the syslog log to a remote log server using the syslog protocol. It can be seen that in this scheme, the system event log can be uploaded to the remote log server by converting the system event log generated by the target server into the syslog log, and the time cost and manpower cost caused by collecting the system event log of the server in large quantities can be reduced. The invention also discloses a system event log uploading device, device, system and computer readable storage medium, which can also realize the above technical effect.
【技术实现步骤摘要】
一种系统事件日志上传方法、装置及系统
本专利技术涉及日志上传
,更具体地说,涉及一种系统事件日志上传方法、装置、设备、系统及计算机可读存储介质。
技术介绍
基板管理控制器(BaseboardManagementController,简称BMC)是服务器特有的管理控制器,BMC的主要功能之一是自动监控服务器运行状态,并把发生的事件记录在系统事件日志(systemeventlog,简称SEL)中。BMC的收集SEL日志的功能可以帮助用户和运维人员查看BMC的运行状态,排查的故障原因。目前,服务器的SEL日志并不支持上传到远程服务器,只支持通过IPMI命令导出以及WEB界面导出。这种传统的导出系统事件日志的方式,对大批量服务器而言,时间成本和人力成本较大。
技术实现思路
本专利技术的目的在于提供一种系统事件日志上传方法、装置、设备及计算机可读存储介质,以实现批量的上传系统事件日志,减少时间成本及人力成本。为实现上述目的,本专利技术实施例提供了如下技术方案:一种系统事件日志上传方法,包括:获取目标服务器产生的系统事件日志;将所述系统事件日志转换为syslog日志;利用syslog协议将所述syslog日志上传至远程日志服务器。其中,所述利用syslog协议将所述syslog日志上传至远程日志服务器,包括:利用syslog协议以及UDP协议,将所述syslog日志上传至远程日志服务器。其中,所述将所述系统事件日志转换为syslog日志,包括:解析所述系统事件日志,确定所述系统事件日志的日志等级及日志内容;利用所述系统事件日志的日志等级及日志内容生成所述syslog ...
【技术保护点】
1.一种系统事件日志上传方法,其特征在于,包括:获取目标服务器产生的系统事件日志;将所述系统事件日志转换为syslog日志;利用syslog协议将所述syslog日志上传至远程日志服务器。
【技术特征摘要】
1.一种系统事件日志上传方法,其特征在于,包括:获取目标服务器产生的系统事件日志;将所述系统事件日志转换为syslog日志;利用syslog协议将所述syslog日志上传至远程日志服务器。2.根据权利要求1所述的系统事件日志上传方法,其特征在于,所述利用syslog协议将所述syslog日志上传至远程日志服务器,包括:利用syslog协议以及UDP协议,将所述syslog日志上传至远程日志服务器。3.根据权利要求2所述的系统事件日志上传方法,其特征在于,所述将所述系统事件日志转换为syslog日志,包括:解析所述系统事件日志,确定所述系统事件日志的日志等级及日志内容;利用所述系统事件日志的日志等级及日志内容生成所述syslog日志。4.一种系统事件日志上传装置,其特征在于,包括:获取模块,用于获取目标服务器产生的系统事件日志;日志转换模块,用于将所述系统事件日志转换为syslog日志;日志上传模块,用于利用syslog协议将所述syslog日志上传至远程日志服务器。5.根据权利要求4所述的系统事件日志上传装置,其特征在于,所述日志上传模块具体用于:利用syslog协议以及UDP协议,将所述syslog日志上传至远程日志服务器。6.根据权利要求5所述的系统事件日志...
【专利技术属性】
技术研发人员:巩琦,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。