Error code identification method and device, equipment and storage medium
Through automated error code recognition methods, including obtaining error codes from the system log, verifying and querying error information tables, and using the identification model to generate solutions, the problem of inefficient system error resolution in banking business scenarios is solved, and more efficient automatic solution generation is achieved.
Patent Information
- Application Number
- CN202410992499.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2025-02-25
AI Technical Summary
In banking business scenarios, since the identification of error codes depends on manual operations, the system error resolution efficiency is inefficient.
By obtaining the target error code from the system log, determining its encoding rules and verifying them. If the verification is passed, query the target error information table and input the error information into the identification model to obtain the solution.
It realizes automated error code recognition and solution generation, which significantly improves the efficiency of system error resolution compared to manual methods.
Smart Images

Figure CN119514525A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to an error code recognition method, device, equipment and storage medium. Background Art
[0002] With the development of electronic business processing, electronic systems have greatly improved the efficiency and accuracy of business processing. There are many types of errors in the process of business processing. Error codes can provide a standardized and safe way of expression. Developers can determine solutions based on error codes and solve system errors based on the solutions.
[0003] In banking business scenarios, business processing is characterized by huge amounts of data, so the number of errors generated is also large.
[0004] There is an inefficiency in manually determining solutions, which leads to inefficient resolution of system errors. Summary of the invention
[0005] The present application provides an error code recognition method, device, equipment and storage medium to improve the efficiency of resolving system errors.
[0006] In the first aspect, the present application provides a method for identifying an error code, comprising: obtaining a target error code from a system log; determining a coding rule for the error code, and verifying the target error code according to the coding rule to obtain a verification result, wherein the verification result includes verification passed or verification failed; if the verification result is verification passed, querying a target error information table to obtain a target error information corresponding to the target error code, wherein the target error information table includes a first correspondence between the error code and the error information; inputting the target error information into a recognition model to obtain a target solution corresponding to the target error information, wherein the recognition model is obtained by performing model training on training samples, and the recognition model is used to predict a solution corresponding to the system error corresponding to the error information.
[0007] In one possible design, the target error code is verified according to the encoding rule to obtain a verification result, including: determining the target type corresponding to the target error code according to the type character in the target error code; determining a second correspondence between the type and the standard information; determining the target standard information corresponding to the target type in the encoding rule according to the target type and the second correspondence; and verifying the target error code according to the target standard information to obtain a verification result.
[0008] In one possible design, the target error code is verified according to the target standard information to obtain a verification result, including: determining the target standard information according to the encoding rule, the target standard information including at least one of the following: an error code length standard, an error code structure standard, or an error code character standard; if the target error code meets each target standard information, then the verification result is determined to be verification passed; if the target error code does not meet each target standard information, then the verification result is determined to be verification failed.
[0009] In one possible design, querying the target error information table to obtain the target error information corresponding to the target error code includes: determining a third correspondence between the type and the error information table; determining the target error information table corresponding to the target type based on the target type and the third correspondence; and querying the target error information table based on the target error code to obtain the target error information.
[0010] In one possible design, the method also includes: obtaining target context information corresponding to the target error code from the system log; converting the target context information into target additional information; inputting the target error information and the target attachment information into the recognition model to obtain a target solution corresponding to the target error information.
[0011] In one possible design, the target context information is converted into target additional information, including: determining a target template corresponding to the target error code, the target template including multiple placeholders; and replacing multiple placeholders in the target template with the target context information to obtain the target additional information.
[0012] In one possible design, the method also includes: obtaining historical error information and historical additional information corresponding to the historical error information; determining the historical solution corresponding to the historical error information; using the historical error information and the historical additional information as input and the historical solution as a label to perform model training to obtain the recognition model.
[0013] In the second aspect, the present application provides an error code identification device, including: an acquisition module, used to obtain a target error code from a system log; a verification module, used to determine the coding rule of the error code, and verify the target error code according to the coding rule to obtain a verification result, and the verification result includes verification passed or verification failed; a query module, used to query a target error information table to obtain a target error information corresponding to the target error code if the verification result is verification passed, and the target error information table includes a first correspondence between the error code and the error information; an identification module, used to input the target error information into a recognition model to obtain a target solution corresponding to the target error information, the recognition model is obtained by model training on training samples, and the recognition model is used to predict the solution corresponding to the system error corresponding to the error information.
[0014] In one possible design, the verification module is specifically used to determine the target type corresponding to the target error code according to the type character in the target error code; the verification module is also specifically used to determine the second correspondence between the type and the standard information; the verification module is also specifically used to determine the target standard information corresponding to the target type in the encoding rule according to the target type and the second correspondence; the verification module is also specifically used to verify the target error code according to the target standard information to obtain a verification result.
[0015] In one possible design, the verification module is specifically used to determine the target standard information according to the encoding rules, and the target standard information includes at least one of the following: an error code length standard, an error code structure standard, or an error code character standard; the verification module is specifically used to determine that the verification result is a passed verification if the target error code meets each target standard information; the verification module is specifically used to determine that the verification result is a failed verification if the target error code does not meet each target standard information.
[0016] In one possible design, the device also includes: a processing module, used to determine a third correspondence between a type and an error information table; the processing module is also used to determine a target error information table corresponding to the target type based on the target type and the third correspondence; the processing module is also used to query the target error information table according to the target error code to obtain the target error information.
[0017] In one possible design, the device also includes: an execution module, used to obtain target context information corresponding to the target error code from the system log; the execution module, also used to convert the target context information into target additional information; the execution module, also used to input the target error information and the target attachment information into the recognition model to obtain a target solution corresponding to the target error information.
[0018] In one possible design, the execution module is specifically used to determine the target template corresponding to the target error code, and the target template includes multiple placeholders; the execution module is also specifically used to replace the multiple placeholders in the target template with the target context information to obtain the target additional information.
[0019] In one possible design, the device also includes: a training module, used to obtain historical error information and historical additional information corresponding to the historical error information; the training module is also used to determine the historical solution corresponding to the historical error information; the training module is also used to use the historical error information and the historical additional information as input and the historical solution as a label to perform model training to obtain the recognition model.
[0020] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the error code identification method described in the first aspect and various possible designs of the first aspect.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the error code recognition method described in the first aspect and various possible designs of the first aspect is implemented.
[0022] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the error code identification method described in the first aspect and various possible designs of the first aspect.
[0023] The error code recognition method, device, equipment and storage medium provided in the present application include: obtaining a target error code from a system log; determining a coding rule for the error code, and verifying the target error code according to the coding rule to obtain a verification result, wherein the verification result includes verification passed or verification failed; if the verification result is verification passed, querying a target error information table to obtain a target error information corresponding to the target error code, wherein the target error information table includes a first correspondence between the error code and the error information; inputting the target error information into a recognition model to obtain a target solution corresponding to the target error information, wherein the recognition model is obtained by model training on training samples, and the recognition model is used to predict a solution corresponding to the system error corresponding to the error information. The above scheme can improve the efficiency of generating a target solution by automatically querying the target error information table and automatically determining the target solution through the recognition model compared to the manual method, thereby improving the efficiency of solving system errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0025] Figure 1 A schematic diagram of an application scenario of an error code recognition method provided in an embodiment of the present application;
[0026] Figure 2 A flowchart of a method for identifying an error code provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of a method for identifying an error code provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of determining target standard information provided in an embodiment of the present application;
[0029] Figure 5 A schematic diagram of standard information provided for an embodiment of the present application;
[0030] Figure 6 A schematic diagram of determining the information provided by the embodiment of the present application as a target;
[0031] Figure 7 A schematic diagram of the structure of an error code recognition device provided in an embodiment of the present application;
[0032] Figure 8 A schematic diagram of the structure of an error code recognition device provided in an embodiment of the present application;
[0033] Fig. 9A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0034] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0036] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0037] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0038] Figure 1 FIG. 1 is an application scenario diagram of error code recognition in the prior art. Figure 1 As shown, during the operation of the system, a corresponding error code is generated according to the system error. The system error will affect the operation of the system. A matching solution is generated according to the error code, and the system is optimized according to the solution to achieve normal operation of the system.
[0039] In the prior art, R&D personnel manually generate solutions based on error codes. This process is limited by the experience of the R&D personnel and requires consulting technical manuals, which leads to low efficiency in solving system errors.
[0040] In response to the above technical problems, this application proposes the following technical concept: automatically generate solutions based on error codes to reduce manual operations.
[0041] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0042] Figure 2 A flowchart of a method for identifying an error code provided in an embodiment of the present application, the method comprising the following steps:
[0043] S201. Obtain a target error code from a system log.
[0044] As an example, the execution subject of this embodiment may be an error code recognition device, and there are many ways to implement the error code recognition device. For example, it may be program software, or a medium storing relevant computer programs, such as a USB flash drive, etc.; or, the device may also be a physical device integrated or installed with relevant computer programs, such as a chip, a smart terminal, a computer, a server, etc.
[0045] Among them, system logs are records of various events and activities in the system. These records usually include but are not limited to system startup and shutdown, hardware and software operating status, user activities, system errors, security events or other important events.
[0046] Optionally, the system log includes multiple messages and a classification identifier of each message, and the target error code is obtained from the system log according to the classification identifier.
[0047] Combined with the scenario example, the classification identifier is used to distinguish different information types. For example, an error code corresponds to an error code classification identifier. The error code classification identifier can be used to quickly and accurately obtain the target error code.
[0048] Optionally, the target error code is an error code of a preset time period.
[0049] Combined with the scenario example, the system log stores the generation time corresponding to each error code, and the error code corresponding to the generation time within the preset period is determined as the target error code. For example, if the preset period is 3 days before the current time, the error code of the period earlier than the preset period has been resolved and does not need to be obtained again.
[0050] It can be understood that by obtaining error codes in a preset period of time, the number of error codes obtained can be reduced, thereby improving the efficiency of resolving system errors.
[0051] S202: Determine a coding rule for the error code, and perform verification processing on the target error code according to the coding rule to obtain a verification result, where the verification result includes verification passed or verification failed.
[0052] Among them, the error code is generated according to the encoding rules, so as to ensure the standardization of the error code.
[0053] Combined with the scenario example, the error code generation, transmission, or storage process may change due to a fault. The changed error code cannot accurately reflect the system error. The changed error code can be filtered out through verification processing, thereby improving the accuracy of system error resolution.
[0054] Optionally, the target error code is preprocessed before verification processing is performed, and the preprocessing includes but is not limited to removing irrelevant characters or spaces.
[0055] It can be understood that preprocessing can prevent irrelevant characters or spaces from affecting the verification process, thereby improving the accuracy of the verification process.
[0056] S203: If the verification result is that the verification is passed, query the target error information table to obtain the target error information corresponding to the target error code, where the target error information table includes a first correspondence between the error code and the error information.
[0057] The error code is in the form of a string, the error message is in the form of a natural language, and the error message is a specific description of the error, including detailed information of the error. The error message table is pre-established based on a one-to-one correspondence between the error code and the error message.
[0058] Combined with the scenario example, if the verification result is verification passed, it means that the target error code is a valid error code, and the target error information corresponding to the target error code is automatically determined. If the verification result is verification failed, it means that the target error code is an invalid error code, and the determination of the target error information is not performed, thereby reducing invalid operations.
[0059] Optionally, if the verification result is that the verification fails, a prompt message is issued to analyze the reason for generating an invalid error code.
[0060] S204, inputting the target error information into a recognition model to obtain a target solution corresponding to the target error information, wherein the recognition model is obtained by training a training sample, and the recognition model is used to predict a solution corresponding to a system error corresponding to the error information.
[0061] Optionally, the recognition model is continuously iterated and optimized.
[0062] Combined with the scenario example, with the development of electronicization, new errors and corresponding information error codes will gradually be generated. The recognition model is continuously iterated and optimized according to the newly generated error codes so that the recognition model can accurately identify the newly generated errors. At the same time, the use of the recognition model can reduce the learning cost of R&D personnel to learn solutions to new errors.
[0063] The error code recognition method provided in the embodiment of the present application includes: obtaining a target error code from a system log; determining a coding rule for the error code, and verifying the target error code according to the coding rule to obtain a verification result, the verification result includes verification passed or verification failed; if the verification result is verification passed, querying the target error information table to obtain the target error information corresponding to the target error code, the target error information table includes a first correspondence between the error code and the error information; inputting the target error information into a recognition model to obtain a target solution corresponding to the target error information, the recognition model is obtained by model training on training samples, and the recognition model is used to predict the solution corresponding to the system error corresponding to the error information. The above scheme, by automatically querying the target error information table and automatically determining the target solution through the recognition model, can improve the efficiency of generating the target solution compared to the manual method, thereby improving the efficiency of solving system errors.
[0064] Based on any of the above embodiments, Figure 3 , the detailed process of error code recognition is explained.
[0065] Figure 3 The following is a flow chart of a method for identifying an error code provided in an embodiment of the present application. Figure 3 As shown, the method includes:
[0066] S301. Obtain a target error code from a system log.
[0067] It should be noted that the execution process of S301 refers to S201 and will not be repeated here.
[0068] S302: Determine the target type corresponding to the target error code according to the type character in the target error code.
[0069] The target error code is a character string including a type character, and the type character indicates the target type of the error corresponding to the target error code.
[0070] Combined with the scenario example, for example, the first digit in the target error code is the type character, and the target type corresponding to the target error code is determined according to the value of the first digit of the target error code. The type can be a technical error, a business error, or a third-party error. Technical errors include platform, system, or program errors, business errors are caused by business processing rules, and third-party errors are caused by third-party software or third-party interfaces.
[0071] S303: Determine a second corresponding relationship between the type and the standard information.
[0072] Among them, the error code is generated based on standard information.
[0073] Combined with the scenario example, each type of error code is generated according to the corresponding standard information. The standard information is grouped through the second corresponding relationship, which can avoid confusion of the standard information and thus improve the recognition accuracy of the error code.
[0074] S304: Determine target standard information corresponding to the target type in the encoding rule according to the target type and the second corresponding relationship.
[0075] Among them, the coding rules are used to ensure the systematicness and consistency of the error codes, and the coding rules include multiple standard information.
[0076] Next, combine Figure 4 Describe the target standard information.
[0077] Figure 4 This is a schematic diagram of determining target standard information provided by an embodiment of the present application. Figure 4 As shown, the encoding rule includes multiple standard information, each of which corresponds to a type of error code. The target standard information is determined from the multiple standard information by the target type and the type corresponding to each standard information.
[0078] S305: Verify the target error code according to the target standard information to obtain a verification result.
[0079] Combined with the scenario example, the target error code is generated by the system according to the target standard information, so the target error code conforms to the rules of the target standard information, and thus the target error code can be verified according to the target standard information.
[0080] A feasible implementation method can perform verification processing through the following method: determine the target standard information according to the encoding rules, and the target standard information includes at least one of the following: error code length standard, error code structure standard, or error code character standard; if the target error code meets each target standard information, the verification result is determined to be verification passed; if the target error code does not meet each target standard information, the verification result is determined to be verification failed.
[0081] The error code length standard is the character number standard of the error code string, the error code structure standard is the character type of each bit or each segment of the error code string, and the error code character standard is the character type or character encoding type restricted by the error code string.
[0082] Next, combine Figure 5 Describes standard information.
[0083] Figure 5 A schematic diagram of standard information provided for an embodiment of the present application. Figure 5A four-segment twelve-bit standard information is shown, that is, the standard information stipulates that the character string of the error code is 12 bits, and the character string is divided into 4 segments, each segment representing a type of information.
[0084] Combined with the scenario example, refer to Figure 5 , the first paragraph: the length is 1 bit, used for the direction of the error, which can be the general direction of the error, indicating whether the current error should be checked or handled by technical personnel, business personnel, or third-party support personnel, that is, the first-level classification of the error. The characters in the first paragraph can be preset letters. The second paragraph: the length is 2 bits, used for the qualitative characterization of the error, that is, to determine the nature or severity of the error, indicating the second-level classification of the error. The characters in the second paragraph can be any letter. The third paragraph: the length is 5 bits, used to classify and identify the source of the error. The third paragraph is filled with the corresponding code of the framework unit or logical component where the error occurs. The fourth paragraph: the length is 4 bits, used for the subdivision of the error. For certain types of typical errors, a proprietary 4-digit number can be used. This processing method is defined by each application or component.
[0085] Combined with the scenario example, for the first paragraph, the corresponding letters are preset for each error type, so as to accurately determine the type corresponding to the target error code according to the letters in the first paragraph of the target error code. For the second paragraph, the secondary classification can specifically include hardware errors, data content related, read-write related, database related, communication related, security service related, technical logic related, password authentication related, permission control related, or content duplication related, etc.
[0086] It should be noted that the specific information represented by each paragraph is not limited.
[0087] Exemplarily, the error code is generated according to standard information, and by comparing the target error code with the target standard information, it can be accurately determined whether the target error code is legal.
[0088] In this feasible implementation, the target error code is verified through the target standard information to avoid the error code recognition error caused by the illegality of the target error code, thereby improving the error code recognition accuracy.
[0089] S306: Determine a third correspondence between the type and the error information table.
[0090] The error information table stores a plurality of error messages in natural language.
[0091] Optionally, the third correspondence includes a one-to-one correspondence between types and error information tables.
[0092] S307: Determine a target error information table corresponding to the target type according to the target type and the third corresponding relationship.
[0093] Combined with the scenario example, with the development of electronicization, the number of error information tables is gradually increasing, and the data of error information in the error information tables is also gradually increasing. If the error information is directly searched, there is a problem of low efficiency. By grouping the target error information tables through the third corresponding relationship, the recognition efficiency of the error code can be improved.
[0094] S308. Query the target error information table according to the target error code to obtain the target error information.
[0095] In combination with the scenario example description, the information corresponding to the target error code in the target error information table is determined as the target error information.
[0096] Next, combine Figure 6 Explain the query target error message.
[0097] Figure 6 This is a schematic diagram of query target error information provided by an embodiment of the present application. Figure 6 As shown, a target information table is determined from multiple error information tables according to a target type of a target error code, the target information table includes multiple error messages, and the target error message is determined from the multiple error messages according to the target error code.
[0098] S309, input the target error information into the recognition model to obtain the target solution corresponding to the target error information, the recognition model is obtained by training the training samples, and the recognition model is used to predict the solution corresponding to the system error corresponding to the error information.
[0099] In a feasible implementation method, the error code recognition method also includes: obtaining target context information corresponding to the target error code from the system log; converting the target context information into target additional information; inputting the target error information and the target attachment information into the recognition model to obtain the target solution corresponding to the target error information.
[0100] The target context information is information related to the target error code in the system log, which can provide additional information for the target error code. The additional information is in the form of natural language.
[0101] Combined with scenario examples, converting the target context information into natural language can improve the readability of the information.
[0102] Optionally, each error code corresponds to a unique error message. If the core content of multiple different error messages is the same, but the additional prompts for supplementary explanation are different, the same dynamic error code can be used to represent them. The additional prompt part is displayed using dynamic parameters to distinguish different error messages.
[0103] In this feasible implementation, by converting the target context information into target additional information, the readability of the information is improved, thereby improving the recognition accuracy of the recognition model.
[0104] A feasible implementation method can convert the target context information into the target additional information by the following method: determining the target template corresponding to the target error code, the target template including multiple placeholders; replacing multiple placeholders in the target template with the target context information to obtain the target additional information.
[0105] Combined with the scenario example, taking authentication error as an example, the error message corresponding to the target error code is the authentication error of the login account, but the specific information is unclear. The context of the target error code includes the account ID where the error occurred. For example, the target template can be an authentication error for an account with the account ID "placeholder". The target context information includes the account ID where the error occurred. The account ID is filled into the placeholder of the target template to obtain the target additional information.
[0106] In this feasible implementation, generating additional information through a template can improve generation efficiency, thereby improving error code recognition efficiency.
[0107] A feasible implementation method is to train the model through the following method: obtain historical error information and historical additional information corresponding to the historical error information; determine the historical solution corresponding to the historical error information; use the historical error information and historical additional information as input, and use the historical solution as a label to train the model to obtain a recognition model.
[0108] Optionally, historical error information covers multiple types of errors, thereby improving the recognition accuracy of the recognition model.
[0109] Optionally, the recognition accuracy of the recognition model can be improved by manually confirming and verifying whether the historical solution can effectively solve the error.
[0110] Exemplarily, the recognition model is trained in continuous iteration.
[0111] Combined with the scenario example, the recognition model trained with historical data is then iteratively trained with the solution results of the target solution. If the target solution solves the error corresponding to the target error information, the target error information is used as input, and the target solution is used as a label to iteratively train the recognition model. If the target solution does not solve the error corresponding to the target error information, the correct solution corresponding to the target error information is manually determined, and the target error information is used as input, and the recognition model is iteratively trained with the correct solution as a label. It can be understood that the recognition accuracy of the recognition model can be further optimized through iterative training.
[0112] In this feasible implementation, the recognition accuracy of the recognition model can be improved by training the model through a supervised training method.
[0113] Figure 7 This is a schematic diagram of the structure of an error code recognition device provided in an embodiment of the present application. Figure 7 As shown, the error code recognition device 70 may include: an acquisition module 71, a verification module 72, a query module 73 and an identification module 74, wherein:
[0114] The acquisition module 71 is used to acquire the target error code from the system log.
[0115] The verification module 72 is used to determine the coding rule of the error code, and verify the target error code according to the coding rule to obtain a verification result, where the verification result includes verification passed or verification failed.
[0116] The query module 73 is used to query the target error information table to obtain the target error information corresponding to the target error code if the verification result is that the verification is passed. The target error information table includes a first correspondence between the error code and the error information.
[0117] The recognition module 74 is used to input the target error information into the recognition model to obtain the target solution corresponding to the target error information. The recognition model is obtained by training the training samples. The recognition model is used to predict the solution corresponding to the system error corresponding to the error information.
[0118] Optionally, the acquisition module 71 may execute Figure 2 S201 in the embodiment.
[0119] Optionally, the verification module 72 may execute Figure 2 S202 in the embodiment.
[0120] Optionally, the query module 73 may execute Figure 2 S203 in the embodiment.
[0121] Optionally, the identification module 74 may execute Figure 2 S204 in the embodiment.
[0122] It should be noted that the error code recognition device shown in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0123] In a possible implementation, the verification module 72 is specifically configured to:
[0124] According to the type character in the target error code, determine the target type corresponding to the target error code; determine the second correspondence between the type and the standard information; according to the target type and the second correspondence, determine the target standard information corresponding to the target type in the encoding rule; the verification module is specifically used to verify the target error code according to the target standard information to obtain a verification result.
[0125] In a possible implementation, the verification module 72 is specifically configured to:
[0126] The target standard information is determined according to the encoding rules, and the target standard information includes at least one of the following: an error code length standard, an error code structure standard, or an error code character standard; if the target error code meets each target standard information, the verification result is determined to be verification passed; if the target error code does not meet each target standard information, the verification result is determined to be verification failed.
[0127] Figure 8 A schematic diagram of the structure of an error code recognition device provided in an embodiment of the present application. Figure 7 Based on the embodiment shown, Figure 8 As shown, the error code recognition device 70 also includes: a processing module 75, an execution module 76 and a training module 77, wherein:
[0128] The processing module 75 is used to:
[0129] Determine a third correspondence between the type and the error information table; determine a target error information table corresponding to the target type according to the target type and the third correspondence; query the target error information table according to the target error code to obtain the target error information.
[0130] The execution module 76 is used to:
[0131] Obtain target context information corresponding to the target error code from the system log; convert the target context information into target additional information; input the target error information and the target attachment information into the recognition model to obtain a target solution corresponding to the target error information.
[0132] In a possible implementation, the execution module 76 is specifically configured to:
[0133] A target template corresponding to a target error code is determined, where the target template includes a plurality of placeholders; and the plurality of placeholders in the target template are replaced by target context information to obtain target additional information.
[0134] The training module 77 is used to:
[0135] Obtain historical error information and historical additional information corresponding to the historical error information; determine historical solutions corresponding to the historical error information; use the historical error information and historical additional information as input, and use the historical solutions as labels to perform model training to obtain a recognition model.
[0136] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. Each module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The functions of each module. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0137] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include: a transceiver 91 , a processor 92 , and a memory 93 .
[0138] The processor 92 executes the computer execution instructions stored in the memory, so that the processor 92 executes the scheme in the above embodiment. The processor 92 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0139] The memory 93 is connected to the processor 92 via a system bus and completes communication between them. The memory 93 is used to store computer program instructions.
[0140] The transceiver 91 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.
[0141] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0142] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.
[0143] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the error code recognition method in the above embodiment.
[0144] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the error code recognition method of the above embodiment.
[0145] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the error code identification method in the above embodiment can be implemented.
[0146] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0147] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0148] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0149] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0150] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0151] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0152] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0153] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0154] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. The storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). The processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.
[0155] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for identifying an error code, characterized in that: include: Get the target error code from the system log; Determine a coding rule for the error code, and perform verification processing on the target error code according to the coding rule to obtain a verification result, wherein the verification result includes verification passed or verification failed; If the verification result is that the verification is passed, querying a target error information table to obtain target error information corresponding to the target error code, wherein the target error information table includes a first correspondence between an error code and an error information; The target error information is input into a recognition model to obtain a target solution corresponding to the target error information. The recognition model is obtained by training a training sample. The recognition model is used to predict a solution corresponding to a system error corresponding to the error information.
2. The method according to claim 1, characterized in that: The target error code is verified according to the encoding rule to obtain a verification result, including: Determine the target type corresponding to the target error code according to the type character in the target error code; Determine a second correspondence between the type and the standard information; Determining target standard information corresponding to the target type in the encoding rule according to the target type and the second corresponding relationship; The target error code is verified according to the target standard information to obtain a verification result.
3. The method according to claim 2, characterized in that The target error code is verified according to the target standard information to obtain a verification result, including: Determine target standard information according to the encoding rule, the target standard information including at least one of the following: an error code length standard, an error code structure standard, or an error code character standard; If the target error code meets each target standard information, determining that the verification result is verification passed; If the target error code does not conform to each target standard information, the verification result is determined to be verification failure.
4. The method according to claim 2, characterized in that: Query the target error information table to obtain the target error information corresponding to the target error code, including: Determine the third correspondence between the type and the error information table; Determine a target error information table corresponding to the target type according to the target type and the third corresponding relationship; The target error information is obtained by querying the target error information table according to the target error code.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Acquire target context information corresponding to the target error code from the system log; Converting the target context information into target additional information; The target error information and the target attachment information are input into the recognition model to obtain a target solution corresponding to the target error information.
6. The method according to claim 5, characterized in that Converting the target context information into target additional information includes: Determine a target template corresponding to the target error code, wherein the target template includes a plurality of placeholders; The target additional information is obtained by replacing multiple placeholders in the target template with the target context information.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Obtaining historical error information and historical additional information corresponding to the historical error information; Determine a historical solution corresponding to the historical error information; The historical error information and the historical additional information are used as input, and the historical solutions are used as labels to perform model training to obtain the recognition model.
8. An error code recognition device, characterized in that: include: The acquisition module is used to obtain the target error code from the system log; A verification module, used to determine a coding rule for an error code, and verify the target error code according to the coding rule to obtain a verification result, wherein the verification result includes verification passed or verification failed; A query module, configured to query a target error information table to obtain target error information corresponding to the target error code if the verification result is that the verification is passed, wherein the target error information table includes a first correspondence between the error code and the error information; The recognition module is used to input the target error information into the recognition model to obtain the target solution corresponding to the target error information. The recognition model is obtained by model training on training samples. The recognition model is used to predict the solution corresponding to the system error corresponding to the error information.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.