Multi-server log analysis method and device and storage medium
By building a dedicated log file server and the network analytic hierarchy process, the complex problem of log management in a multi-server environment is solved, log risk assessment and fault location are realized quickly, and operation and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202410848323.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
In a multi-server environment, the management and analysis of log files is complex, resulting in low efficiency of operation and maintenance work, failure to obtain fault information in a timely manner, and affecting fault investigation and corrective measures.
Build a dedicated log file server, build a log risk assessment index system through automated log processing and network hierarchy analysis, achieve ID simplification, structuring, matrixing and urgency sorting of log information, and quickly locate the location of faults.
It improves the efficiency of viewing and analyzing log files, enables rapid investigation and correction of faults, improves operation and maintenance efficiency, and simplifies log query and analysis.
Smart Images

Figure CN118733387A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of log file monitoring, and in particular relates to a multi-server log analysis method, device and storage medium. Background Art
[0002] With the rapid improvement of the level of informatization, the scale of information systems in various industries continues to expand, the system architecture is becoming increasingly complex, and the requirements for business continuity and operation and maintenance quality are constantly increasing. At the same time, the operation and maintenance of the system is becoming more and more complex. At present, the deployment architecture of most large-scale application projects is complex, involving a large number of servers, and this work occupies a lot of time in the operation and maintenance work. Each information system operation and maintenance engineer needs to undertake the operation and maintenance of multiple types of information systems and servers, and needs to manage a wide variety of logs. The type of log varies according to the purpose of acquisition. If the logs required when a failure occurs cannot be obtained in time, it is impossible to centrally grasp the information of all elements such as the IT-related equipment and applications used, resulting in the inability to investigate the cause or take corrective measures. With the continuous increase of IT equipment and systems, the viewing and analysis of log files becomes time-consuming and laborious. A lot of time is wasted on viewing log files from different servers, resulting in reduced efficiency of operation and maintenance work. Summary of the invention
[0003] In order to solve the above problems existing in the prior art, the present invention provides a multi-server log analysis method, device and storage medium;
[0004] The purpose of the present invention can be achieved by the following technical solutions:
[0005] A multi-server log analysis method, the implementation of which comprises the following steps:
[0006] S1: construct a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information;
[0007] S2: performing log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing;
[0008] S3: constructing a log risk assessment index system based on the log information set by using the network analysis hierarchy process;
[0009] S4: Traverse the log risk assessment indicator system to quickly locate the failure locations of multiple servers.
[0010] Preferably, the step S2 specifically includes:
[0011] S201: performing the ID simplification process on the original log information set by improving the simplified ID algorithm and obtaining an ID simplified log information set;
[0012] S202: performing the structural processing on the ID simplified log information set by using a log regular expression and obtaining a structured log information set;
[0013] S203: Acquire an alarm information tag, wherein the alarm information tag includes a first alarm information tag and a second alarm information tag, preset an alarm information threshold, and perform the matrix processing on the structured log information set through a project mapping process to obtain a matrixed log information set;
[0014] S204: Acquire the urgency events of the matrix log information set, wherein the urgency events include but are not limited to unauthorized intrusion, information leakage, unauthorized copying, operation error, and system error, and automatically sort the urgency of the matrix log information set based on the urgency events to obtain the log information set.
[0015] Preferably, the step S201 specifically includes:
[0016] S201-1: Obtain the timestamp of the original log information, where the timestamp occupies 28 bits;
[0017] S201-2: Obtain the server ID where the original log information is located, where the server ID occupies 16 bits;
[0018] S201-3: Generate a 64-bit hash value through a hash function, where the 64-bit hash value occupies 32 bits;
[0019] S201-4: Obtain a user information ID, wherein the user information ID includes a user name and a terminal name, and the user information ID occupies 16 bits;
[0020] S201-5: Obtaining the original log information ID, where the original log information ID occupies 36 bits;
[0021] S201-6: Obtain a log binary number by combining the timestamp, the server ID, the 64-bit hash value, the user information ID, and the original log information ID, where the log binary number occupies 128 bits;
[0022] S201-7: Obtain a simplified log collection ID by converting the log binary number into a log hexadecimal number;
[0023] S201 - 8 : Obtain ID simplified log information according to the log collection simplified ID, and obtain the ID simplified log information set.
[0024] Preferably, the step S202 specifically includes:
[0025] The important attributes of the ID simplified log information are automatically extracted through the log regular expression, and the important attributes are saved in the form of a json file and used as an extended attachment file of the ID simplified log information. The log regular expression includes log source time, event ID, activity type, user name, source IP, source port, and warning information.
[0026] Preferably, the step S204 specifically includes:
[0027] S204-1: assigning an emergency event attribute weight according to the number of occurrences of the emergency event and obtaining an emergency event weight vector;
[0028] S204-2: Calculate the urgency ranking weight according to the urgency event weight vector by joint analysis method, and the calculation formula is:
[0029] e=Z T Y N
[0030] Among them, e is the urgency ranking weight, Z is the urgency event weight vector, and Y N is the log alert attribute matrix;
[0031] S204-3: Automatically sorting the matrixed log information set according to the urgency sorting weight from large to small, and obtaining the log information set.
[0032] Preferably, the step S3 specifically includes:
[0033] S301: Determine a log risk indicator set of the log information set according to the information security management system, the log risk indicator set including a physical security risk indicator set, a network security risk indicator set, a host security risk indicator set, an application security risk indicator set, and a data security risk indicator set; obtain a log risk indicator element set according to the log risk indicator set, the log risk indicator element set including a physical security element set, a network security element set, a host security element set, an application security element set, and a data security element set;
[0034] S302: Obtaining the influence of elements of the log risk indicator element set, comparing the influence of the elements two by two and constructing an element judgment matrix, and obtaining the log risk indicator element ranking vector of the element judgment matrix by the characteristic root method;
[0035] S303: Obtaining a log risk indicator supermatrix of the log risk indicator element sorting vector;
[0036] S304: obtaining a log risk indicator normalization matrix by comparing the importance of the log risk indicator set, and obtaining a log risk indicator weighted supermatrix and a μ-step advantage according to the log risk indicator normalization matrix and the log risk indicator supermatrix;
[0037] S305: Calculate the log risk indicator limit super matrix based on the log risk indicator weighted super matrix. The calculation formula of the log risk indicator limit super matrix is:
[0038]
[0039] in, is the log risk indicator limit supermatrix; is the μ-step advantage;
[0040] S306: Determine the log risk level standard of the log risk indicator element according to the log risk indicator limit super matrix, and construct the log risk assessment indicator system. The log risk level standard includes poor level, relatively poor level, general level, good level, and excellent level from low to high.
[0041] Preferably, the step S4 specifically includes traversing the log risk assessment indicator system from low to high according to the log risk level standard, and starting to troubleshoot the fault from the log risk indicator element of the poor level.
[0042] A multi-server log analysis device, used to execute the multi-server log analysis method described above, comprising a log acquisition module, a log automation processing module, a log risk assessment indicator system construction module, and a fault rapid location module;
[0043] The log acquisition module is used to build a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information;
[0044] The log automation processing module is used to perform log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing;
[0045] The log risk assessment indicator system construction module is used to construct a log risk assessment indicator system according to the log information set through the network analysis method;
[0046] The fault rapid location module is used to traverse the log risk assessment index system to rapidly locate the fault locations of multiple servers.
[0047] A storage medium containing computer executable instructions, wherein the computer executable instructions are used to perform the multi-server log analysis method described above when executed by a computer processor.
[0048] The beneficial effects of the present invention are:
[0049] (1) By building a log risk assessment indicator system, we can obtain the logs required when a failure occurs in a timely manner, quickly investigate the cause of the failure or take corrective measures, and improve the efficiency of viewing and analyzing log files, thereby improving the efficiency of operation and maintenance work;
[0050] (2) By improving the simplified ID algorithm, the original log information set is ID simplified and the ID simplified log information set is obtained, so as to achieve log ID simplification and facilitate log query and analysis;
[0051] (3) Automatically sort the matrix log information set by urgency from large to small using the urgency sorting weight, so as to facilitate fast log query;
[0052] (4) The log risk level standard of the log risk indicator elements is determined according to the log risk indicator limit super matrix, so as to objectively evaluate the log risk indicator and facilitate subsequent IT operation and maintenance engineers to quickly locate the specific location of the IT equipment or system failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0054] Figure 1 The present invention is a multi-server log analysis method step flow chart. DETAILED DESCRIPTION
[0055] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0056] The working principle and use process of the present invention:
[0057] See also Figure 1 , a multi-server log analysis method, comprising:
[0058] S1: Construct a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information. The original log information set is expressed as:
[0059] X={X1,X2,X3,…,X n}
[0060] Where X is the original log information set; n is the number of original log information; X1 is the first original log information; X2 is the second original log information; X3 is the third original log information; X n is the nth original log information;
[0061] S2: performing log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing;
[0062] S3: constructing a log risk assessment index system based on the log information set by using the network analysis hierarchy process;
[0063] S4: Traversing the log risk assessment indicator system to quickly locate the fault locations of multiple servers, the rapid location is specifically:
[0064] The log risk assessment index system is traversed from low to high according to the log risk level standard, and troubleshooting is started from the log risk index element of the poor level.
[0065] In this embodiment, the dedicated log file server performs log automation processing on the original log information set to obtain a log information set, and the log automation processing includes ID simplification processing, structured processing, matrix processing, and automatic urgency sorting processing, which can be specifically implemented by the following steps:
[0066] S201: performing the ID simplification process on the original log information set by improving the simplified ID algorithm and obtaining an ID simplified log information set;
[0067] S202: performing the structural processing on the ID simplified log information set by using a log regular expression and obtaining a structured log information set;
[0068] S203: Acquire an alarm information tag, wherein the alarm information tag includes a first alarm information tag and a second alarm information tag, preset an alarm information threshold, and perform matrix processing on the structured log information set through a project mapping process to obtain a matrixed log information set. The expression of the project mapping process is:
[0069] Y=[y1,y2,…,y i , ..., y Q ]i=1,2,...,Q
[0070]
[0071] Among them, Y is the structured log information set; Y N is the log alarm attribute matrix; y1 is the first structured log information; y2 is the second structured log information; i is the i-th structured log information; y Q is the Qth structured log information; Q is the number of structured log information; L1 is the first alarm information label; L2 is the second alarm information label; Thresho1d is the alarm information threshold;
[0072] S204: Acquire the urgency events of the matrix log information set, wherein the urgency events include but are not limited to unauthorized intrusion, information leakage, unauthorized copying, operation error, and system error, and automatically sort the urgency of the matrix log information set based on the urgency events to obtain the log information set.
[0073] In this embodiment, the ID simplification process is performed on the original log information set by improving the simplified ID algorithm to obtain the ID simplified log information set, which can be specifically implemented by the following steps:
[0074] S201-1: Obtain the timestamp of the original log information, where the timestamp occupies 28 bits;
[0075] S201-2: Obtain the server ID where the original log information is located, where the server ID occupies 16 bits;
[0076] S201-3: Generate a 64-bit hash value through a hash function, where the 64-bit hash value occupies 32 bits;
[0077] S201-4: Obtain a user information ID, wherein the user information ID includes a user name and a terminal name, and the user information ID occupies 16 bits;
[0078] S201-5: Obtaining the original log information ID, where the original log information ID occupies 36 bits;
[0079] S201-6: Obtain a log binary number by combining the timestamp, the server ID, the 64-bit hash value, the user information ID, and the original log information ID, where the log binary number occupies 128 bits;
[0080] S201-7: Obtain a simplified log collection ID by converting the log binary number into a log hexadecimal number;
[0081] S201-8: Obtain ID simplified log information according to the log collection simplified ID, and obtain the ID simplified log information set to achieve log ID simplification, which is convenient for log query and analysis. The ID simplified log information set expression is:
[0082] X'={X'1,X'2,X'3,…,X' P}
[0083] Where X' is the ID simplified log information set; P is the number of ID simplified log information; X'1 is the first ID simplified log information; X'2 is the second ID simplified log information; X'3 is the third ID simplified log information; X' p Simplify log information for pth ID.
[0084] In this embodiment, the ID simplified log information set is subjected to the structural processing by using a log regular expression and a structured log information set is obtained, which can be specifically implemented by the following steps:
[0085] The important attributes of the ID simplified log information are automatically extracted through the log regular expression, and the important attributes are saved in the form of a json file and used as an extended attachment file of the ID simplified log information. The log regular expression includes log source time, event ID, activity type, user name, source IP, source port, and warning information.
[0086] In this embodiment, the urgency events of the matrix log information set are obtained, and the urgency events include but are not limited to unauthorized intrusion, information leakage, unauthorized copying, operation error, and system error. Based on the urgency events, the matrix log information set is automatically sorted by the urgency and the log information set is obtained. Specifically, the following steps can be implemented:
[0087] S204-1: assigning an emergency event attribute weight according to the number of occurrences of the emergency event and obtaining an emergency event weight vector, wherein the emergency event weight vector is expressed as:
[0088] Z=[z1,z2,…,z T ]
[0089] Where Z is the weight vector of emergency events; T is the number of emergency events; z1 is the weight of the first emergency event; z2 is the weight of the second emergency event; z T is the weight of the Tth emergency event;
[0090] S204-2: Calculate the urgency ranking weight according to the urgency event weight vector by joint analysis method, and the calculation formula is:
[0091] e=Z T YN
[0092] Among them, e is the urgency ranking weight, Z is the urgency event weight vector; Y N is the log alert attribute matrix;
[0093] S204-3: Automatically sort the matrixed log information set by the urgency sorting weight from large to small, and obtain the log information set, so as to facilitate fast log query. The log information set expression is:
[0094] W={W1,W2,……,W R}
[0095] Where W is the log information set; W1 is the first log information; W2 is the second log information; W R is the Rth log information; R is the number of log information.
[0096] In this embodiment, a log risk assessment index system is constructed based on the log information set through the network hierarchy analysis method, so as to timely obtain the logs required when a fault occurs, realize rapid investigation of the fault cause or take corrective measures, and improve the efficiency of viewing and analyzing log files, thereby improving the efficiency of operation and maintenance work. Specifically, it can be implemented through the following steps:
[0097] S301: Determine the log risk indicator set of the log information set according to the information security management system, the log risk indicator set including but not limited to physical security risk indicator set, network security risk indicator set, host security risk indicator set, application security risk indicator set, and data security risk indicator set; obtain the log risk indicator element set according to the log risk indicator set, the log risk indicator element set including but not limited to physical security element set, network security element set, host security element set, application security element set, and data security element set; the physical security element set including but not limited to anti-static, anti-intrusion, power supply system security, and fire safety; the network security element set including but not limited to identity authentication, Trojan virus, communication encryption, and system vulnerability; the host security element set including but not limited to malicious code and operation error; the application security element set including but not limited to non-repudiation, software permission control, and software robustness; the data security element set including but not limited to data confidentiality and data integrity;
[0098] The log risk indicator set expression is:
[0099] B={B1,B2,…,B d}
[0100] Among them, B is the log risk indicator set; B1 is the first log risk indicator; B2 is the second log risk indicator; B dis the dth log risk indicator; d is the number of log risk indicators;
[0101] The log risk indicator element set expression is:
[0102] G={G1,…,G i, …,G j, …,G g}
[0103] Gi={e i1 ,e i2 ,…,e it},i=1,2,…,t
[0104] Gj = {f j1 ,f j2 ,…,f jk},j=1,2,…,k
[0105] Among them, G is the log risk indicator element set; G1 is the first log risk indicator element set; G i is the i-th log risk indicator element set; G j is the j-th log risk indicator element set; G g is the g-th log risk indicator element set; g is the number of log risk indicator element sets; e i1 is the first log risk indicator element of the i-th log risk indicator element set; e i2 is the second log risk indicator element of the i-th log risk indicator element set; e it is the tth log risk indicator element in the i-th log risk indicator element set; t is the number of log risk indicator elements in the i-th log risk indicator element set; f j1 is the first log risk indicator element of the jth log risk indicator element set; f j2 is the second log risk indicator element of the jth log risk indicator element set; f jk is the kth log risk indicator element in the jth log risk indicator element set; k is the number of log risk indicator elements in the jth log risk indicator element set;
[0106] S302: Obtain the influence of the elements of the log risk indicator element set, compare the influence of the elements two by two and construct an element judgment matrix, and obtain the log risk indicator element sorting vector of the element judgment matrix by the characteristic root method. The log risk indicator element sorting vector expression is:
[0107]
[0108] Among them, U ij Sort the vector of log risk indicator elements; is the element judgment matrix of the first log risk indicator element of the i-th log risk indicator element set and the first log risk indicator element of the j-th log risk indicator element set; is the element judgment matrix of the t-th log risk indicator element of the i-th log risk indicator element set and the k-th log risk indicator element of the j-th log risk indicator element set;
[0109] S303: Obtain the log risk indicator super matrix of the log risk indicator element sorting vector, the log risk indicator super matrix expression is:
[0110]
[0111] Where L is the log risk indicator supermatrix; B1 is the first log risk indicator; B2 is the second log risk indicator; B d is the dth log risk indicator; d is the number of log risk indicators; e i1 is the first log risk indicator element of the i-th log risk indicator element set; e i2 is the second log risk indicator element of the i-th log risk indicator element set; e it is the tth log risk indicator element in the i-th log risk indicator element set; t is the number of log risk indicator elements in the i-th log risk indicator element set; f j1 is the first log risk indicator element of the jth log risk indicator element set; f j2 is the second log risk indicator element of the jth log risk indicator element set; f jk is the kth log risk indicator element in the jth log risk indicator element set; k is the number of log risk indicator elements in the jth log risk indicator element set; U ij Sort the vector of log risk indicator elements;
[0112] S304: Obtain a log risk indicator normalization matrix by comparing the importance of the log risk indicator set. The log risk indicator normalization matrix expression is:
[0113]
[0114] The log risk indicator weighted super matrix is obtained according to the log risk indicator normalization matrix. The log risk indicator weighted super matrix expression is:
[0115]
[0116] in, is the log risk indicator weighted supermatrix; L is the log risk indicator supermatrix; is the normalized matrix of log risk indicators; is the one-step advantage of the i-th log risk indicator element set over the j-th log risk indicator element set;
[0117] Based on the one-step advantage, obtain the two-step advantage to μ-step advantage, where the μ-step advantage is the μ-th power of the one-step advantage;
[0118] S305: Calculate the log risk indicator limit super matrix based on the log risk indicator weighted super matrix. The calculation formula of the log risk indicator limit super matrix is:
[0119]
[0120] in, is the log risk indicator limit supermatrix; is the μ-step advantage;
[0121] S306: Determine the log risk level standard of the log risk indicator element according to the log risk indicator limit supermatrix, and construct the log risk assessment indicator system to achieve objective evaluation of log risk indicators, so as to facilitate subsequent IT operation and maintenance engineers to quickly locate the specific location point where the IT equipment or system fails. The log risk level standard includes poor level, poor level, general level, good level, and excellent level from low to high.
[0122] A multi-server log analysis device, comprising a log acquisition module, a log automatic processing module, a log risk assessment indicator system construction module, and a fault rapid location module;
[0123] The log acquisition module is used to build a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information;
[0124] The log automation processing module is used to perform log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing;
[0125] The log risk assessment indicator system construction module is used to construct a log risk assessment indicator system according to the log information set through the network analysis method;
[0126] The fault rapid location module is used to traverse the log risk assessment index system to rapidly locate the fault locations of multiple servers.
[0127] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0128] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0129] The program code included on the computer readable medium can be transmitted with any appropriate medium, including but not limited to wireless, electric wire, optical cable, RF, etc., or any suitable combination of the above. The computer program code for performing the operation of the present invention can be written in one or more programming languages or their combinations, and the programming language includes object-oriented programming languages-such as Java, Smalltalk, C++, and also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0130] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A multi-server log analysis method, characterized in that: The implementation of the multi-server log analysis method includes the following steps: S1: construct a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information; S2: performing log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing; S3: constructing a log risk assessment index system based on the log information set by using the network analysis hierarchy process; S4: Traverse the log risk assessment indicator system to quickly locate the failure locations of multiple servers.
2. The multi-server log analysis method according to claim 1, characterized in that: The step S2 specifically includes: S201: performing the ID simplification process on the original log information set by improving the simplified ID algorithm and obtaining an ID simplified log information set; S202: performing the structural processing on the ID simplified log information set by using a log regular expression and obtaining a structured log information set; S203: Acquire an alarm information tag, wherein the alarm information tag includes a first alarm information tag and a second alarm information tag, preset an alarm information threshold, and perform the matrix processing on the structured log information set through a project mapping process to obtain a matrixed log information set; S204: Acquire the urgency events of the matrix log information set, wherein the urgency events include unauthorized intrusion, information leakage, unauthorized copying, operation error, and system error. Based on the urgency events, the matrix log information set is automatically sorted by urgency and the log information set is obtained.
3. The multi-server log analysis method according to claim 2, characterized in that: The step S201 specifically includes: S201-1: Obtain the timestamp of the original log information, where the timestamp occupies 28 bits; S201-2: Obtain the server ID where the original log information is located, where the server ID occupies 16 bits; S201-3: Generate a 64-bit hash value through a hash function, where the 64-bit hash value occupies 32 bits; S201-4: Obtain a user information ID, wherein the user information ID includes a user name and a terminal name, and the user information ID occupies 16 bits; S201-5: Obtaining the original log information ID, where the original log information ID occupies 36 bits; S201-6: Obtain a log binary number by combining the timestamp, the server ID, the 64-bit hash value, the user information ID, and the original log information ID, where the log binary number occupies 128 bits; S201-7: Obtain a simplified log collection ID by converting the log binary number into a log hexadecimal number; S201 - 8 : Obtain ID simplified log information according to the log collection simplified ID, and obtain the ID simplified log information set.
4. The multi-server log analysis method according to claim 2, characterized in that: The step S202 specifically includes: The important attributes of the ID simplified log information are automatically extracted through the log regular expression, and the important attributes are saved in the form of a json file and used as an extended attachment file of the ID simplified log information. The log regular expression includes log source time, event ID, activity type, user name, source IP, source port, and warning information.
5. The multi-server log analysis method according to claim 2, characterized in that: The step S204 specifically includes: S204-1: assigning an emergency event attribute weight according to the number of occurrences of the emergency event and obtaining an emergency event weight vector; S204-2: Calculate the urgency ranking weight according to the urgency event weight vector by joint analysis method, and the calculation formula is: eZ Among them, e is the urgency ranking weight, Z is the urgency event weight vector, and Y N is the log alert attribute matrix; S204-3: Automatically sorting the matrixed log information set according to the urgency sorting weight from large to small, and obtaining the log information set.
6. The multi-server log analysis method according to claim 1, characterized in that: The step S3 specifically includes: S301: Determine a log risk indicator set of the log information set according to the information security management system, the log risk indicator set including a physical security risk indicator set, a network security risk indicator set, a host security risk indicator set, an application security risk indicator set, and a data security risk indicator set; obtain a log risk indicator element set according to the log risk indicator set, the log risk indicator element set including a physical security element set, a network security element set, a host security element set, an application security element set, and a data security element set; S302: Obtaining the influence of elements of the log risk indicator element set, comparing the influence of the elements two by two and constructing an element judgment matrix, and obtaining the log risk indicator element ranking vector of the element judgment matrix by the characteristic root method; S303: Obtaining a log risk indicator supermatrix of the log risk indicator element sorting vector; S304: obtaining a log risk indicator normalization matrix by comparing the importance of the log risk indicator set, and obtaining a log risk indicator weighted supermatrix and a μ-step advantage according to the log risk indicator normalization matrix and the log risk indicator supermatrix; S305: Calculate the log risk indicator limit super matrix based on the log risk indicator weighted super matrix. The calculation formula of the log risk indicator limit super matrix is: in, is the log risk indicator limit supermatrix, is the μ-step advantage; S306: Determine the log risk level standard of the log risk indicator element according to the log risk indicator limit super matrix, and construct the log risk assessment indicator system, wherein the log risk level standard includes poor level, relatively poor level, general level, good level, and excellent level from low to high.
7. The multi-server log analysis method according to claim 1, characterized in that: The step S4 specifically includes traversing the log risk assessment indicator system from low to high according to the log risk level standard, and starting to troubleshoot the fault from the log risk indicator element of the poor level.
8. A multi-server log analysis device, characterized in that: The device is used to execute the multi-server log analysis method as described in any one of claims 1 to 7, including a log acquisition module, a log automation processing module, a log risk assessment indicator system construction module, and a fault rapid location module; The log acquisition module is used to build a dedicated log file server, collect original log file information from multiple servers through the dedicated log file server, and obtain an original log information set based on the original log file information; The log automation processing module is used to perform log automation processing on the original log information set through the dedicated log file server to obtain a log information set, wherein the log automation processing includes ID simplification processing, structural processing, matrix processing, and automatic urgency sorting processing; The log risk assessment indicator system construction module is used to construct a log risk assessment indicator system according to the log information set through the network analysis method; The fault rapid location module is used to traverse the log risk assessment index system to rapidly locate the fault locations of multiple servers.
9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the multi-server log analysis method as described in any one of claims 1-7 when executed by a computer processor.
