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