WO2020147264A1 - Method, apparatus and device for monitoring multi-system log data, and readable storage medium - Google Patents

Method, apparatus and device for monitoring multi-system log data, and readable storage medium Download PDF

Info

Publication number
WO2020147264A1
WO2020147264A1 PCT/CN2019/092960 CN2019092960W WO2020147264A1 WO 2020147264 A1 WO2020147264 A1 WO 2020147264A1 CN 2019092960 W CN2019092960 W CN 2019092960W WO 2020147264 A1 WO2020147264 A1 WO 2020147264A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
deployment
display template
current parameters
group number
Prior art date
Application number
PCT/CN2019/092960
Other languages
French (fr)
Chinese (zh)
Inventor
谢满锐
付飞腾
李志冬
宫林涛
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020147264A1 publication Critical patent/WO2020147264A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Disclosed by the present application are a method, apparatus and device for monitoring multi-system log data, and a readable storage medium. The method comprises: when a deployment request is received, reading a parameter type corresponding to the deployment request, and determining whether a target system parameter corresponding to the parameter type exists among system parameters of each deployment system; if the target system parameter exists, then allocating an interface group number and a display template group number to a system to be deployed according to the target system parameter; when detection reaches a preset time interval corresponding to the interface group number, calling an interface corresponding to the interface group number, and receiving current parameters transmitted on the basis of the interface; and reading a system identifier carried in each current parameter, and according to the system identifier, transmitting each current parameter to a display template corresponding to the display template group number for display so as to monitor the current parameters in log data that originates from each deployment system. The present solution conducts differential monitoring on various parameters of a plurality of systems by means of big data processing technology and meets the monitoring needs of different systems.

Description

多系统日志数据的监控方法、装置、设备及可读存储介质 Monitoring method, device, equipment and readable storage medium of multi-system log data The
本申请要求于2019年01月14日提交中国专利局、申请号为201910037704.9、发明名称为“多系统日志数据的监控方法、装置、设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on January 14, 2019, the application number is 201910037704.9, and the invention title is "Multi-system log data monitoring method, device, equipment, and readable storage medium". The entire content is incorporated into the application by reference.
技术领域Technical field
本申请主要涉及数据处理技术领域,具体地说,涉及一种多系统日志数据的监控方法、装置、设备及可读存储介质。This application mainly relates to the technical field of data processing, and specifically to a method, device, equipment and readable storage medium for monitoring log data of multiple systems.
背景技术Background technique
随着科技和网络的发展,越来越多的机构倾向于使用不同的系统来对其中不同类型的数据和资源进行专项管理,使得在获取不同类型的数据或资源时,需要对不同的系统进行访问;为了确保各系统的正常运行,通常需要对各系统的日志数据进行监控,通过日志数据来判断各系统在运行过程中是否存在异常。With the development of science and technology and the Internet, more and more organizations tend to use different systems to manage different types of data and resources, so that when acquiring different types of data or resources, different systems are required. Access; In order to ensure the normal operation of each system, it is usually necessary to monitor the log data of each system, and use the log data to determine whether there is any abnormality in the operation of each system.
目前对各系统的日志数据监控均采用同一种方式进行,但是各系统所存放的数据类型或提供的业务资源不一样,对各系统均采用同一种方式进行监控,不能体现各系统的特点;同时在各系统差异化较大的情况下,同一种监控方式难以均衡各系统的监控需求,使得监控不够准确,而需要借助人工辅助;如此一来,则降低了监控效率,且增加了人力成本。At present, the log data monitoring of each system is performed in the same way, but the types of data stored or the business resources provided by each system are different, and the same method is used to monitor each system, which does not reflect the characteristics of each system; at the same time; In the case of large differences between systems, the same monitoring method is difficult to balance the monitoring requirements of each system, making the monitoring not accurate enough, and manual assistance is needed; this reduces the monitoring efficiency and increases the labor cost.
发明内容Summary of the invention
本申请的主要目的是提供一种多系统日志数据的监控方法、装置、设备及可读存储介质,旨在解决现有技术中对不同系统均采用同一种方式进行监控,监控没有准确体现各系统的特点,监控效率低,且人力成本高的问题。The main purpose of this application is to provide a method, device, equipment, and readable storage medium for monitoring log data of multiple systems, aiming to solve the problem that different systems are monitored in the same way in the prior art, and the monitoring does not accurately reflect each system The problem of low monitoring efficiency and high labor cost.
为实现上述目的,本申请提供一种多系统日志数据的监控方法,所述多系统日志数据的监控方法包括以下步骤:To achieve the above objective, the present application provides a method for monitoring log data of multiple systems. The method for monitoring log data of multiple systems includes the following steps:
当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;When a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
此外,为实现上述目的,本申请还提出一种多系统日志数据的监控装置,所述多系统日志数据的监控装置包括:In addition, in order to achieve the above objective, this application also proposes a monitoring device for multi-system log data, and the monitoring device for multi-system log data includes:
读取模块,用于当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;The reading module is configured to, when a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
分配模块,用于若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;The allocation module is configured to, if there is a target system parameter corresponding to the parameter type, according to the target system parameter, assign an interface group number and a display template group number to the system to be deployed corresponding to the deployment request, so as The system to be deployed is updated to the deployment system;
调用模块,用于当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;The calling module is configured to call the interface corresponding to the interface group number when the detection reaches the preset time interval corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
监控模块,用于读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。The monitoring module is used to read the system identification carried in each of the current parameters, and according to the system identification, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to verify the source Monitor the current parameters in the log data of each deployment system.
此外,为实现上述目的,本申请还提出一种多系统日志数据的监控设备,所述多系统日志数据的监控设备包括:存储器、处理器、通信总线以及存储在所述存储器上的多系统日志数据的监控程序;In addition, in order to achieve the above objective, the present application also proposes a monitoring device for multi-system log data. The monitoring device for multi-system log data includes a memory, a processor, a communication bus, and a multi-system log stored on the memory. Data monitoring program;
所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize connection and communication between the processor and the memory;
所述处理器用于执行所述多系统日志数据的监控程序,以实现以下步骤:The processor is used to execute the monitoring program of the multi-system log data to implement the following steps:
当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;When a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
此外,为实现上述目的,本申请还提供一种可读存储介质,所述可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行以用于:In addition, in order to achieve the above object, the present application also provides a readable storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to Used for:
当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;When a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
本实施例的多系统日志数据的监控方法,通过读取与接收到的部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与该参数类型对应的目标系统参数;若存在则根据目标系统参数,对与部署请求对应的待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;此后当检测达到与接口组号对应的预设时间间隔时,则对接口组号对应的接口进行调用,并接收基于该接口所传输的当前参数;再对各当前参数中所携带的系统标识进行读取,并依据该读取的系统标识,将各当前参数传输到与展示模板组号对应的展示模板中展示,从而实现对来源于各部署系统的日志数据中的当前参数进行监控。本方案中与部署请求对应的参数类型为需要部署的待部署系统所需求监控的参数类型,当存在与参数类型对应的目标系统参数时,则说明已部署完成的各部署系统的系统参数中存在对该参数类型进行监控的部署系统,从而可依据该目标系统参数,对待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;具有相同接口组号和展示模板组号的各部署系统使用同一接口进行数据传输,并使用同一展示模板进行数据展示;而具有不同接口组号和展示模板组号的各部署系统使用不同接口进行数据传输,且使用不同展示模板进行数据展示;在实现对各部署系统之间的不同监控需求进行差异化监控的同时,还在相同监控需求的各部署系统之间实现接口和展示模板的复用;在对各部署系统之间以其各自特点进行准确监控的同时,节省了监控资源。The multi-system log data monitoring method of this embodiment reads the parameter type corresponding to the received deployment request, and determines whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system; if it exists, According to the target system parameters, the system to be deployed corresponding to the deployment request is assigned the interface group number and the display template group number, and the system to be deployed is updated to the deployment system; after that, when the detection reaches the preset time interval corresponding to the interface group number, then Call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface; then read the system identification carried in each current parameter, and transmit each current parameter according to the read system identification Display in the display template corresponding to the display template group number, so as to realize the monitoring of the current parameters in the log data from each deployment system. The parameter type corresponding to the deployment request in this solution is the parameter type that needs to be monitored by the system to be deployed. When there is a target system parameter corresponding to the parameter type, it means that the system parameters of each deployed system that have been deployed exist The deployment system that monitors this parameter type can assign the interface group number and display template group number to the system to be deployed based on the target system parameters, and update the system to be deployed to the deployment system; have the same interface group number and display template group number Each deployment system of the company uses the same interface for data transmission and uses the same display template for data display; and each deployment system with different interface group numbers and display template group numbers uses different interfaces for data transmission and uses different display templates for data display ; While achieving differentiated monitoring of the different monitoring requirements between deployment systems, it also implements the reuse of interfaces and display templates between deployment systems with the same monitoring requirements; each deployment system is based on its own While performing accurate monitoring, it saves monitoring resources.
附图说明BRIEF DESCRIPTION
图1是本申请的多系统日志数据的监控方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a method for monitoring log data of multiple systems according to the present application;
图2是本申请的多系统日志数据的监控装置第一实施例的功能模块示意图;2 is a schematic diagram of functional modules of the first embodiment of the multi-system log data monitoring device of the present application;
图3是本申请实施例方法涉及的硬件运行环境的设备结构示意图。FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the method of the embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present application will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请提供一种多系统日志数据的监控方法。This application provides a method for monitoring log data of multiple systems.
请参照图1,图1为本申请多系统日志数据的监控方法第一实施例的流程示意图。在本实施例中,所述多系统日志数据的监控方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a first embodiment of a method for monitoring log data of multiple systems according to this application. In this embodiment, the method for monitoring multi-system log data includes:
步骤S10,当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;Step S10, when a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
本申请的多系统日志数据的监控方法应用于监控服务器,适用于通过监控服务器对多个系统所生成的日志数据进行监控,通过监控的日志数据来反映各系统的运行情况。而为了实现对各系统的日志数据进行监控,需要先将各系统的信息添加到监控服务器中,使得监控服务器有权限获得各个系统的日志数据。将各系统信息添加到监控服务器可通过部署请求进行,当某一系统有对其所生成日志数据的监控需求时,向监控服务器发送部署请求;因日志数据中涉及多种类型的数据,某些数据与系统运行相关,而另一些数据与系统运行不相关;为了对系统的运行情况进行监控,需要在发送部署请求时,指定所需要监控数据的参数类型,如系统接口的访问量、响应时间、访问成功率、调用状态码等。将该所指定的参数类型和部署请求一并发送到监控服务器,监控服务器在接收到部署请求时,对与该部署请求对应的参数类型进行读取,并判断已经在监控服务器进行部署的各个部署系统所选择监控的系统参数中,是否存在和部署请求对应参数类型一致的目标系统参数。该一致的目标系统参数表征了已经部署的各部署系统中存在某一系统所监控的系统参数,和当前发送部署请求的系统所需要监控的参数类型一致。The multi-system log data monitoring method of this application is applied to a monitoring server, and is suitable for monitoring log data generated by multiple systems through the monitoring server, and the monitored log data reflects the operation of each system. In order to monitor the log data of each system, the information of each system needs to be added to the monitoring server first, so that the monitoring server has the authority to obtain the log data of each system. Adding system information to the monitoring server can be done through deployment requests. When a system has monitoring requirements for the log data it generates, a deployment request is sent to the monitoring server; because the log data involves multiple types of data, some The data is related to the operation of the system, while some other data is not related to the operation of the system; in order to monitor the operation of the system, it is necessary to specify the parameter type of the data to be monitored when sending the deployment request, such as the amount of access to the system interface and the response time , Access success rate, call status code, etc. The specified parameter type and deployment request are sent to the monitoring server. When the monitoring server receives the deployment request, it reads the parameter type corresponding to the deployment request and judges the deployments that have been deployed on the monitoring server Among the system parameters selected by the system for monitoring, whether there are target system parameters that are consistent with the corresponding parameter types of the deployment request. This consistent target system parameter indicates that there is a system parameter monitored by a certain system in each deployment system that has been deployed, and is consistent with the parameter type that the system currently sending the deployment request needs to monitor.
考虑到不同系统由不同版本的开发环境开发而来,如Python2.6、Python2.7或Python3.x等;而监控服务器所支持监控的环境版本具有一定的限制,不能对任意的环境版本均支持监控;如可支持对由环境版本Python2.7开发的系统进行监控,而不支持对由环境版本Python1.0开发的系统进行监控等。将监控服务器所支持监控的环境版本号作为预设版本号,在对发送部署请求的系统进行监控前,需要先对该系统环境版本的有效性进行检测;具体地,当接收到部署请求时,读取与部署请求对应的参数类型的步骤包括:Considering that different systems are developed from different versions of development environments, such as Python2.6, Python2.7 or Python3.x, etc.; and the monitoring environment version supported by the monitoring server has certain restrictions, and it cannot support any environment version. Monitoring; for example, it can support monitoring of the system developed by the environment version Python2.7, but does not support the monitoring of the system developed by the environment version Python1.0, etc. The environment version number supported by the monitoring server is used as the preset version number. Before monitoring the system that sends the deployment request, the validity of the system environment version needs to be tested; specifically, when the deployment request is received, The steps to read the parameter type corresponding to the deployment request include:
步骤S11,当接收到部署请求时,读取所述待部署系统的环境版本号,并判断所述环境版本号是否为有效版本号;Step S11, when a deployment request is received, read the environment version number of the system to be deployed, and determine whether the environment version number is a valid version number;
进一步地,将发送部署请求的系统作为待部署系统,监控服务器在接收到该待部署系统所发送的部署请求时,对待部署系统的环境版本号进行读取,并将读取的环境版本号和预先设置的各预设版本号进行对比,判断环境版本号是否存在于各预设版本号中,即判断该环境版本号和各预设版本号中某一项预设版本号一致。Further, the system that sends the deployment request is taken as the system to be deployed, and when the monitoring server receives the deployment request sent by the system to be deployed, it reads the environment version number of the system to be deployed, and reads the read environment version number and The preset version numbers are compared to determine whether the environment version number exists in each preset version number, that is, it is determined that the environment version number is consistent with one of the preset version numbers.
步骤S12,若是有效版本号,则读取所述待部署系统的日志路径,并在将所述日志路径添加到预设配置文件后,读取与所述部署请求对应的参数类型;Step S12, if it is a valid version number, read the log path of the system to be deployed, and after adding the log path to the preset configuration file, read the parameter type corresponding to the deployment request;
步骤S13,若不是有效版本号,则输出第一提示信息,以提示所述待部署系统不支持部署。Step S13: If it is not a valid version number, output a first prompt message to prompt that the system to be deployed does not support deployment.
若经判断出环境版本号存在于各预设版本号中,则说明环境版本号为有效版本号,监控服务器支持待部署系统的监控;从而对待部署路径的日志路径进行读取,并将读取的日志路径添加到预设配置文件中。其中日志路径为待部署系统中用于存放其所生成日志数据的路径,而预设配置文件为监控服务器中预先设置用于配置各部署系统日志路径的文件;将日志路径添加到预设配置文件中,并在添加完成后,读取部署请求中对应的参数类型,以通过参数类型确定日志数据中所需要监控的参数;监控服务器在运行过程中,根据预设配置文件中的路径,采集部署系统所生成日志数据中的该类参数,进而对采集的该类参数进行分析监控。而在判断出环境版本号不存在于各预设版本号中,即环境版本号不是有效版本号时,则说明监控服务器不支持对由此环境版本号所开发的系统进行监控,从而输出第一提示信息。该第一提示信息包括两方面,一方面提示与待部署系统相关的人员,待部署系统不支持监控;另一方面提示开发人员对监控服务器进行优化,以使得监控服务器支持该类待部署系统的监控。If it is determined that the environment version number exists in each preset version number, it means that the environment version number is a valid version number, and the monitoring server supports the monitoring of the system to be deployed; thus, the log path of the path to be deployed is read and read The log path is added to the preset configuration file. The log path is the path used to store the log data generated by the system to be deployed, and the preset configuration file is a file preset in the monitoring server to configure the log path of each deployment system; add the log path to the preset configuration file After the addition is complete, read the corresponding parameter type in the deployment request to determine the parameters that need to be monitored in the log data through the parameter type; during the operation of the monitoring server, collect and deploy according to the path in the preset configuration file This type of parameters in the log data generated by the system is then analyzed and monitored for the collected parameters. When it is judged that the environment version number does not exist in each preset version number, that is, the environment version number is not a valid version number, it means that the monitoring server does not support monitoring of the system developed by this environment version number, and thus outputs the first Prompt information. The first prompt information includes two aspects. On the one hand, it prompts personnel related to the system to be deployed that the system to be deployed does not support monitoring; on the other hand, it prompts developers to optimize the monitoring server so that the monitoring server supports the system to be deployed. monitor.
此外对于以分布式的方式提供服务的系统,即将系统的各个功能分布在多个服务器上,以分布式的形式实现系统的整体功能;若此类系统具有监控需求,则将与该类系统所对应的各个服务器的日志路径分别添加到预设配置文件中,监控服务器根据各日志路径逐一采集分布式系统的参数数据,并对各参数数据进行整合分析。In addition, for a system that provides services in a distributed manner, that is, the various functions of the system are distributed on multiple servers, and the overall function of the system is realized in a distributed manner; if such a system has monitoring requirements, it will cooperate with the system. The log paths of the corresponding servers are respectively added to the preset configuration files, and the monitoring server collects the parameter data of the distributed system one by one according to each log path, and conducts integrated analysis of each parameter data.
步骤S20,若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;Step S20: If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number, so as The deployment system is updated to the deployment system;
可理解地,因不同系统所需要监控的参数类型存在差异性,如某些系统所需要监控的参数类型为系统接口的访问量、响应时间和成功率,而另一些系统所需要监控的参数类型为系统接口的访问量、响应时间、成功率和调用状态码等。若经判断确定已监控的系统参数中存在与参数类型对应的目标系统参数,则说明监控服务器中存在和该待部署系统对参数类型的监控需求相同的已监控部署系统。对于具有相同监控需求的各部署系统之间,可使用相同的接口对该类参数进行读取,并采用相同的展示模板对监控的参数进行展示,以对监控服务器中各资源的复用。Understandably, there are differences in the types of parameters that need to be monitored by different systems. For example, the types of parameters that need to be monitored for some systems are the amount of access, response time and success rate of the system interface, while the types of parameters that need to be monitored for other systems It is the access volume, response time, success rate and calling status code of the system interface. If it is determined that there is a target system parameter corresponding to the parameter type among the monitored system parameters, it means that there is a monitored deployed system in the monitoring server that has the same monitoring requirements for the parameter type as the system to be deployed. For deployment systems with the same monitoring requirements, the same interface can be used to read this type of parameter, and the same display template can be used to display the monitored parameters to reuse various resources in the monitoring server.
将具有相同监控需求,使用相同接口和相同展示模板的各部署系统划分到同一接口组和同一展示模板组;当存在目标系统参数时,则该目标系统参数所对应的接口组和展示模板组中,所具有的各部署系统均对该类目标系统参数进行监控并展示。从而对于与部署请求对应的待部署系统,可依据目标系统参数,对待部署系统分配接口组号和展示模板组号;通过接口组合和展示模板组号将待部署系统划分到目标系统参数所对应的接口组中和展示模板组中,将待部署系统更新为部署系统,完成待部署系统的部署,此后监控服务器即可对该部署完成的待部署系统中的参数进行监控。如读取的参数类型包括a1、b1和c1,而对于已监控的部署系统W1、W2、W3和W4,其中W1和W3所监控的系统参数为类型a1、a2、b2、b3的参数,W2和W4所监控的系统参数为类型a1、b1和c1的参数;从而存在与参数类型对应的目标系统参数,且目标系统参数所对应的部署系统W2和W4属于同一接口组和同一展示模板组,组号分别为p1和p2,则将待部署系统的接口组号和展示模板组号分配为p1和p2,以将待部署系统和W2、W4分配到同一接口组和同一展示模板组中,以对各部署系统的参数类型为a1、b1、c1的参数进行读取并监控。Divide the deployment systems that have the same monitoring requirements, the same interface and the same display template into the same interface group and the same display template group; when there is a target system parameter, the target system parameter corresponds to the interface group and display template group , Each deployment system possesses monitors and displays the target system parameters. Therefore, for the system to be deployed corresponding to the deployment request, the system to be deployed can be assigned the interface group number and the display template group number according to the target system parameters; the system to be deployed is divided into the target system parameters corresponding to the target system parameters through the interface combination and display template group number In the interface group and the display template group, update the system to be deployed to the deployment system to complete the deployment of the system to be deployed, and then the monitoring server can monitor the parameters of the deployed system to be deployed. For example, the read parameter types include a1, b1, and c1, and for the deployed systems W1, W2, W3, and W4 that have been monitored, the system parameters monitored by W1 and W3 are parameters of types a1, a2, b2, and b3, and W2 The system parameters monitored by W4 and W4 are parameters of types a1, b1, and c1; thus there are target system parameters corresponding to the parameter types, and the deployment systems W2 and W4 corresponding to the target system parameters belong to the same interface group and the same display template group, The group numbers are p1 and p2 respectively, then the interface group number and display template group number of the system to be deployed are assigned to p1 and p2 to assign the system to be deployed and W2 and W4 to the same interface group and the same display template group. Read and monitor the parameters of each deployment system whose parameter types are a1, b1, and c1.
可理解地,当前发送部署请求的待部署系统,所需要监控的参数和已监控的部署系统监控的参数不相同;即已监控的系统参数中不存在与参数类型对应的目标系统参数,所需要监控的参数类型为新出现的参数类型;监控服务器中缺少对该新出现参数类型进行监控的机制,而需要对监控服务进行优化。具体地,判断各部署系统的系统参数中是否存在与参数类型对应的目标系统参数的步骤之后包括:Understandably, the currently deployed system that sends the deployment request requires monitoring parameters that are not the same as the monitored parameters of the deployed system; that is, there is no target system parameter corresponding to the parameter type among the monitored system parameters. The monitored parameter type is a newly emerging parameter type; the monitoring server lacks a mechanism for monitoring the newly emerging parameter type, and the monitoring service needs to be optimized. Specifically, the step of determining whether there is a target system parameter corresponding to the parameter type among the system parameters of each deployment system includes:
步骤a1,若不存在与所述参数类型对应的目标系统参数,则输出第二提示信息,以提示基于所述参数类型对预设参数进行更新;Step a1, if there is no target system parameter corresponding to the parameter type, output second prompt information to prompt to update the preset parameter based on the parameter type;
当判断出待部署系统所需要监控的参数类型在已监控的各部署系统中不存在对应的目标系统参数,则输出第二提示信息;该第二提示信息中包括参数类型,以便于开发人员依据参数类型对预设参数进行更新。其中预设参数为监控服务器可进行监控的参数,更新即为依据参数类型对预设参数的类型进行更新,并将更新的参数形成更新接口和更新展示模板,该更新接口和更新展示模板可对待部署系统所需要监控的参数类型进行监控和展示。When it is determined that the parameter type that needs to be monitored by the system to be deployed does not have a corresponding target system parameter in each deployed system that has been monitored, a second prompt message is output; the second prompt message includes the parameter type so that developers can follow The parameter type updates the preset parameters. The preset parameters are the parameters that can be monitored by the monitoring server, and the update is to update the type of the preset parameters according to the parameter type, and form the updated parameters into an update interface and an update display template. The update interface and the update display template can be treated The types of parameters that need to be monitored by the deployment system are monitored and displayed.
步骤a2,当接收到更新的预设参数,以及与更新的预设参数对应的更新接口组号和更新展示模板组号时,则将所述更新接口组合和更新展示模板组号分配为与所述部署请求对应待部署系统的接口组号和展示模板组号,以将所述待部署系统更新为部署系统。Step a2: When the updated preset parameters and the updated interface group number and the updated display template group number corresponding to the updated preset parameters are received, the update interface combination and the updated display template group number are assigned as the same The deployment request corresponds to the interface group number and the display template group number of the system to be deployed, so as to update the system to be deployed to the deployment system.
可理解地,在监控服务器运行过程中,更新接口和更新展示模板可能用于其他系统的监控,即其他系统有对参数类型所对应参数的监控需求;为了便于后续的监控操作,将更新接口和更新展示模板形成为更新接口组和更新展示模板,并设置两者的接口号,即更新接口组号和更新展示模板号。因更新的预设参数以及与其对应的更新接口组和更新展示模板组,用于对参数类型对应的参数进行监控,从而在接收到更新的预设参数,以及与该更新的预设参数对应的更新接口组号和更新展示模板组号时,则将更新接口组号和更新模板组号分配为待部署系统的接口组号和展示模板组号,以通过更新接口组号和更新模板组号对待部署系统的参数类型进行监控,实现将待部署系统更新为部署系统。Understandably, during the operation of the monitoring server, the update interface and update display template may be used for monitoring of other systems, that is, other systems have monitoring requirements for the parameters corresponding to the parameter type; in order to facilitate subsequent monitoring operations, the interface and The updated display template is formed into the updated interface group and the updated display template, and the interface numbers of both are set, that is, the updated interface group number and the updated display template number. Due to the updated preset parameters and the corresponding updated interface group and updated display template group, they are used to monitor the parameters corresponding to the parameter type, so that the updated preset parameters and the corresponding updated preset parameters are received. When updating the interface group number and updating the display template group number, assign the update interface group number and the update template group number as the interface group number and display template group number of the system to be deployed, and treat them by updating the interface group number and update template group number The parameter type of the deployment system is monitored, and the system to be deployed is updated to the deployment system.
步骤S30,当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;——对应预设时间依据已部署系统的不同而不同Step S30: When it is detected that the preset time interval corresponding to the interface group number is reached, the interface corresponding to the interface group number is called, and the current parameters transmitted based on the interface are received;-corresponding to the preset time basis Varies by deployed system
进一步,预先根据监控需求设置对各部署系统中参数进行读取和监控的预设时间间隔,如10分钟、两小时、一天、一星期等;具有同一接口组号的各部署系统,即同一接口组中的各部署系统所设置的预设时间间隔可以相同也可以不相同,若相同则在同一时间对各部署系统的各参数进行读取,再对读取的各参数依据部署系统进行区分;若不相同则在不同时间分别对各部署系统的各参数进行读取。将该相同或不相同的预设时间间隔均作为与接口组号对应的预设时间间隔,当检测到达该预设时间间隔时,则对与接口组号对应的接口进行调用,并接收通过该接口所传输的当前参数。其中当前参数为与参数类型所对应,在当前预设时间间隔内所接收到的参数。Further, set the preset time interval for reading and monitoring the parameters in each deployment system according to the monitoring requirements in advance, such as 10 minutes, two hours, one day, one week, etc.; each deployment system with the same interface group number is the same interface The preset time intervals set by each deployment system in the group may be the same or different. If they are the same, the parameters of each deployment system will be read at the same time, and the read parameters will be distinguished according to the deployment system; If they are not the same, read the parameters of each deployed system at different times. The same or different preset time interval is regarded as the preset time interval corresponding to the interface group number. When the detection reaches the preset time interval, the interface corresponding to the interface group number is called, and the The current parameters transmitted by the interface. The current parameter is the parameter corresponding to the parameter type and received within the current preset time interval.
步骤S40,读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Step S40: Read the system identification carried in each of the current parameters, and according to the system identification, transmit each of the current parameters to the display template corresponding to the display template group number for display, so that The current parameters in the log data of the deployment system are monitored.
更进一步地,因预设时间间隔可能涉及到多个部署系统的监控时间,使得,使得所接收的当前参数也可能来源于多个部署系统,而需要对其进行区分。具体地,不同部署系统在部署过程中分配有不同的系统标识,使得不同部署系统之间可通过该系统标识进行区分,各部署系统所传输的当前参数中也携带有表征各自所来源部署系统的系统标识,从而先对接收到的当前参数中所携带的系统标识进行读取,再依据系统标识将各当前参数分类为与不同部署系统对应。因来自同一接口组中的各不同部署系统之间用于参数展示的展示模板组也相同,从而在将各当前参数划分为与各部署系统对应后,再将与各部署系统对应的当前参数传输到与展示模板组对的展示模板中展示。因与展示模板组对应的展示模板,适用于具有该展示模板组号的各个部署系统,在将各部署系统的当前参数传输到展示模板中展示过程中,可对展示模板多次调用,以对不同部署系统的当前参数进行展示。如具有展示模板组号的部署系统包括M1、M2和M3,对应地系统标识分别为m1、m2和m3,此次接收到当前参数中,包括携带有m1的参数和携带m3的参数,则将当前参数依据系统标识分为与M1对应的参数D1和与M3对应的参数D2;进而对展示模板进行两次调用,以分别将D1和D2传输到展示模板进行展示。Furthermore, because the preset time interval may involve the monitoring time of multiple deployment systems, the current parameters received may also originate from multiple deployment systems and need to be distinguished. Specifically, different deployment systems are assigned different system identifiers during the deployment process, so that different deployment systems can be distinguished by the system identifiers, and the current parameters transmitted by each deployment system also carry information that characterizes the deployment system from which they originate. System identification, so that the system identification carried in the received current parameter is read first, and then each current parameter is classified as corresponding to different deployment systems according to the system identification. Since the display template groups used for parameter display between different deployment systems in the same interface group are also the same, after dividing each current parameter into corresponding to each deployment system, the current parameters corresponding to each deployment system are transmitted To the display template paired with the display template group. Because the display template corresponding to the display template group is applicable to each deployment system with the display template group number, in the process of transmitting the current parameters of each deployment system to the display template, the display template can be called multiple times to correct The current parameters of different deployment systems are displayed. If the deployment system with the display template group number includes M1, M2, and M3, and the corresponding system identifiers are m1, m2, and m3, the current parameters received this time include the parameters that carry m1 and the parameters that carry m3. According to the system identification, the current parameters are divided into a parameter D1 corresponding to M1 and a parameter D2 corresponding to M3; the display template is then called twice to transmit D1 and D2 to the display template for display.
考虑到相对于当前预设时间间隔所接收到的当前参数,此前的预设时间间隔中,均会接收到对应的参数,该对应的参数也会传输到展示模板中进行展示;在对当前参数进行展示时,可直接沿用此前所展示的展示模板,以避免对展现模板的重新调用,且可实现和此前对应参数的对比。如对于上述与M1对应的参数D1和与M3对应的参数D2,若此前与M1和M3对应的参数在展示时,对展示模板调用,并为展示模板分别分配其对应的系统标识m1和m3;则在当前展示时,则可根据系统标识,确定此前对M1和M3对应参数分别展示的展示模板,而将参数D1和D2分别传输到此前的展示模板中展示。通过同一接口组和展示模板组对各部署系统在当前预设时间间隔中所传输的各当前参数进行接收和展示,实现对日志数据具有相同监控需求的各部署系统中各参数的监控;而对日志数据具有不同监控需求的各部署系统,则可采用不同的接口组和展示模板组进行参数的接收和展示;即通过各种不同类型的接口组和展示模板组,实现对各种不同监控需求的部署系统进行日志数据监控。Considering that relative to the current parameters received in the current preset time interval, the corresponding parameters will be received in the previous preset time interval, and the corresponding parameters will also be transmitted to the display template for display; When displaying, you can directly use the previously displayed display template to avoid re-calling the display template, and to achieve a comparison with the previous corresponding parameters. For example, for the above-mentioned parameter D1 corresponding to M1 and parameter D2 corresponding to M3, if the parameters corresponding to M1 and M3 are displayed before, the display template is called, and the display template is assigned its corresponding system identifiers m1 and m3; During the current display, the display templates previously displayed for the corresponding parameters of M1 and M3 can be determined according to the system identification, and the parameters D1 and D2 are respectively transmitted to the previous display templates for display. Through the same interface group and display template group, the current parameters transmitted by each deployment system in the current preset time interval are received and displayed, so as to realize the monitoring of each parameter in each deployment system that has the same monitoring requirements for log data; For each deployment system with different monitoring requirements for log data, different interface groups and display template groups can be used to receive and display parameters; that is, through various types of interface groups and display template groups, various monitoring requirements can be realized The deployment system for log data monitoring.
本实施例的多系统日志数据的监控方法,通过读取与接收到的部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与该参数类型对应的目标系统参数;若存在则根据目标系统参数,对与部署请求对应的待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;此后当检测达到与接口组号对应的预设时间间隔时,则对接口组号对应的接口进行调用,并接收基于该接口所传输的当前参数;再对各当前参数中所携带的系统标识进行读取,并依据该读取的系统标识,将各当前参数传输到与展示模板组号对应的展示模板中展示,从而实现对来源于各部署系统的日志数据中的当前参数进行监控。本方案中与部署请求对应的参数类型为需要部署的待部署系统所需求监控的参数类型,当存在与参数类型对应的目标系统参数时,则说明已部署完成的各部署系统的系统参数中存在对该参数类型进行监控的部署系统,从而可依据该目标系统参数,对待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;具有相同接口组号和展示模板组号的各部署系统使用同一接口进行数据传输,并使用同一展示模板进行数据展示;而具有不同接口组号和展示模板组号的各部署系统使用不同接口进行数据传输,且使用不同展示模板进行数据展示;在实现对各部署系统之间的不同监控需求进行差异化监控的同时,还在相同监控需求的各部署系统之间实现接口和展示模板的复用;在对各部署系统之间以其各自特点进行准确监控的同时,节省了监控资源。The multi-system log data monitoring method of this embodiment reads the parameter type corresponding to the received deployment request, and determines whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system; if it exists, According to the target system parameters, the system to be deployed corresponding to the deployment request is assigned the interface group number and the display template group number, and the system to be deployed is updated to the deployment system; after that, when the detection reaches the preset time interval corresponding to the interface group number, then Call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface; then read the system identification carried in each current parameter, and transmit each current parameter according to the read system identification Display in the display template corresponding to the display template group number, so as to realize the monitoring of the current parameters in the log data from each deployment system. The parameter type corresponding to the deployment request in this solution is the parameter type that needs to be monitored by the system to be deployed. When there is a target system parameter corresponding to the parameter type, it means that the system parameters of each deployed system that have been deployed exist The deployment system that monitors this parameter type can assign the interface group number and display template group number to the system to be deployed based on the target system parameters, and update the system to be deployed to the deployment system; have the same interface group number and display template group number Each deployment system of the company uses the same interface for data transmission and uses the same display template for data display; and each deployment system with different interface group numbers and display template group numbers uses different interfaces for data transmission and uses different display templates for data display ; While achieving differentiated monitoring of the different monitoring requirements between deployment systems, it also implements the reuse of interfaces and display templates between deployment systems with the same monitoring requirements; each deployment system is based on its own While performing accurate monitoring, it saves monitoring resources.
进一步地,在本申请多系统日志数据的监控方法另一实施例中,所述根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示的步骤包括:Further, in another embodiment of the multi-system log data monitoring method of the present application, the step of transmitting each of the current parameters to the display template corresponding to the display template group number according to the system identifier includes :
步骤S41,根据所述系统标识,对各所述当前参数进行分类,确定与各所述部署系统对应的系统当前参数;Step S41, classify each of the current parameters according to the system identifier, and determine the current system parameters corresponding to each of the deployment systems;
更进一步地,在对各当前参数依据系统标识进行分类的过程中,将具有相同系统标识表征来自于同一部署系统的当前参数划分为同一类,即同一类中的各个当前参数均来源于相同的部署系统;在对各当前参数均分类完成后,则可确定与各部署系统所对应的系统当前参数。Furthermore, in the process of classifying the current parameters according to the system identification, the current parameters from the same deployment system with the same system identification are classified into the same category, that is, the current parameters in the same category are all derived from the same Deployment system; after all current parameters are classified, the current system parameters corresponding to each deployment system can be determined.
步骤S42,读取各所述系统当前参数中携带的类型标识,并根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果;Step S42: Read the type identifiers carried in the current parameters of each of the systems, and perform classified statistics on the current parameters of each of the systems according to the type identifiers, and generate various types of current parameters of the systems in each of the deployment systems Statistical results;
考虑到部署系统所需求监控的参数涉及到多个类型,即经分类所得到的各个部署系统的系统当前参数中涉及到多个类型,如可能有访问量、响应时间、成功率等各种类型。为了在展示模板中对各参数依据类型展示,需要对各部署系统的系统当前参数进行分类。各部署系统在生成其日志数据时,会依据不同的类型分配不同类型标识符,使得各部署系统所传输的各个参数数据,即系统当前参数中均携带有表征其类型的类型标识符。在确定各部署系统所具有的系统当前参数后,以各部署系统为单位,读取各系统当前参数中所携带的类型标识,并依据各类型标识对各系统当前参数进行分类统计,生成各部署系统所具有的各类系统当前参数的统计结果。其中统计结果的类数由类型标识的类数,即所需要监控的参数类型类数决定;如在一实施例中类型标识包括访问标识、响应时间标识和成功标识三类,即所需要监控的参数类型为三类;则根据各类型标识,对各系统当前参数进行分类统计,生成各部署系统中各类系统当前参数的统计结果的步骤包括:Considering that the parameters to be monitored by the deployment system involve multiple types, that is, the current system parameters of each deployment system obtained by classification involve multiple types, such as visit volume, response time, success rate, etc. . In order to display each parameter according to type in the display template, it is necessary to classify the current system parameters of each deployed system. When each deployment system generates its log data, it assigns different type identifiers according to different types, so that each parameter data transmitted by each deployment system, that is, the current parameters of the system, carries a type identifier that characterizes its type. After determining the current system parameters of each deployment system, take each deployment system as a unit, read the type identification carried in the current parameters of each system, and classify and count the current parameters of each system according to each type identification, and generate each deployment The statistical results of current parameters of various systems possessed by the system. The number of classes of statistical results is determined by the number of classes identified by the type, that is, the number of parameter types that need to be monitored; for example, in one embodiment, the type identification includes three types: access identification, response time identification, and success identification, that is, what needs to be monitored There are three types of parameters; according to the identification of each type, the current parameters of each system are classified and statistics, and the steps to generate statistical results of the current parameters of various systems in each deployment system include:
步骤S421,根据所述访问标识、响应时间标识和成功标识,对各所述系统当前参数中的访问数据、响应时间数据和成功数据进行分类;Step S421: Classify the access data, response time data, and success data in the current parameters of each system according to the access identifier, response time identifier, and success identifier;
可理解地,当类型标识包括访问标识、响应标识和成功标识时,则说明所需要监控的参数类型为访问数据、响应数据和成功数据;从而依据访问标识、响应标识和成功标识,以各部署系统为单位,对各系统当前参数进行访问数据、相应数据和成功数据的分类。逐一读取各系统当前参数携带的类型标识,并将类型标识分别和访问标识、响应标识以及成功标识对比,确定三者中与读取的类型标识一致的标识;该一致的标识表征了该系统当前参数的类型,若一致的标识为访问标识,则表征该系统当前参数为访问数据;当各部署系统中的各系统当前参数均进行了读取类型标识和对比操作,则完成将各部署系统中各系统当前参数划分为访问数据、响应时间数据和成功数据。Understandably, when the type identification includes access identification, response identification, and success identification, it indicates that the parameter types that need to be monitored are access data, response data, and success data; thus, based on the access identification, response identification, and success identification, each deployment The system is a unit, and the current parameters of each system are classified into access data, corresponding data and success data. Read the type identification carried by the current parameters of each system one by one, and compare the type identification with the access identification, response identification, and success identification to determine the identification of the three that is consistent with the read type identification; this consistent identification characterizes the system The type of the current parameter. If the consistent identifier is the access identifier, it means that the current parameter of the system is access data; when the current parameters of each system in each deployment system have been read type identification and comparison operations, the deployment of each system is completed The current parameters of each system are divided into access data, response time data and success data.
步骤S422,对所述访问数据的访问次数,以及所述成功数据的成功次数进行统计,并用统计的所述成功次数和所述访问次数做比值,生成访问成功率;Step S422, counting the number of times of access to the access data and the number of successes of the success data, and using the counted number of successes and the number of visits as a ratio to generate an access success rate;
进一步地,访问数据为在预设时间间隔中各次对部署系统进行访问所生成的数据,成功数据为在预设时间间隔中各次对部署系统成功访问所生成的数据;对访问数据的访问次数进行统计,表征在预设时间间隔内对部署系统所进行访问的次数;同时对成功数据中的成功次数进行统计,表征在预设时间间隔内对部署系统所成功访问的次数。用统计得到的成功次数和访问次数做比值,所得到的比值结果即为在预设时间间隔内对部署系统成功访问的访问成功率,表征成功访问次数在总访问次数中所占的概率大小。Further, the access data is the data generated by each access to the deployment system in the preset time interval, and the success data is the data generated by the successful access to the deployment system each time in the preset time interval; access to the access data The number of times is counted to represent the number of accesses to the deployment system within a preset time interval; at the same time, the number of successes in the success data is counted to represent the number of successful accesses to the deployment system within a preset time interval. Using the statistics of the number of successful visits and the number of visits as a ratio, the result of the ratio is the success rate of successful visits to the deployed system within a preset time interval, which represents the probability of successful visits in the total visits.
步骤S423,将各所述响应时间数据划分到各所述预设时间区间内,并对各所述预设时间区间内所具有的响应时间数据的数量进行统计,生成各数量值;Step S423: Divide each of the response time data into each of the preset time intervals, and count the number of response time data in each of the preset time intervals to generate each quantity value;
更进一步地,预先设置有多个表征不同响应时长的预设时间区间,如1s到2s、2s到5s,5s到8s等各个预设时间区间;在预设时间区间所表征的数值越大,说明响应的时长越长。将经分类得到的各个响应时间数据和各个预设时间区间对比,确定各个响应时间数据所在的预设时间区间,进而将各个响应时间数据划分到其所在的预设时间区间内。此后对各个预设时间区间内所具有的响应时间数据的数量进行统计,生成各个预设时间区间内的数量值。如响应时间数据包括1.2s、1.5s、1.8s、1.2s、3s、3.5s、4s、6s,则经对比可将1.2s、1.5s、1.8s、1.2s划分到1s到2s所形成的预设时间区间内,而将3s、3.5s、4s划分到2s到5s所形成的预设时间区间内,将6s划分到5s到8s所形成的预设时间区间内;进而对各个预设时间区间内所具有的响应时间数据的数量进行统计,得到1s到2s的数据量为4,2s到5s的数据量为3,5s到8s的数据量为2。Furthermore, multiple preset time intervals characterizing different response durations are preset, such as 1s to 2s, 2s to 5s, 5s to 8s, and other preset time intervals; the greater the value represented in the preset time interval, Explain that the longer the response time. Each response time data obtained by classification is compared with each preset time interval to determine the preset time interval where each response time data is located, and then each response time data is divided into the preset time interval where it is located. Thereafter, the quantity of response time data in each preset time interval is counted, and the quantity value in each preset time interval is generated. If the response time data includes 1.2s, 1.5s, 1.8s, 1.2s, 3s, 3.5s, 4s, 6s, after comparison, 1.2s, 1.5s, 1.8s, 1.2s can be divided into 1s to 2s. In the preset time interval, 3s, 3.5s, 4s are divided into the preset time interval formed by 2s to 5s, and 6s is divided into the preset time interval formed by 5s to 8s; and then each preset time The number of response time data in the interval is counted, and the data amount from 1s to 2s is 4, the data amount from 2s to 5s is 3, and the data amount from 5s to 8s is 2.
步骤S424,将各所述数量值和所述响应时间数据的总数量做比值,生成各所述预设时间区间的响应率,并将各所述响应率、访问数据、成功数据以及访问成功率生成为各所述部署系统中各类所述系统当前参数的统计结果。In step S424, each of the quantity values and the total quantity of the response time data are ratioed to generate the response rate of each of the preset time intervals, and each of the response rates, access data, success data, and access success rate Generated as a statistical result of the current parameters of the various types of systems in each of the deployment systems.
进一步地,各个预设时间区间内所具有的数据量表征了部署系统在对访问进行响应时,在各预设时间区间内响应次数的多少;为了体现在各预设时间区间内响应次数的程度高低,对响应时间数据的总数量进行统计,该总数量为在预设时间间隔内部署系统对各次访问进行响应的总次数。将各个数量值分别和总数量做比值,生成各预设时间区间的响应率,通过响应率表征在各预设时间区间内响应次数的高低,当预设时间区间的响应率越大则说明在该预设时间区间内的响应次数越多,即部署系统对访问的响应时间落在该预设时间区间的次数较多。如对于上述1.2s、1.5s、1.8s、1.2s、3s、3.5s、4s、6s的响应时间数据,其总数量为8,将数量值和该总数量做比值所得到的响应率分别为0.5、0.375和0.125;说明部署系统对访问的响应时间落在1s到2s之间的预设时间区间的概率较大。该经统计所生成的响应率、访问数据、成功数据以及访问成功率,即为对部署系统中各类系统当前参数进行统计所生成的统计结果;对作为系统当前参数的访问数据、响应时间数据和成功数据的三类数据进行统计,所得到的统计结果包括响应率、访问数据、成功数据以及访问成功率四类;该统计结果的类数可根据需求进行设定,在设定完成后,即可生成与该类数对应的统计结果;各个统计结果携带有其所来源系统当前参数的类型标识,如响应率携带有响应时间标识,访问成功率携带有成功标识等。Further, the amount of data in each preset time interval represents the number of responses in each preset time interval when the deployment system responds to the visit; in order to reflect the degree of the response times in each preset time interval High and low, the total number of response time data is counted, and the total number is the total number of times the system is deployed to respond to each visit within the preset time interval. The ratio of each quantity value to the total quantity is used to generate the response rate of each preset time interval. The response rate characterizes the number of responses in each preset time interval. When the response rate of the preset time interval is larger, it means The more the response times within the preset time interval, the more the response time of the deployment system to access falls within the preset time interval. For example, for the above response time data of 1.2s, 1.5s, 1.8s, 1.2s, 3s, 3.5s, 4s, 6s, the total number is 8, and the response rates obtained by ratioing the number value to the total number are respectively 0.5, 0.375, and 0.125; it indicates that the response time of the deployment system to the access is more likely to fall within the preset time interval between 1s and 2s. The response rate, access data, success data and access success rate generated by the statistics are the statistical results generated by the statistics of the current parameters of the various systems in the deployment system; for the access data and response time data as the current parameters of the system Perform statistics with the three types of success data, and the resulting statistical results include response rate, access data, success data, and access success rate; the number of categories of the statistical results can be set according to requirements. After the setting is completed, The statistical results corresponding to the number of types can be generated; each statistical result carries the type identification of the current parameter of the system from which it originated, such as the response rate carrying the response time identification, and the access success rate carrying the success identification.
步骤S43,对与所述展示模板组号对应的展示模板进行调用,并根据所述类型标识,将各所述统计结果添加到所述展示模板中的各展示区域进行展示。Step S43: Call the display template corresponding to the display template group number, and add each statistical result to each display area in the display template for display according to the type identification.
更进一步地,在生成各类系统当前参数的统计结果后,则对展示模板组号对应的展示模板进行调用,展示模板中设置有不同的展示区域,各展示区域中携带有表征其所展示系统当前参数类型的类型标识,以对不同类型的系统当前参数进行区分展示。将统计结果中携带的类型标识逐一和展示区域中的类型标识对比,确定展示区域中和统计结果具有相同类型标识的目标展示区域,再将统计结果添加到目标展示区域进行展示。在各个统计结果均添加到各对应的展示区域进行展示之后,即完成对各项统计结果的展示。Furthermore, after generating the statistical results of the current parameters of various systems, the display template corresponding to the display template group number is called. The display template has different display areas, and each display area carries the system that characterizes it. The type identification of the current parameter type is used to differentiate and display the current parameters of different types of systems. The type identification carried in the statistical result is compared with the type identification in the display area one by one to determine the target display area in the display area that has the same type identifier as the statistical result, and then the statistical result is added to the target display area for display. After each statistical result is added to each corresponding display area for display, the display of each statistical result is completed.
进一步地,在本申请多系统日志数据的监控方法另一实施例中,所述将各所述统计结果添加到所述展示模板中的各展示区域进行展示的步骤之后包括:Further, in another embodiment of the multi-system log data monitoring method of the present application, the step of adding each of the statistical results to each display area in the display template for display includes:
步骤S44,读取各所述部署系统在上一预设时间间隔中所生成的上一统计结果,并根据所述系统标识,将各所述统计结果和所述上一统计结果进行对比,生成各对比结果;Step S44: Read the last statistical result generated by each deployment system in the last preset time interval, and compare each statistical result with the last statistical result according to the system identifier, and generate Comparison results;
进一步地,为了体现各部署系统的运行变化情况,设置有将不同预设时间间隔的各类统计结果进行对比的机制;具体地,对各部署系统在上一预设时间间隔中所生成的上一统计结果进行读取,并将各部署系统在当前预设时间间隔所生成的统计结果和该上一统计结果进行对比,生成对比结果。因所涉及到的部署系统较多,则对比过程中依据系统标识进行,即将具有相同系统标识的上一统计结果和统计结果进行对比。同时依据类型标识将上一统计结果和统计结果中的各类参数进行对比,以确保对比在相同类型的参数之间进行;如对同一部署系统中统计结果中的访问成功率和上一统计结果中的访问成功率进行对比。Further, in order to reflect the changes in the operation of each deployment system, a mechanism is set up to compare various statistical results at different preset time intervals; specifically, the statistics generated by each deployment system in the previous preset time interval are compared. A statistical result is read, and the statistical result generated by each deployed system at the current preset time interval is compared with the previous statistical result to generate a comparison result. Since there are many deployment systems involved, the comparison process is based on the system identification, that is, the previous statistical result with the same system identification is compared with the statistical result. At the same time, compare the previous statistical result with the various parameters in the statistical result according to the type identification to ensure that the comparison is carried out between the same type of parameters; for example, the access success rate in the statistical result of the same deployment system and the previous statistical result Compare the access success rate in.
步骤S45,根据所述类型标识,将所述对比结果添加到所述展示模板中的对比区域进行展示,以对所述展示模板中各展示区域展示的各所述统计结果进行更新。Step S45: According to the type identification, the comparison result is added to the comparison area in the display template for display, so as to update the statistical results displayed in each display area in the display template.
更进一步地,各项统计结果中携带有表征其类型的类型标识,由统计结果和上一统计结果对比所得到的对比结果中,在携带有其所来源统计结果的类型标识的同时,还对该类型标识进行更新,在该类型标识的基础上添加对比标识,表征该对比结果由某一类型参数经对比所生成的数据。展示模板的展示区域中预先设置有对比区域,对比区域中设置有表征其用于展示对比数据的标识,以及对比区域中所展示参数的类型。从而根据更新的类型标识,确定展示模板中展示对比结果所对应参数类型的对比区域,进而将各个对比结果依据类型标识添加到展示模板的各对比区域中进行展示,对此前展示模板中展示各项统计结果的展示区域进行更新。Furthermore, each statistical result carries a type identifier that characterizes its type. In the comparison result obtained by comparing the statistical result with the previous statistical result, while carrying the type identifier of the statistical result from its source, it also corrects The type identification is updated, and a comparison identification is added on the basis of the type identification to characterize the data generated by the comparison of a certain type of parameter in the comparison result. A comparison area is preset in the display area of the display template, and the comparison area is provided with an identifier for displaying the comparison data and the type of the parameter displayed in the comparison area. Therefore, according to the updated type identification, the comparison area of the parameter type corresponding to the comparison result displayed in the display template is determined, and each comparison result is added to each comparison area of the display template based on the type identification for display, and the previous display template displays various items The display area of the statistical results is updated.
此外还可以抓取各部署系统中日志数据的实时数据,并将该实时数据展示在展示模板中,通过将日志数据中的实时数据、各类系统当前参数的统计结果以及表征变化趋势的对比结果在不同展示区域同时展示在展示模板,便于对各部署系统的各类监控数据监控,进而对各部署系统进行分析和优化。In addition, you can capture the real-time data of the log data in each deployed system and display the real-time data in the display template. By displaying the real-time data in the log data, the statistical results of the current parameters of various systems, and the comparison results that characterize the changing trend Display templates in different display areas at the same time to facilitate the monitoring of various monitoring data of each deployment system, and then analyze and optimize each deployment system.
考虑到监控服务器所监控的部署系统众多,各部署系统均存在对应的展示模板,各展示模板若展示在同一界面中,对展示的效果有影响;从而可设置统一的用于对各部署系统的展示模板进行管理的界面,通过在该管理界面中选择需要展示的部署系统,才跳转到该部署系统所对应的展示模板进行展示。具体地,对展示模板中各展示区域展示的各统计结果进行更新的步骤之后包括:Considering that there are many deployment systems monitored by the monitoring server, each deployment system has a corresponding display template. If each display template is displayed in the same interface, it will have an impact on the display effect; thus, a unified system can be set for each deployment system. The display template management interface, by selecting the deployment system to be displayed in the management interface, it jumps to the display template corresponding to the deployment system for display. Specifically, the step of updating the statistical results displayed in each display area in the display template includes:
步骤S46,当接收到查看指令时,读取所述查看指令中携带的查看系统标识;Step S46, when receiving the viewing instruction, read the viewing system identification carried in the viewing instruction;
步骤S47,将所述查看系统标识和各所述展示模板所对应的系统标识对比,确定目标系统标识;Step S47, comparing the viewing system identification with the system identification corresponding to each of the display templates to determine the target system identification;
步骤S48,对与所述目标系统标识对应的目标展示模板进行调用,并将所述目标展示模板输出到监控界面显示。Step S48: Call the target display template corresponding to the target system identifier, and output the target display template to the monitoring interface for display.
进一步地,各个部署系统的名称以虚拟按键的形式排列显示在管理界面中,且各名称虚拟按键均携带有各自对应部署系统的系统标识;当有对某一部署系统的展示模板进行查看需求时,通过在管理界面中点击该部署系统对应的名称虚拟按键,即可对该部署系统所具有的展示模板进行查看。具体地,将该点击操作作为对展示模板进行查看的查看指令进行接收,因查看指令依据部署系统的名称虚拟按键进行触发,其携带有系统标识;将该系统标识作为查看系统标识进行读取,并将查看系统标识和各展示模板所对应的系统标识对比,确定各系统标识中和查看系统标识一致的目标系统标识;进而对具有该目标系统标识的目标展示模板进行调用,该目标展示模板即为所需求查看的展示模板。将该目标展示模板输出到监控界面显示,实现对该展示模板的查看需求。Further, the names of each deployment system are displayed in the management interface in the form of virtual buttons, and each virtual button of the name carries the system identification of the corresponding deployment system; when there is a need to view the display template of a certain deployment system , By clicking the virtual button corresponding to the name of the deployment system in the management interface, you can view the display templates of the deployment system. Specifically, the click operation is received as a viewing instruction for viewing the display template, because the viewing instruction is triggered according to the virtual button of the deployment system name, which carries the system identification; the system identification is read as the viewing system identification, And compare the viewing system identification with the system identification corresponding to each display template, determine the target system identification of each system identification that is consistent with the viewing system identification; then call the target display template with the target system identification, and the target display template is The display template viewed for the needs. The target display template is output to the monitoring interface for display to realize the viewing requirements for the display template.
此外,请参照图2,本申请提供一种多系统日志数据的监控装置,在本申请多系统日志数据的监控装置第一实施例中,所述多系统日志数据的监控装置包括:In addition, please refer to Figure 2. The present application provides a monitoring device for multi-system log data. In the first embodiment of the multi-system log data monitoring device of the present application, the multi-system log data monitoring device includes:
读取模块10,用于当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;The reading module 10 is configured to, when a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
分配模块20,用于若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;The allocation module 20 is configured to, if there is a target system parameter corresponding to the parameter type, according to the target system parameter, assign an interface group number and a display template group number to the system to be deployed corresponding to the deployment request to The system to be deployed is updated to a deployment system;
调用模块30,用于当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;The calling module 30 is configured to call the interface corresponding to the interface group number when the detection reaches the preset time interval corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
监控模块40,用于读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。The monitoring module 40 is configured to read the system identification carried in each of the current parameters, and according to the system identification, transmit each of the current parameters to the display template corresponding to the display template group number for display. The current parameters in the log data derived from each deployment system are monitored.
本实施例的多系统日志数据的监控装置,通过读取模块10读取与接收到的部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与该参数类型对应的目标系统参数;若存在则根据目标系统参数,分配模块20对与部署请求对应的待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;此后当检测达到与接口组号对应的预设时间间隔时,调用模块30则对接口组号对应的接口进行调用,并接收基于该接口所传输的当前参数;监控模块40再对各当前参数中所携带的系统标识进行读取,并依据该读取的系统标识,将各当前参数传输到与展示模板组号对应的展示模板中展示,从而实现对来源于各部署系统的日志数据中的当前参数进行监控。本方案中与部署请求对应的参数类型为需要部署的待部署系统所需求监控的参数类型,当存在与参数类型对应的目标系统参数时,则说明已部署完成的各部署系统的系统参数中存在对该参数类型进行监控的部署系统,从而可依据该目标系统参数,对待部署系统分配接口组号和展示模板组号,将待部署系统更新为部署系统;具有相同接口组号和展示模板组号的各部署系统使用同一接口进行数据传输,并使用同一展示模板进行数据展示;而具有不同接口组号和展示模板组号的各部署系统使用不同接口进行数据传输,且使用不同展示模板进行数据展示;在实现对各部署系统之间的不同监控需求进行差异化监控的同时,还在相同监控需求的各部署系统之间实现接口和展示模板的复用;在对各部署系统之间以其各自特点进行准确监控的同时,节省了监控资源。The multi-system log data monitoring device of this embodiment reads the parameter type corresponding to the received deployment request through the reading module 10, and determines whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system ; If it exists, according to the target system parameters, the allocation module 20 allocates the interface group number and the display template group number to the system to be deployed corresponding to the deployment request, and updates the system to be deployed to the deployment system; after that, when the detection reaches the interface group number corresponding to At the preset time interval, the calling module 30 calls the interface corresponding to the interface group number, and receives the current parameters transmitted based on the interface; the monitoring module 40 then reads the system identification carried in each current parameter, and According to the read system identification, each current parameter is transmitted to the display template corresponding to the display template group number for display, thereby realizing the monitoring of the current parameters in the log data from each deployment system. The parameter type corresponding to the deployment request in this solution is the parameter type that needs to be monitored by the system to be deployed. When there is a target system parameter corresponding to the parameter type, it means that the system parameters of each deployed system that have been deployed exist The deployment system that monitors this parameter type can assign the interface group number and display template group number to the system to be deployed based on the target system parameters, and update the system to be deployed to the deployment system; have the same interface group number and display template group number Each deployment system of the company uses the same interface for data transmission and uses the same display template for data display; while each deployment system with different interface group numbers and display template group numbers uses different interfaces for data transmission and uses different display templates for data display ; While achieving differentiated monitoring of the different monitoring requirements between the deployment systems, it also implements the reuse of interfaces and display templates between the deployment systems with the same monitoring requirements; each deployment system is based on its own While performing accurate monitoring, it saves monitoring resources.
其中,上述多系统日志数据的监控装置的各虚拟功能模块存储于图3所示多系统日志数据的监控设备的存储器1005中,处理器1001执行多系统日志数据的监控程序时,实现图2所示实施例中各个模块的功能。Among them, the virtual function modules of the above-mentioned multi-system log data monitoring device are stored in the memory 1005 of the multi-system log data monitoring device shown in FIG. 3, and when the processor 1001 executes the multi-system log data monitoring program, the implementation shown in FIG. 2 The function of each module in the embodiment is shown.
需要说明的是,本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned embodiments can be completed by hardware, or by a program to instruct related hardware, and the program can be stored in a computer readable Among the storage media, the aforementioned storage media may be read-only memory, magnetic disks, or optical disks.
参照图3,图3是本申请实施例方法涉及的硬件运行环境的设备结构示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the method of the embodiment of the present application.
本申请实施例多系统日志数据的监控设备可以是PC( personal computer,个人计算机 ),也可以是智能手机、平板电脑、电子书阅读器、便携计算机等终端设备。The monitoring device for multi-system log data in the embodiment of the application may be a PC (personal computer, personal computer ), or terminal devices such as smart phones, tablet computers, e-book readers, and portable computers.
如图3所示,该多系统日志数据的监控设备可以包括:处理器1001,例如CPU(Central Processing Unit,中央处理器),存储器1005,通信总线1002。其中,通信总线1002用于实现处理器1001和存储器1005之间的连接通信。存储器1005可以是高速RAM(random access memory,随机存取存储器),也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in Figure 3, the multi-system log data monitoring device may include: a processor 1001, such as a CPU (Central Processing Unit, central processing unit), memory 1005, communication bus 1002. Among them, the communication bus 1002 is used to implement connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM (random access memory, random access memory), or stable memory (non-volatile memory), such as disk storage. The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
可选地,该多系统日志数据的监控设备还可以包括用户接口、网络接口、摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi(Wireless Fidelity,无线宽带)模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Optionally, the monitoring equipment for the multi-system log data may also include user interfaces, network interfaces, cameras, RF (Radio Frequency, radio frequency) circuit, sensor, audio circuit, WiFi (Wireless Fidelity, wireless broadband) module and so on. The user interface may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optional network interface can include standard wired interface, wireless interface (such as WI-FI interface).
本领域技术人员可以理解,图3中示出的多系统日志数据的监控设备结构并不构成对多系统日志数据的监控设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the monitoring device for multi-system log data shown in FIG. 3 does not constitute a limitation on the monitoring device for multi-system log data, and may include more or less components than shown in the figure, or a combination Certain components, or different component arrangements.
如图3所示,作为一种可读存储介质的存储器1005中可以包括操作系统、网络通信模块以及多系统日志数据的监控程序。操作系统是管理和控制多系统日志数据的监控设备硬件和软件资源的程序,支持多系统日志数据的监控程序以及其它软件和/或程序的运行。网络通信模块用于实现存储器1005内部各组件之间的通信,以及与多系统日志数据的监控设备中其它硬件和软件之间通信。As shown in FIG. 3, the memory 1005 as a readable storage medium may include an operating system, a network communication module, and a monitoring program for multi-system log data. The operating system is a program that manages and controls the hardware and software resources of the monitoring device for multi-system log data, supports the operation of the multi-system log data monitoring program and other software and/or programs. The network communication module is used to realize the communication between various components in the memory 1005 and the communication with other hardware and software in the monitoring equipment of multi-system log data.
在图3所示的多系统日志数据的监控设备中,处理器1001用于执行存储器1005中存储的多系统日志数据的监控程序,实现上述多系统日志数据的监控方法各实施例中的步骤。In the multi-system log data monitoring device shown in FIG. 3, the processor 1001 is used to execute the multi-system log data monitoring program stored in the memory 1005 to implement the steps in the above-mentioned multi-system log data monitoring method in each embodiment.
本申请提供了一种可读存储介质,所述可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序还可被一个或者一个以上的处理器执行以用于实现上述多系统日志数据的监控方法各实施例中的步骤。This application provides a readable storage medium that stores one or more programs, and the one or more programs may also be executed by one or more processors to implement the above-mentioned multiple systems The steps in each embodiment of the method for monitoring log data.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on this understanding, the technical solution of this application essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium (such as ROM) as described above. /RAM, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是在本申请的构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。The above descriptions are only the preferred embodiments of this application, and do not limit the scope of this application. Under the concept of this application, equivalent structural transformations made using the contents of the specification and drawings of this application, or directly/indirectly used in Other related technical fields are included in the scope of patent protection of this application.

Claims (20)

  1. 一种多系统日志数据的监控方法,其特征在于,所述多系统日志数据的监控方法包括以下步骤: A method for monitoring multi-system log data, characterized in that the method for monitoring multi-system log data includes the following steps:
    当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;When a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
    若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
    当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
    读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
  2. 如权利要求1所述的多系统日志数据的监控方法,其特征在于,所述根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示的步骤包括:The method for monitoring log data of multiple systems according to claim 1, wherein the step of transmitting each of the current parameters to the display template corresponding to the display template group number according to the system identification comprises: :
    根据所述系统标识,对各所述当前参数进行分类,确定与各所述部署系统对应的系统当前参数;Classify each of the current parameters according to the system identification, and determine the current system parameters corresponding to each of the deployment systems;
    读取各所述系统当前参数中携带的类型标识,并根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果;Read the type identifiers carried in the current parameters of each of the systems, and perform classified statistics on the current parameters of each of the systems according to the type identifiers, and generate statistical results of the current parameters of the various types of systems in each of the deployment systems ;
    对与所述展示模板组号对应的展示模板进行调用,并根据所述类型标识,将各所述统计结果添加到所述展示模板中的各展示区域进行展示。The display template corresponding to the display template group number is called, and according to the type identification, each statistical result is added to each display area in the display template for display.
  3. 如权利要求2所述的多系统日志数据的监控方法,其特征在于,所述将各所述统计结果添加到所述展示模板中的各展示区域进行展示的步骤之后包括:The method for monitoring log data of multiple systems according to claim 2, wherein after the step of adding each of the statistical results to each display area in the display template for display, it comprises:
    读取各所述部署系统在上一预设时间间隔中所生成的上一统计结果,并根据所述系统标识,将各所述统计结果和所述上一统计结果进行对比,生成各对比结果;Read the last statistical result generated by each deployment system in the last preset time interval, and compare each statistical result with the last statistical result according to the system identifier, and generate each comparison result ;
    根据所述类型标识,将所述对比结果添加到所述展示模板中的对比区域进行展示,以对所述展示模板中各展示区域展示的各所述统计结果进行更新。According to the type identification, the comparison result is added to the comparison area in the display template for display, so as to update the statistical results displayed in each display area in the display template.
  4. 如权利要求3所述的多系统日志数据的监控方法,其特征在于,所述对所述展示模板中各展示区域展示的各所述统计结果进行更新的步骤之后包括:The method for monitoring log data in multiple systems according to claim 3, wherein the step of updating each of the statistical results displayed in each display area in the display template afterwards comprises:
    当接收到查看指令时,读取所述查看指令中携带的查看系统标识;When receiving a viewing instruction, read the viewing system identifier carried in the viewing instruction;
    将所述查看系统标识和各所述展示模板所对应的系统标识对比,确定目标系统标识;Comparing the viewing system identifier with the system identifier corresponding to each of the display templates to determine the target system identifier;
    对与所述目标系统标识对应的目标展示模板进行调用,并将所述目标展示模板输出到监控界面显示。The target display template corresponding to the target system identifier is called, and the target display template is output to the monitoring interface for display.
  5. 如权利要求2所述的多系统日志数据的监控方法,其特征在于,所述类型标识包括访问标识、响应时间标识和成功标识;所述根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果的步骤包括:The method for monitoring log data of multiple systems according to claim 2, wherein the type identification includes an access identification, a response time identification, and a success identification; according to each of the type identifications, the current parameters of each system The steps of performing classified statistics and generating statistical results of the current parameters of the various types of systems in each of the deployment systems include:
    根据所述访问标识、响应时间标识和成功标识,对各所述系统当前参数中的访问数据、响应时间数据和成功数据进行分类;Classify the access data, response time data, and success data in the current parameters of each system according to the access identifier, response time identifier, and success identifier;
    对所述访问数据的访问次数,以及所述成功数据的成功次数进行统计,并用统计的所述成功次数和所述访问次数做比值,生成访问成功率;Count the number of visits to the access data and the number of successes of the success data, and use the counted number of successes and the number of visits as a ratio to generate an access success rate;
    将各所述响应时间数据划分到各所述预设时间区间内,并对各所述预设时间区间内所具有的响应时间数据的数量进行统计,生成各数量值;Divide each of the response time data into each of the preset time intervals, and count the number of response time data in each of the preset time intervals to generate each quantity value;
    将各所述数量值和所述响应时间数据的总数量做比值,生成各所述预设时间区间的响应率,并将各所述响应率、访问数据、成功数据以及访问成功率生成为各所述部署系统中各类所述系统当前参数的统计结果。The ratio of each of the quantity value and the total quantity of the response time data is used to generate the response rate of each of the preset time intervals, and the response rate, access data, success data, and access success rate are generated as respective Statistical results of current parameters of various types of the system in the deployment system.
  6. 如权利要求1所述的多系统日志数据的监控方法,其特征在于,所述当接收到部署请求时,读取与所述部署请求对应的参数类型的步骤包括:The monitoring method of multi-system log data according to claim 1, wherein when a deployment request is received, the step of reading the parameter type corresponding to the deployment request comprises:
    当接收到部署请求时,读取所述待部署系统的环境版本号,并判断所述环境版本号是否为有效版本号;When a deployment request is received, read the environment version number of the system to be deployed, and determine whether the environment version number is a valid version number;
    若是有效版本号,则读取所述待部署系统的日志路径,并在将所述日志路径添加到预设配置文件后,读取与所述部署请求对应的参数类型;If it is a valid version number, read the log path of the system to be deployed, and after adding the log path to the preset configuration file, read the parameter type corresponding to the deployment request;
    若不是有效版本号,则输出第一提示信息,以提示所述待部署系统不支持部署。If it is not a valid version number, output the first prompt message to prompt that the system to be deployed does not support deployment.
  7. 如权利要求6所述的多系统日志数据的监控方法,其特征在于,所述判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数的步骤之后包括:7. The method for monitoring log data of multiple systems according to claim 6, wherein the step of determining whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system afterwards comprises:
    若不存在与所述参数类型对应的目标系统参数,则输出第二提示信息,以提示基于所述参数类型对预设参数进行更新;If there is no target system parameter corresponding to the parameter type, output second prompt information to prompt to update the preset parameters based on the parameter type;
    当接收到更新的预设参数,以及与更新的预设参数对应的更新接口组号和更新展示模板组号时,则将所述更新接口组合和更新展示模板组号分配为与所述部署请求对应待部署系统的接口组号和展示模板组号,以将所述待部署系统更新为部署系统。When the updated preset parameters are received, and the update interface group number and the update display template group number corresponding to the updated preset parameters are received, the update interface combination and the update display template group number are allocated to the deployment request Corresponding to the interface group number and the display template group number of the system to be deployed, so as to update the system to be deployed to the deployment system.
  8. 一种多系统日志数据的监控装置,其特征在于,所述多系统日志数据的监控装置包括:A monitoring device for multi-system log data, characterized in that the monitoring device for multi-system log data includes:
    读取模块,用于当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;The reading module is configured to, when a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
    分配模块,用于若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;The allocation module is configured to, if there is a target system parameter corresponding to the parameter type, according to the target system parameter, assign an interface group number and a display template group number to the system to be deployed corresponding to the deployment request, so as The system to be deployed is updated to the deployment system;
    调用模块,用于当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;The calling module is configured to call the interface corresponding to the interface group number when the detection reaches the preset time interval corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
    监控模块,用于读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。The monitoring module is used to read the system identification carried in each of the current parameters, and according to the system identification, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to verify the source Monitor the current parameters in the log data of each deployment system.
  9. 一种多系统日志数据的监控设备,其特征在于,所述多系统日志数据的监控设备包括:存储器、处理器、通信总线以及存储在所述存储器上的多系统日志数据的监控程序;A monitoring device for multi-system log data, characterized in that the monitoring device for multi-system log data includes: a memory, a processor, a communication bus, and a monitoring program for multi-system log data stored on the memory;
    所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize connection and communication between the processor and the memory;
    所述处理器用于执行所述多系统日志数据的监控程序,以实现以下步骤:当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;The processor is used to execute the multi-system log data monitoring program to implement the following steps: when a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether the system parameters of each deployment system There is a target system parameter corresponding to the parameter type;
    若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
    当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
    读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
  10. 如权利要求9所述的多系统日志数据的监控设备,其特征在于,所述根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示的步骤包括:The monitoring device for multi-system log data according to claim 9, wherein the step of transmitting each of the current parameters to the display template corresponding to the display template group number according to the system identification comprises: :
    根据所述系统标识,对各所述当前参数进行分类,确定与各所述部署系统对应的系统当前参数;Classify each of the current parameters according to the system identification, and determine the current system parameters corresponding to each of the deployment systems;
    读取各所述系统当前参数中携带的类型标识,并根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果;Read the type identifiers carried in the current parameters of each of the systems, and perform classified statistics on the current parameters of each of the systems according to the type identifiers, and generate statistical results of the current parameters of the various types of systems in each of the deployment systems ;
    对与所述展示模板组号对应的展示模板进行调用,并根据所述类型标识,将各所述统计结果添加到所述展示模板中的各展示区域进行展示。The display template corresponding to the display template group number is called, and according to the type identification, each statistical result is added to each display area in the display template for display.
  11. 如权利要求10所述的多系统日志数据的监控设备,其特征在于,所述将各所述统计结果添加到所述展示模板中的各展示区域进行展示的步骤之后,所述处理器用于执行所述多系统日志数据的监控程序,以实现以下步骤:The monitoring device for multi-system log data according to claim 10, wherein after the step of adding each of the statistical results to each display area in the display template for display, the processor is configured to execute The multi-system log data monitoring program realizes the following steps:
    读取各所述部署系统在上一预设时间间隔中所生成的上一统计结果,并根据所述系统标识,将各所述统计结果和所述上一统计结果进行对比,生成各对比结果;Read the last statistical result generated by each deployment system in the last preset time interval, and compare each statistical result with the last statistical result according to the system identifier, and generate each comparison result ;
    根据所述类型标识,将所述对比结果添加到所述展示模板中的对比区域进行展示,以对所述展示模板中各展示区域展示的各所述统计结果进行更新。According to the type identification, the comparison result is added to the comparison area in the display template for display, so as to update the statistical results displayed in each display area in the display template.
  12. 如权利要求11所述的多系统日志数据的监控设备,其特征在于,所述对所述展示模板中各展示区域展示的各所述统计结果进行更新的步骤之后,所述处理器用于执行所述多系统日志数据的监控程序,以实现以下步骤:The monitoring device for multi-system log data according to claim 11, wherein after the step of updating each of the statistical results displayed in each display area in the display template, the processor is configured to execute all Describe the monitoring program of multi-system log data to achieve the following steps:
    当接收到查看指令时,读取所述查看指令中携带的查看系统标识;When receiving a viewing instruction, read the viewing system identifier carried in the viewing instruction;
    将所述查看系统标识和各所述展示模板所对应的系统标识对比,确定目标系统标识;Comparing the viewing system identifier with the system identifier corresponding to each of the display templates to determine the target system identifier;
    对与所述目标系统标识对应的目标展示模板进行调用,并将所述目标展示模板输出到监控界面显示。The target display template corresponding to the target system identifier is called, and the target display template is output to the monitoring interface for display.
  13. 如权利要求10所述的多系统日志数据的监控设备,其特征在于,所述类型标识包括访问标识、响应时间标识和成功标识;所述根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果的步骤包括:The monitoring device for multi-system log data according to claim 10, wherein the type identification includes an access identification, a response time identification, and a success identification; according to each of the type identifications, the current parameters of each system The steps of performing classified statistics and generating statistical results of the current parameters of the various types of systems in each of the deployment systems include:
    根据所述访问标识、响应时间标识和成功标识,对各所述系统当前参数中的访问数据、响应时间数据和成功数据进行分类;Classify the access data, response time data, and success data in the current parameters of each system according to the access identifier, response time identifier, and success identifier;
    对所述访问数据的访问次数,以及所述成功数据的成功次数进行统计,并用统计的所述成功次数和所述访问次数做比值,生成访问成功率;Count the number of visits to the access data and the number of successes of the success data, and use the counted number of successes and the number of visits as a ratio to generate an access success rate;
    将各所述响应时间数据划分到各所述预设时间区间内,并对各所述预设时间区间内所具有的响应时间数据的数量进行统计,生成各数量值;Divide each of the response time data into each of the preset time intervals, and count the number of response time data in each of the preset time intervals to generate each quantity value;
    将各所述数量值和所述响应时间数据的总数量做比值,生成各所述预设时间区间的响应率,并将各所述响应率、访问数据、成功数据以及访问成功率生成为各所述部署系统中各类所述系统当前参数的统计结果。The ratio of each of the quantity value and the total quantity of the response time data is used to generate the response rate of each of the preset time intervals, and the response rate, access data, success data, and access success rate are generated as respective Statistical results of current parameters of various types of the system in the deployment system.
  14. 如权利要求9所述的多系统日志数据的监控设备,其特征在于,所述当接收到部署请求时,读取与所述部署请求对应的参数类型的步骤包括:The monitoring device for multi-system log data according to claim 9, wherein when a deployment request is received, the step of reading the parameter type corresponding to the deployment request comprises:
    当接收到部署请求时,读取所述待部署系统的环境版本号,并判断所述环境版本号是否为有效版本号;When a deployment request is received, read the environment version number of the system to be deployed, and determine whether the environment version number is a valid version number;
    若是有效版本号,则读取所述待部署系统的日志路径,并在将所述日志路径添加到预设配置文件后,读取与所述部署请求对应的参数类型;If it is a valid version number, read the log path of the system to be deployed, and after adding the log path to the preset configuration file, read the parameter type corresponding to the deployment request;
    若不是有效版本号,则输出第一提示信息,以提示所述待部署系统不支持部署。If it is not a valid version number, output the first prompt message to prompt that the system to be deployed does not support deployment.
  15. 一种可读存储介质,其特征在于,所述可读存储介质上存储有多系统日志数据的监控程序,所述多系统日志数据的监控程序被处理器执行,实现以下步骤:A readable storage medium, characterized in that a monitoring program for multi-system log data is stored on the readable storage medium, and the monitoring program for multi-system log data is executed by a processor, and the following steps are implemented:
    当接收到部署请求时,读取与所述部署请求对应的参数类型,并判断各部署系统的系统参数中是否存在与所述参数类型对应的目标系统参数;When a deployment request is received, read the parameter type corresponding to the deployment request, and determine whether there is a target system parameter corresponding to the parameter type in the system parameters of each deployment system;
    若存在与所述参数类型对应的目标系统参数,则根据所述目标系统参数,对与所述部署请求对应的待部署系统分配接口组号和展示模板组号,以将所述待部署系统更新为部署系统;If there is a target system parameter corresponding to the parameter type, according to the target system parameter, the system to be deployed corresponding to the deployment request is assigned an interface group number and a display template group number to update the system to be deployed To deploy the system;
    当检测达到与所述接口组号对应的预设时间间隔时,对所述接口组号对应的接口进行调用,并接收基于所述接口传输的当前参数;When the detection reaches the preset time interval corresponding to the interface group number, call the interface corresponding to the interface group number, and receive the current parameters transmitted based on the interface;
    读取各所述当前参数中所携带的系统标识,并根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示,以对来源于各所述部署系统的日志数据中的当前参数进行监控。Read the system identifier carried in each of the current parameters, and according to the system identifier, transmit each of the current parameters to the display template corresponding to the display template group number for display, so as to display The current parameters in the log data of the system are monitored.
  16. 如权利要求15所述的可读存储介质,其特征在于,所述根据所述系统标识,将各所述当前参数传输到所述展示模板组号对应的展示模板中展示的步骤包括:15. The readable storage medium according to claim 15, wherein the step of transmitting each of the current parameters to the display template corresponding to the display template group number according to the system identification comprises:
    根据所述系统标识,对各所述当前参数进行分类,确定与各所述部署系统对应的系统当前参数;Classify each of the current parameters according to the system identification, and determine the current system parameters corresponding to each of the deployment systems;
    读取各所述系统当前参数中携带的类型标识,并根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果;Read the type identifiers carried in the current parameters of each of the systems, and perform classified statistics on the current parameters of each of the systems according to the type identifiers, and generate statistical results of the current parameters of the various types of systems in each of the deployment systems ;
    对与所述展示模板组号对应的展示模板进行调用,并根据所述类型标识,将各所述统计结果添加到所述展示模板中的各展示区域进行展示。The display template corresponding to the display template group number is called, and according to the type identification, each statistical result is added to each display area in the display template for display.
  17. 如权利要求16所述的可读存储介质,其特征在于,所述将各所述统计结果添加到所述展示模板中的各展示区域进行展示的步骤之后,所述多系统日志数据的监控程序被处理器执行,实现以下步骤:The readable storage medium according to claim 16, wherein after the step of adding each of the statistical results to each display area in the display template for display, the monitoring program of the multi-system log data To be executed by the processor, the following steps are implemented:
    读取各所述部署系统在上一预设时间间隔中所生成的上一统计结果,并根据所述系统标识,将各所述统计结果和所述上一统计结果进行对比,生成各对比结果;Read the last statistical result generated by each deployment system in the last preset time interval, and compare each statistical result with the last statistical result according to the system identifier, and generate each comparison result ;
    根据所述类型标识,将所述对比结果添加到所述展示模板中的对比区域进行展示,以对所述展示模板中各展示区域展示的各所述统计结果进行更新。According to the type identification, the comparison result is added to the comparison area in the display template for display, so as to update the statistical results displayed in each display area in the display template.
  18. 如权利要求17所述的可读存储介质,其特征在于,所述对所述展示模板中各展示区域展示的各所述统计结果进行更新的步骤之后,所述多系统日志数据的监控程序被处理器执行,实现以下步骤:The readable storage medium of claim 17, wherein after the step of updating each of the statistical results displayed in each display area of the display template, the monitoring program of the multi-system log data is The processor executes the following steps:
    当接收到查看指令时,读取所述查看指令中携带的查看系统标识;When receiving a viewing instruction, read the viewing system identifier carried in the viewing instruction;
    将所述查看系统标识和各所述展示模板所对应的系统标识对比,确定目标系统标识;Comparing the viewing system identifier with the system identifier corresponding to each of the display templates to determine the target system identifier;
    对与所述目标系统标识对应的目标展示模板进行调用,并将所述目标展示模板输出到监控界面显示。The target display template corresponding to the target system identifier is called, and the target display template is output to the monitoring interface for display.
  19. 如权利要求16所述的可读存储介质,其特征在于,所述类型标识包括访问标识、响应时间标识和成功标识;所述根据各所述类型标识,对各所述系统当前参数进行分类统计,生成各所述部署系统中各类所述系统当前参数的统计结果的步骤包括:The readable storage medium according to claim 16, wherein the type identification includes an access identification, a response time identification, and a success identification; the classification and statistics of the current parameters of the system are performed according to each of the type identifications , The step of generating statistical results of the current parameters of the various systems in each deployment system includes:
    根据所述访问标识、响应时间标识和成功标识,对各所述系统当前参数中的访问数据、响应时间数据和成功数据进行分类;Classify the access data, response time data, and success data in the current parameters of each system according to the access identifier, response time identifier, and success identifier;
    对所述访问数据的访问次数,以及所述成功数据的成功次数进行统计,并用统计的所述成功次数和所述访问次数做比值,生成访问成功率;Count the number of visits to the access data and the number of successes of the success data, and use the counted number of successes and the number of visits as a ratio to generate an access success rate;
    将各所述响应时间数据划分到各所述预设时间区间内,并对各所述预设时间区间内所具有的响应时间数据的数量进行统计,生成各数量值;Divide each of the response time data into each of the preset time intervals, and count the number of response time data in each of the preset time intervals to generate each quantity value;
    将各所述数量值和所述响应时间数据的总数量做比值,生成各所述预设时间区间的响应率,并将各所述响应率、访问数据、成功数据以及访问成功率生成为各所述部署系统中各类所述系统当前参数的统计结果。The ratio of each of the quantity value and the total quantity of the response time data is used to generate the response rate of each of the preset time intervals, and the response rate, access data, success data, and access success rate are generated as respective Statistical results of current parameters of various types of the system in the deployment system.
  20. 如权利要求15所述的可读存储介质,其特征在于,所述当接收到部署请求时,读取与所述部署请求对应的参数类型的步骤包括:15. The readable storage medium according to claim 15, wherein when a deployment request is received, the step of reading a parameter type corresponding to the deployment request comprises:
    当接收到部署请求时,读取所述待部署系统的环境版本号,并判断所述环境版本号是否为有效版本号;When a deployment request is received, read the environment version number of the system to be deployed, and determine whether the environment version number is a valid version number;
    若是有效版本号,则读取所述待部署系统的日志路径,并在将所述日志路径添加到预设配置文件后,读取与所述部署请求对应的参数类型;If it is a valid version number, read the log path of the system to be deployed, and after adding the log path to the preset configuration file, read the parameter type corresponding to the deployment request;
    若不是有效版本号,则输出第一提示信息,以提示所述待部署系统不支持部署。 If it is not a valid version number, output the first prompt message to prompt that the system to be deployed does not support deployment.
PCT/CN2019/092960 2019-01-14 2019-06-26 Method, apparatus and device for monitoring multi-system log data, and readable storage medium WO2020147264A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910037704.9 2019-01-14
CN201910037704.9A CN109739730B (en) 2019-01-14 2019-01-14 Method, device and equipment for monitoring multi-system log data and readable storage medium

Publications (1)

Publication Number Publication Date
WO2020147264A1 true WO2020147264A1 (en) 2020-07-23

Family

ID=66364830

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/092960 WO2020147264A1 (en) 2019-01-14 2019-06-26 Method, apparatus and device for monitoring multi-system log data, and readable storage medium

Country Status (2)

Country Link
CN (1) CN109739730B (en)
WO (1) WO2020147264A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351090A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Log information transmission method and device based on intelligent large screen and storage medium
CN112751729A (en) * 2020-12-30 2021-05-04 平安证券股份有限公司 Log monitoring method, device, medium and electronic equipment
CN115394082A (en) * 2022-08-26 2022-11-25 中汽院智能网联科技有限公司 Operation and maintenance management system based on vehicle-road cooperation

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739730B (en) * 2019-01-14 2022-05-17 平安科技(深圳)有限公司 Method, device and equipment for monitoring multi-system log data and readable storage medium
CN110769448B (en) * 2019-11-01 2023-03-31 天津中新智冠信息技术有限公司 Monitoring method, monitoring device and monitoring system
CN112114930B (en) * 2020-09-30 2023-09-26 中国银行股份有限公司 Visualization method, device and equipment for system deployment state and readable storage medium
CN112307191A (en) * 2020-11-03 2021-02-02 平安普惠企业管理有限公司 Multi-system interactive log query method, device, equipment and storage medium
CN112416876A (en) * 2020-12-10 2021-02-26 北京中电普华信息技术有限公司 Log monitoring method and device of universal interface
CN112751836A (en) * 2020-12-24 2021-05-04 华人运通(上海)云计算科技有限公司 Vehicle data display method, device, storage medium and system
CN112988772B (en) * 2021-02-08 2023-07-21 平安科技(深圳)有限公司 Behavior data monitoring method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9448862B1 (en) * 2013-05-16 2016-09-20 Ca, Inc. Listening for externally initiated requests
CN106406834A (en) * 2015-07-30 2017-02-15 中兴通讯股份有限公司 Method, device and system for managing application system
CN107992398A (en) * 2017-12-22 2018-05-04 宜人恒业科技发展(北京)有限公司 The monitoring method and monitoring system of a kind of operation system
CN108563455A (en) * 2018-04-13 2018-09-21 郑州云海信息技术有限公司 Middleware portion arranging method, system and equipment in a kind of K-UX operating systems
CN109739730A (en) * 2019-01-14 2019-05-10 平安科技(深圳)有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of multisystem daily record data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993453B2 (en) * 2003-10-28 2006-01-31 International Business Machines Corporation Adjusted monitoring in a relational environment
CN105868087A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 A display method and device for multi-index data in a monitoring system
CN106227641B (en) * 2016-07-29 2019-01-29 北京润科通用技术有限公司 A kind of hardware performance monitoring method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9448862B1 (en) * 2013-05-16 2016-09-20 Ca, Inc. Listening for externally initiated requests
CN106406834A (en) * 2015-07-30 2017-02-15 中兴通讯股份有限公司 Method, device and system for managing application system
CN107992398A (en) * 2017-12-22 2018-05-04 宜人恒业科技发展(北京)有限公司 The monitoring method and monitoring system of a kind of operation system
CN108563455A (en) * 2018-04-13 2018-09-21 郑州云海信息技术有限公司 Middleware portion arranging method, system and equipment in a kind of K-UX operating systems
CN109739730A (en) * 2019-01-14 2019-05-10 平安科技(深圳)有限公司 Monitoring method, device, equipment and the readable storage medium storing program for executing of multisystem daily record data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351090A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Log information transmission method and device based on intelligent large screen and storage medium
CN112351090B (en) * 2020-10-29 2024-04-05 深圳Tcl新技术有限公司 Log information transmission method and device based on intelligent large screen and storage medium
CN112751729A (en) * 2020-12-30 2021-05-04 平安证券股份有限公司 Log monitoring method, device, medium and electronic equipment
CN115394082A (en) * 2022-08-26 2022-11-25 中汽院智能网联科技有限公司 Operation and maintenance management system based on vehicle-road cooperation

Also Published As

Publication number Publication date
CN109739730A (en) 2019-05-10
CN109739730B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
WO2020147264A1 (en) Method, apparatus and device for monitoring multi-system log data, and readable storage medium
WO2012002776A2 (en) Apparatus and method for controlling access to multiple services
WO2020233077A1 (en) System service monitoring method, device, and apparatus, and storage medium
WO2020015067A1 (en) Data acquisition method, device, equipment and storage medium
WO2020015064A1 (en) System fault processing method, apparatus, device and storage medium
WO2020155360A1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium
WO2016013811A1 (en) Subscriber identification module management method and electronic device supporting the same
WO2020119115A1 (en) Data verification method, device, apparatus, and storage medium
WO2016137307A1 (en) Attestation by proxy
WO2021003975A1 (en) Gateway interface test method, terminal device, storage medium and apparatus
WO2020119062A1 (en) Pre-installed application management method, device and storage medium
WO2019037196A1 (en) Method and device for task assignment, and computer-readable storage medium
WO2020147396A1 (en) Method for dynamically configuring service domain name, device, apparatus, and storage medium
WO2019024485A1 (en) Data sharing method and device and computer readable storage medium
WO2015020360A1 (en) Method and device for registering and certifying device in wireless communication system
WO2014030979A1 (en) Method and device for issuing reservation number through short-range wireless communication
WO2020233073A1 (en) Blockchain environment test method, device and apparatus, and storage medium
WO2020052152A1 (en) User residence determination method, apparatus, and device, and computer readable storage medium
WO2020087981A1 (en) Method and apparatus for generating risk control audit model, device and readable storage medium
WO2020077832A1 (en) Cloud desktop access method, apparatus and device, and storage medium
WO2020119369A1 (en) Intelligent it operation and maintenance fault positioning method, apparatus and device, and readable storage medium
WO2021027143A1 (en) Information pushing method, apparatus and device, and computer-readable storage medium
WO2020098078A1 (en) Method and apparatus for generating ocr training sample, device and readable storage medium
WO2020042482A1 (en) Agent service processing method, apparatus and device, and computer-readable storage medium
WO2020186780A1 (en) User operation recording and restoring method and apparatus, device, and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19910650

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19910650

Country of ref document: EP

Kind code of ref document: A1