Log diagnosis method and device, equipment, storage medium and program product

By extracting and matching the key error logs and preset information in the question answering library in the transaction business processing system, the problem of inefficient diagnosis caused by user manual browsing of logs is solved, and automated log analysis and rapid diagnosis are realized.

CN119088607APending Publication Date: 2024-12-06CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188058.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In large-scale transaction business processing systems, users need to manually browse and filter processing logs to identify error logs and corresponding problems, resulting in low log diagnosis efficiency.

Method used

By obtaining the transaction information entered by the user, the key error log in the background log is extracted, and it is matched with the preset error log in the question answering library, the diagnostic results are generated, and the preset model is used for semantic matching and priority sorting, and automatic Log analysis to improve diagnostic efficiency.

Benefits of technology

Improve log diagnostic efficiency, reduce the need for manual screening, enable intelligent identification of critical errors or abnormal logs, and provide rapid diagnostic suggestions or handling methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088607A_ABST
    Figure CN119088607A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a log diagnosis method and device, equipment, a storage medium and a program product, and relates to the field of artificial intelligence. The method comprises the following steps: in response to transaction information input by a user, obtaining a background log corresponding to the transaction information; obtaining preset keyword information; determining key information corresponding to the background log according to identification data in the keyword information; obtaining a question answering library, and carrying out matching processing on question answering information in the question answering library and the key information to obtain a matching list; and generating a diagnosis result according to the matching list and the priority of the question answering information. According to the method, the log diagnosis efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to artificial intelligence, and in particular to a log diagnosis method, device, equipment, storage medium and program product. Background Art

[0002] In a large-scale transaction processing system, transaction-related processing logs will be generated. In order to accurately locate the problem, log query and diagnosis processing are required to ensure the normal processing of the transaction.

[0003] In the prior art, log data is received by a log collector and sent to a search engine. Based on a query interface of the search engine, a user can enter specific query conditions to retrieve error logs for log diagnosis.

[0004] However, in the above method, the user needs to manually browse and filter the processing logs to identify the error logs and the corresponding error problems. The operation process is cumbersome and time-consuming, resulting in low efficiency of log diagnosis. Summary of the invention

[0005] The embodiments of the present application provide a log diagnosis method, apparatus, device, storage medium and program product to solve the technical problem that users need to manually browse and filter logs, resulting in low log diagnosis efficiency.

[0006] In a first aspect, an embodiment of the present application provides a log diagnosis method, including:

[0007] In response to transaction information input by the user, a background log corresponding to the transaction information is obtained; wherein the transaction information represents the business data of the user's transaction business; the background log includes a business log generated during the transaction business processing;

[0008] Obtaining preset keyword information; and determining the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs;

[0009] Obtain a question answering library, and match each question answering information in the question answering library with the key information to obtain a matching list; wherein the question answering information represents the question answering content of the preset error log; the question answering information has a priority, and the priority represents the accuracy of the question answering information; the matching list includes at least one of the question answering information;

[0010] A diagnosis result is generated according to the matching list and the priority of the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem of the background log.

[0011] In a possible implementation, each question answer information in the question answer library is matched with the key information to obtain a matching list, including:

[0012] Based on a preset model, semantic matching processing is performed on each of the question answering information and the key information to obtain at least one target answering information; wherein the target answering information is the question answering information that matches the key information;

[0013] According to the priority of each target answer information, each target answer information is sorted to obtain the matching list.

[0014] In a possible implementation, based on a preset model, semantic matching is performed on each of the question answer information and the key information to obtain at least one target answer information, including:

[0015] The problem-solving information is identified and extracted to obtain the associated log in the error information in the problem-solving information; wherein the error information includes an associated log and a fixed log; the associated log represents the error log associated with the transaction business; the fixed log is fixed log data;

[0016] Performing semantic matching processing on the associated log and the key information to obtain a matching result of the associated log;

[0017] If it is determined that the matching result of the associated log indicates that the associated log matches the key information, the question answering information where the associated log is located is determined to be the target answering information.

[0018] In a possible implementation, the problem-solving information is identified and extracted to obtain a related log in the problem-solving information, including:

[0019] According to the preset associated tags, the question answering information is identified and extracted to obtain the associated log corresponding to the question answering information.

[0020] In a possible implementation, performing semantic matching processing on the associated log and the key information to obtain a matching result of the associated log includes:

[0021] Performing similarity calculation processing on the associated log and the key information to obtain semantic similarity corresponding to the associated log; wherein the semantic similarity represents the degree of semantic similarity between the associated log and the key information;

[0022] According to the semantic similarity corresponding to the associated logs, a matching result of the associated logs is determined.

[0023] In a possible implementation, performing similarity calculation processing on the associated log and the key information to obtain the semantic similarity corresponding to the associated log includes:

[0024] Performing encoding processing on the associated log to obtain an associated text representation corresponding to the associated log; and performing encoding processing on the key information to obtain a key text representation corresponding to the key information;

[0025] Performing feature processing on the associated text representation to obtain an associated feature vector corresponding to the associated text representation; and performing feature processing on the key text representation to obtain a key feature vector corresponding to the key text representation; wherein the associated feature vector represents the semantic features of the associated log; and the key feature vector represents the semantic features of the key information;

[0026] The cosine similarity calculation process is performed on the associated feature vector and the key feature vector to obtain the semantic similarity corresponding to the associated log.

[0027] In a possible implementation, determining the matching result of the associated log according to the semantic similarity corresponding to the associated log includes:

[0028] If it is determined that the semantic similarity is greater than a preset threshold, determining that the matching result of the associated log indicates that the associated log matches the key information;

[0029] If it is determined that the semantic similarity is less than or equal to the preset threshold, it is determined that the matching result of the associated log indicates that the associated log does not match the key information.

[0030] In a possible implementation, determining the matching result of the associated log according to the semantic similarity corresponding to the associated log includes:

[0031] Comparing the format information of the associated log and the format information of the key information to obtain a comparison result corresponding to the associated log; wherein the format information includes a log format and a log field length; the comparison result indicates whether the format information of the associated log and the format information of the key information are consistent;

[0032] According to the semantic similarity and the comparison result corresponding to the associated log, a matching result of the associated log is determined.

[0033] In a possible implementation, determining the key information corresponding to the background log according to the identification data in the keyword information includes:

[0034] The key information is determined according to the identification data, keywords and matching rules in the keyword information.

[0035] In a possible implementation manner, the background log includes at least one log entry representing a business log; and determining the key information according to the identification data, the keyword, and the matching rule in the keyword information includes:

[0036] Performing regular expression conversion processing on the identification data, keywords and matching rules in the keyword information to obtain a regular expression corresponding to the keyword information;

[0037] Performing matching processing on the log entry and the regular expression to obtain a matching result corresponding to the log entry;

[0038] If it is determined that the matching result of the log entry indicates that the log entry successfully matches the regular expression, then the log entry is determined to be an error log in the key information.

[0039] In a possible implementation, the method further includes:

[0040] If it is determined that the matching result of the log entry indicates that the log entry fails to match the regular expression, the log entry is discarded.

[0041] In a possible implementation, generating a diagnosis result according to the matching list and the priority of the question answering information includes:

[0042] Determine the processing information in the problem-solving information with the highest priority in the matching list as the diagnosis result; wherein the processing information is the cause of the problem and the processing method corresponding to the error information in the problem-solving information.

[0043] In a possible implementation, in response to transaction information input by a user, obtaining a background log corresponding to the transaction information includes:

[0044] In response to the transaction information input by the user, determining a query field corresponding to the transaction information; wherein the query field represents a preset query condition;

[0045] Based on the query interface, the background log is obtained according to the query field.

[0046] In a possible implementation manner, before obtaining the question answer library, the method further includes:

[0047] Receive multiple question answering information input by the user; and determine the priority of the question answering information according to the business processing information; wherein the business processing information represents the processing logic of processing transaction business in the business system;

[0048] The plurality of question answering information are stored in the question answering library.

[0049] In a possible implementation, the method further includes:

[0050] In response to feedback information from the user, the question answer library is updated; wherein the feedback information indicates that the diagnosis result is inaccurate or invalid.

[0051] In a possible implementation, updating the question answering library includes:

[0052] The question answering library is updated according to the historical key information, wherein the historical key information includes key information determined within a historical time period.

[0053] In a second aspect, an embodiment of the present application provides a log diagnosis device, including:

[0054] An acquisition module, configured to acquire a background log corresponding to the transaction information in response to the transaction information input by the user; wherein the transaction information represents the business data of the user's transaction business; and the background log includes a business log generated during the transaction business processing;

[0055] A determination module, used to obtain preset keyword information; and determine the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs;

[0056] A processing module is used to obtain a question answering library, and match each question answering information in the question answering library with the key information to obtain a matching list; wherein the question answering information represents the question answering content of the preset error log; the question answering information has a priority, and the priority represents the accuracy of the question answering information; the matching list includes at least one of the question answering information;

[0057] The diagnosis module is used to generate a diagnosis result according to the matching list and the priority of the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem of the background log.

[0058] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0059] The memory stores computer-executable instructions;

[0060] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0061] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0062] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0063] The log diagnosis method, apparatus, device, storage medium and program product provided in the embodiments of the present application extract key error logs in the background log through the identification data in the keyword information, and match the extracted error logs with the problem answering content of each preset error log in the problem answering library to obtain a matching list, and finally obtain the error problem diagnosis status of the background log through the priority of each problem answering information in the matching list; thereby improving the log diagnosis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] 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.

[0065] Figure 1 A schematic diagram of an application scenario provided for this application;

[0066] Figure 2 A flow chart of a log diagnosis method provided in an embodiment of the present application;

[0067] Figure 3 A flowchart of another log diagnosis method provided in an embodiment of the present application;

[0068] Figure 4 A flowchart of another log diagnosis method provided in an embodiment of the present application;

[0069] Figure 5 A flowchart of a semantic matching process provided in an embodiment of the present application;

[0070] Figure 6 A schematic diagram of an example of question answering information configuration provided in an embodiment of the present application;

[0071] Figure 7 A schematic diagram of a log diagnosis process provided in an embodiment of the present application;

[0072] Figure 8 A flowchart of another log diagnosis method provided in an embodiment of the present application;

[0073] Fig. 9 A schematic diagram of the structure of a log diagnostic device provided in an embodiment of the present application;

[0074] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0075] 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

[0076] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.

[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0078] In addition, this application involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and the use of artificial intelligence technology for automated decision-making, and a technical solution for making decisions that have a significant impact on personal rights and interests based on the results of automated decision-making. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decision-making; if the user chooses to reject, the expert decision-making process will be entered.

[0079] Figure 1 A schematic diagram of an application scenario provided by this application. Figure 1As shown, the specific application scenario of the present application includes an electronic device 101 and a tester 102. The tester 102 can use the electronic device 101 to perform log query and diagnostic processing on the transaction business-related processing log generated in the transaction business processing system deployed in the electronic device 101 to ensure normal processing of the transaction business.

[0080] In one example, a log collector in electronic device 101 can receive log data from various sources, process it, and then send it to a search engine in electronic device 101. The search engine is used to store, search, and analyze large amounts of log data. Based on a visualization tool in electronic device 101, tester 102 can retrieve error logs by inputting specific query conditions based on the search engine's query interface, and view the error logs in the search engine through a graphical interface. Tester 102 can also create a dashboard through the visualization tool in electronic device 101 to monitor and analyze log information.

[0081] However, in the above method, users need to manually browse and filter the processing logs to identify error logs and corresponding error problems. The operation process is cumbersome and time-consuming. There is no automated log analysis function, and it is impossible to intelligently identify key errors or abnormal logs. There is no automatic matching of error information in the log with Frequently Asked Questions (FAQ) to provide quick diagnostic suggestions or processing methods. As a result, the efficiency of log diagnosis is low.

[0082] In response to the above technical problems, the present application proposes the following technical concept: extract the key error logs in the background logs through the identification data in the keyword information, and match the extracted error logs with the problem-solving content of each preset error log in the problem-solving library to obtain a matching list, and finally obtain the error problem diagnosis situation of the background log by matching the priority of each problem-solving information in the list. In this way, it is possible to solve the problem in the prior art that users need to manually browse and filter the processing logs, resulting in low log diagnosis efficiency.

[0083] 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.

[0084] Figure 2 A flow chart of a log diagnosis method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method includes:

[0085] 201. In response to transaction information input by a user, a background log corresponding to the transaction information is obtained; wherein the transaction information represents business data of the user's transaction business; and the background log includes a business log generated during the transaction business processing.

[0086] Exemplarily, the execution subject of this embodiment may be an electronic device, hereinafter referred to as the device. The device may be a physical device or a virtual device that executes the log diagnosis method. The test support personnel inputs the transaction information of a certain business, and the transaction information represents the business data of the user's transaction business, such as the transaction serial number provided by the user, and the intelligent diagnosis function can start working. The device responds to the transaction information provided by the tester, and based on the transaction information, searches for all background logs related to the transaction information in the preset log system. The background log includes the business logs generated during the transaction business processing to be processed.

[0087] 202. Obtain preset keyword information; and determine the key information corresponding to the background log based on the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs.

[0088] Exemplarily, before starting the log diagnosis, it is necessary to make some basic settings for the system's operating logic and background logs. According to the system's technical documents and log rules, we can determine the preset keyword information to help us quickly find important information from a large number of background logs. The keyword information includes the unique identification of each business submodule in the business system, that is, identification data, such as a submodule code, where each business submodule is used to process transaction business and generate background logs. When the device performs log diagnosis, it can obtain the preset keyword information, and according to the identification data in the keyword information, extract the error log corresponding to the identification data of the keyword information from the background log, that is, obtain the key error log in the background log included in the key information; then, the log analysis can be automated.

[0089] 203. Obtain a question and answer library, and match each question and answer information and key information in the question and answer library to obtain a matching list; wherein the question and answer information represents the question and answer content of the preset error log; the question and answer information has a priority, and the priority represents the accuracy of the question and answer information; the matching list includes at least one question and answer information.

[0090] For example, before starting the log diagnosis, some basic settings need to be made for the system's operating logic and background logs, and a series of common question-answering information FAQs can be sorted out, wherein each FAQ is set with a corresponding priority, and each priority represents the accuracy of each FAQ. The higher the accuracy, the higher the priority, and all FAQs are stored in the question-answering library. When the device performs log diagnosis, it can obtain each FAQ in the question-answering library, and match each FAQ with the extracted key information to obtain one or more FAQs that successfully match the extracted key information, organize these successfully matched FAQs into a list, and sort them according to the priority of each FAQ in the list to obtain a matching list. For example, each FAQ in the list can be sorted in order from high to low or from low to high according to priority.

[0091] 204. Generate a diagnosis result according to the matching list and the priority of the problem answering information; wherein the diagnosis result represents the diagnosis status of the error problem reported in the background log.

[0092] Exemplarily, the device can select several question-answering information from the matching list as the diagnosis result according to the priority of each question-answering information; for example, if each question-answering information in the matching list is arranged in descending order according to priority, a preset number of question-answering information arranged in the front, such as the first three question-answering information, can be selected as the final output diagnosis result, thereby quickly understanding the diagnosis status of the error problem in the background log.

[0093] In the present embodiment, a log diagnosis method is provided, which extracts key error logs in the background log through identification data in keyword information, and matches the extracted error logs with the problem answering contents of each preset error log in the problem answering library to obtain a matching list, and finally obtains the error problem diagnosis status of the background log through the priority of each problem answering information in the matching list, thereby improving the log diagnosis efficiency.

[0094] Figure 3 A flow chart of another log diagnosis method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method includes:

[0095] 301. In response to transaction information input by a user, determine a query field corresponding to the transaction information; wherein the query field represents a preset query condition.

[0096] For example, the test support personnel inputs the transaction information of a certain business, such as the transaction serial number provided by the user, and the intelligent diagnosis function can start working. The device responds to the transaction information provided by the tester, and based on the transaction information, searches for all query fields related to the transaction information in the preset log system, and the query field represents the preset query condition.

[0097] 302. Based on the query interface, the background log is obtained according to the query field.

[0098] Exemplarily, the device calls a preset query interface, performs query search processing according to the query field, and searches all background logs related to the query field from the preset log system, including business logs generated during the transaction business processing, to be processed. In turn, the business logs can be quickly accessed and searched to improve the efficiency of subsequent log diagnosis.

[0099] 303. Obtain preset keyword information; and determine key information according to identification data, keywords and matching rules in the keyword information.

[0100] Exemplarily, the keyword information preset before starting the log diagnosis mainly includes the unique identifier of each business submodule in the business system, that is, the identification data, and also includes some keywords and matching rules. The preset keyword information example is shown in Table 1 below to help us quickly find important information from a large number of background logs. When the device performs log diagnosis, it can obtain the preset keyword information, and according to the identification data, keywords and matching rules in the keyword information, extract the error log corresponding to the keyword information from the background log, that is, obtain the key information.

[0101] Table 1 Keyword information example 1 Table

[0102] Submodule code Keywords Matching rules

[0103] For example, if we set a preset keyword information example as shown in Table 2 below, the rule for extracting key error information is clear: extract the log ending with "[Find original transaction failure]" in the "ABC" submodule, then the system will filter the logs according to this rule; thus, key error logs can be automatically identified, reducing the need for manual screening.

[0104] Table 2 Keyword information Example 2 Table

[0105] ABC [Failed to find the original transaction] Logs ending with keyword

[0106] In one example, the background log includes at least one log entry representing a business log; step 303 includes the following steps:

[0107] The first step of step 303 is to perform regular expression conversion processing on the identification data, keywords and matching rules in the keyword information to obtain a regular expression corresponding to the keyword information.

[0108] The second step of step 303 is to match the log entry with the regular expression to obtain a matching result corresponding to the log entry.

[0109] In the third step of step 303, if it is determined that the matching result of the log entry indicates that the log entry successfully matches the regular expression, the log entry is determined to be an error log in the key information.

[0110] In one example, step 303 further includes the following steps: if it is determined that the matching result of the log entry indicates that the log entry fails to match the regular expression, then the log entry is removed.

[0111] Exemplarily, the device converts the identification data, keywords and matching rules in the preset keyword information into a corresponding regular expression, and then matches the regular expression with each log entry representing the business log included in the background log to obtain the matching result corresponding to each log entry to determine whether each log entry successfully matches the regular expression; for each log entry, if it is determined that the log entry successfully matches the regular expression, the log entry is determined as an error log in the key information; if the device determines that the log entry does not successfully match the regular expression, the log entry is discarded for processing, and thus, irrelevant log entries can be quickly filtered out, and only those logs containing key error information are extracted, thereby improving the speed and accuracy of identifying problems from a large number of logs and determining them as error logs in the key information.

[0112] For example, the configured keyword rule: extract the log ending with "[Find original transaction failed]" in the ABC submodule can be converted into the following regular matching pattern: Pattern = ".*ABC.*\[Find original transaction failed\]$", convert all keyword information into corresponding regular expressions, and then match each log. If successful, keep the log information, otherwise discard it.

[0113] 304. Obtain a question and answer library, and match each question and answer information and key information in the question and answer library to obtain a matching list; wherein the question and answer information represents the question and answer content of the preset error log; the question and answer information has a priority, and the priority represents the accuracy of the question and answer information; the matching list includes at least one question and answer information.

[0114] Exemplarily, this step may refer to step 203 and will not be described in detail here.

[0115] 305. Determine the processing information in the problem-solving information with the highest priority in the matching list as the diagnosis result; wherein the processing information is the cause of the problem and the processing method corresponding to the error information in the problem-solving information.

[0116] Exemplarily, when setting each problem-solving information, each problem-solving information includes error information and processing information; the error information is a preset background error log, and the processing information is the cause of the problem and the processing method corresponding to the error information. The device can select the problem-solving information with the highest priority from the matching list as the best problem-solving information according to the priority of each problem-solving information, and determine the processing information in the best problem-solving information as the final diagnosis result to complete the log diagnosis. Furthermore, by selecting the processing information in the problem-solving information with the highest degree of accuracy as the diagnosis result, the accuracy of the log diagnosis can be improved.

[0117] In this embodiment, based on the above embodiment, by defining keywords and matching rules in the logs, the system can quickly filter out irrelevant log entries and only extract those logs containing key error information, and by matching the most relevant FAQ entries, improve the speed and accuracy of identifying problems from a large number of logs.

[0118] Figure 4 A flow chart of another log diagnosis method provided in an embodiment of the present application is as follows: Figure 4 As shown, the method includes:

[0119] 401. In response to transaction information input by a user, a background log corresponding to the transaction information is obtained; wherein the transaction information represents business data of the user's transaction business; and the background log includes a business log generated during the transaction business processing.

[0120] Exemplarily, this step may refer to step 201 and will not be described in detail here.

[0121] 402. Obtain preset keyword information; and determine the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs.

[0122] Exemplarily, this step may refer to step 202 and will not be described in detail here.

[0123] 403. Obtain a question answer library, and perform semantic matching processing on each question answer information and key information based on a preset model to obtain at least one target answer information; wherein the target answer information is the question answer information that matches the key information.

[0124] Exemplarily, when performing log diagnosis, the device can obtain each FAQ in the question and answer library and call a preset model, such as a large language model, to input each FAQ and the extracted key information into the preset model, so that the model performs semantic analysis and matching processing on each FAQ and the extracted key information, and then outputs one or more FAQs that successfully match the extracted key information. These successfully matched FAQs are the target answer information.

[0125] In one example, step 403 includes the following steps:

[0126] The first step of step 403 is to identify and extract the problem-solving information to obtain the associated log in the error information in the problem-solving information; wherein the error information includes an associated log and a fixed log; the associated log represents the error log associated with the transaction business; the fixed log is a fixed log data.

[0127] The second step of step 403 is to perform semantic matching processing on the associated log and the key information to obtain the matching result of the associated log.

[0128] In the third step of step 403, if it is determined that the matching result of the associated log indicates that the associated log matches the key information, the question answering information where the associated log is located is determined as the target answering information.

[0129] For example, Figure 5 A flowchart of a semantic matching process provided in an embodiment of the present application is shown as follows: Figure 5 As shown, each preset question answering information includes both fixed log data, i.e., fixed logs, such as the system preset processing logic error description; and error logs associated with transaction services, i.e., associated logs. Based on the preset model, the device first identifies and extracts each question answering information, and can obtain the associated logs in the error information in each question answering information; then, based on the preset model, each extracted associated log and key information are semantically analyzed and matched, and the matching result between each associated log and key information can be obtained to determine whether the associated log matches the key information; for each associated log, if it is determined that the associated log matches the key information, the question answering information where the associated log is located is determined as the target answering information. Furthermore, using a large language model for semantic similarity matching can effectively avoid log interference caused by changes in transaction information and ensure the accuracy of log diagnosis.

[0130] In one example, the first step of step 403 includes the following steps: according to preset associated tags, the question answering information is identified and extracted to obtain the associated log corresponding to the question answering information.

[0131] For example, in order to increase the semantics of FAQ, it is necessary to add tags to the background error log. For example, the transaction-related part can be marked with preset associated tags such as different colors and different marking methods to distinguish the associated log from the fixed log. Therefore, according to the preset associated tags, each question answering information is identified and extracted to obtain the associated log corresponding to the question answering information. By setting tags in the associated log part, the intelligent system can analyze the semantics through these tags and perform quick matching to improve the efficiency of log diagnosis.

[0132] For example, Figure 6 A schematic diagram of an example configuration of question answering information provided in an embodiment of the present application, such as Figure 6 As shown in the figure, in each FAQ, the dark-shaded part in the error log is marked as changing with the transaction content, and the others are fixed. The subsequent large model will use this label to analyze the semantics between the associated log corresponding to the label and the key information to match the best FAQ.

[0133] In one example, the second step of step 403 includes the following steps:

[0134] Step 1: perform similarity calculation on the associated log and the key information to obtain the semantic similarity corresponding to the associated log; wherein the semantic similarity represents the degree of semantic similarity between the associated log and the key information.

[0135] Step 2: Determine the matching result of the associated logs according to the semantic similarity corresponding to the associated logs.

[0136] For example, Figure 7 A schematic diagram of a log diagnosis process provided by an embodiment of the present application, such as Figure 7 As shown, by providing the transaction serial number by the user, all logs are found, and by using the keyword information, the key error log is extracted, and the key error log is input into the large model. Based on the semantic calculation method of the preset model, each extracted associated log and the extracted key information are semantically analyzed and processed, and the semantic similarity between each associated log and the key information can be calculated; according to each semantic similarity, the matching result between each associated log and the key information can be determined, and then it can be determined whether each associated log matches the key information; for example, for each associated log, if the semantic similarity representation between the associated log and the key information is completely similar, it is determined that the associated log matches the key information; otherwise, it is determined that there is a match between the associated log and the key information;

[0137] In one example, step one includes:

[0138] The first step is to encode the associated logs to obtain the associated text representation corresponding to the associated logs; and encode the key information to obtain the key text representation corresponding to the key information.

[0139] The second step is to perform feature processing on the associated text representation to obtain an associated feature vector corresponding to the associated text representation; and perform feature processing on the key text representation to obtain a key feature vector corresponding to the key text representation; wherein the associated feature vector represents the semantic features of the associated log; and the key feature vector represents the semantic features of the key information.

[0140] The third step is to perform cosine similarity calculation on the associated feature vector and the key feature vector to obtain the semantic similarity corresponding to the associated log.

[0141] Exemplarily, an encoder based on a preset model encodes each extracted associated log to obtain an associated text representation corresponding to each associated log, such as a vector or a matrix. At the same time, the extracted key information is encoded to obtain a key text representation corresponding to each key information. Then, the preset model performs feature processing on each obtained associated text representation through a feature extraction algorithm to obtain the semantic features of each associated log, namely, an associated feature vector. At the same time, feature processing is performed on the obtained key text representation to obtain the semantic features of the key information, namely, a key feature vector. The preset model calculates the cosine similarity between each associated feature vector and the key feature vector through a cosine similarity calculation method to obtain the semantic similarity between each associated feature vector and the key feature vector.

[0142] In an example, step 2:

[0143] In the first step, if it is determined that the semantic similarity is greater than a preset threshold, it is determined that the matching result of the associated log represents that the associated log matches the key information.

[0144] In the second step, if it is determined that the semantic similarity is less than or equal to the preset threshold, it is determined that the matching result of the associated log represents that the associated log does not match the key information.

[0145] Exemplarily, the device calls a preset threshold based on the obtained semantic similarity between each associated log and the key information, and compares the preset threshold with each semantic similarity. If it is determined that the semantic similarity is greater than the preset threshold, it is determined that the associated log corresponding to the semantic similarity matches the key information; if it is determined that the semantic similarity is less than or equal to the preset threshold, it is determined that the associated log corresponding to the semantic similarity does not match the key information.

[0146] In one example, step 2 further includes:

[0147] The third step is to compare the format information of the associated log and the format information of the key information to obtain a comparison result corresponding to the associated log; wherein the format information includes the log format and the log field length; the comparison result indicates whether the format information of the associated log and the format information of the key information are consistent.

[0148] The fourth step is to determine the matching result of the associated logs according to the semantic similarity and comparison result corresponding to the associated logs.

[0149] Exemplarily, in order to improve the matching accuracy, the device obtains the format information of each associated log and the format information of the key information, the format information including the log format and the log field length; the format information of each associated log is compared with the format information of the key information to obtain the comparison result corresponding to each associated log, so as to determine whether the format information of the associated log and the format information of the key information are consistent; based on the preset model, the semantic similarity between each associated log and the key information and the comparison result between each associated log and the key information are analyzed to determine whether each associated log matches the key information; for example, for each associated log, if the semantic similarity between the associated log and the key information indicates that the two are completely similar, and it is determined that the format information of the associated log is consistent with the format information of the key information, then it is determined that the associated log matches the key information, otherwise it does not match.

[0150] 404. Sort each target answer information according to its priority to obtain a matching list.

[0151] Exemplarily, the device organizes each FAQ that successfully matches the key information into a list, and sorts the FAQs in the list according to the priority to obtain a matching list. For example, the FAQs in the list can be sorted in order from high to low or from low to high priority.

[0152] 405. Generate a diagnosis result according to the priority of the matching list and the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem in the background log.

[0153] Exemplarily, this step may refer to step 204 and will not be described in detail here.

[0154] In this embodiment, based on the above embodiment, a large language model is used to perform semantic matching on each question answer information and key information, which can ensure that even if the log content changes, the system can match the most relevant FAQ entries through semantic understanding, thereby providing accurate diagnosis.

[0155] Figure 8 A flow chart of another log diagnosis method provided in an embodiment of the present application is as follows: Figure 8As shown, the method includes:

[0156] 501. Receive multiple question answering information input by a user; and determine the priority of the question answering information according to business processing information; wherein the business processing information represents the processing logic for processing transaction business in the business system.

[0157] Exemplarily, when a user needs to configure question and answer information, each question and answer information input by the user can be received and configured according to the development documents and log rules, and the priority of each question and answer information can be determined according to the processing logic of processing transaction business in the current business system, that is, the business processing information; for example, the business processing logic has different processing levels, and each processing level involves a more detailed and specific processing process, that is, the corresponding question and answer information has a different degree of detail in its content, that is, it has different priorities.

[0158] 502. Store multiple question answering information in a question answering database.

[0159] Exemplarily, the device stores all configured question-answering information and corresponding priorities in a preset question-answering library.

[0160] 503. In response to the transaction information input by the user, a background log corresponding to the transaction information is obtained; wherein the transaction information represents the business data of the user's transaction business; and the background log includes a business log generated during the transaction business processing.

[0161] Exemplarily, this step may refer to step 201 and will not be described in detail here.

[0162] 504. Obtain preset keyword information; and determine the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs.

[0163] Exemplarily, this step may refer to step 202 and will not be described in detail here.

[0164] 505. Obtain a question and answer library, and match each question and answer information and key information in the question and answer library to obtain a matching list; wherein the question and answer information represents the question and answer content of the preset error log; the question and answer information has a priority, and the priority represents the accuracy of the question and answer information; the matching list includes at least one question and answer information.

[0165] Exemplarily, this step may refer to step 203 and will not be described in detail here.

[0166] 506. Generate a diagnosis result according to the priority of the matching list and the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem in the background log.

[0167] Exemplarily, this step may refer to step 204 and will not be described in detail here.

[0168] 507. In response to user feedback information, update the question answering database; wherein the feedback information indicates that the diagnosis result is inaccurate or invalid.

[0169] For example, to ensure the accuracy of the diagnosis, if the user reports that the diagnosis result is invalid or inaccurate, the FAQ maintainer will promptly analyze and update the content of the FAQ, including the cause of the problem, treatment method and priority, to continuously improve the accuracy of the diagnosis.

[0170] In one example, step 507 includes the following steps: updating the question answering library according to the historical key information; wherein the historical key information includes the key information determined within the historical time period.

[0171] For example, in order to ensure the accuracy of the diagnosis, if the user feedback is that the diagnosis result is invalid or inaccurate, the FAQ maintenance personnel will obtain the key information determined within the historical time period, that is, the historical key information, and based on the historical key information, such as the frequency of occurrence of error logs diagnosed within the historical time period, add the question answering information of frequently occurring or newly added error logs to update the question answering library.

[0172] In this embodiment, based on the above embodiments, by configuring keywords and FAQs with labels, intelligent diagnosis can be quickly applied to different systems, and can be applied to other fields or systems through simple configuration adjustments without large-scale redevelopment.

[0173] Fig. 9 A schematic diagram of the structure of a log diagnostic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the device comprises:

[0174] The acquisition module 601 is used to obtain the background log corresponding to the transaction information in response to the transaction information input by the user; wherein the transaction information represents the business data of the user's transaction business; the background log includes the business log generated during the transaction business processing;

[0175] Determination module 602, used to obtain preset keyword information; and determine the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background log; the key information includes the key error log in the background log;

[0176] Processing module 603 is used to obtain a question answering library, and match each question answering information and key information in the question answering library to obtain a matching list; wherein the question answering information represents the question answering content of the preset error log; the question answering information has a priority, and the priority represents the accuracy of the question answering information; the matching list includes at least one question answering information;

[0177] The diagnosis module 604 is used to generate a diagnosis result according to the matching list and the priority of the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem in the background log.

[0178] In one possible implementation, the processing module 603 is specifically used to: based on a preset model, perform semantic matching processing on each question answer information and key information to obtain at least one target answer information; wherein the target answer information is the question answer information that matches the key information; according to the priority of each target answer information, sort each target answer information to obtain a matching list.

[0179] In one possible implementation, the processing module 603 is specifically used to: identify and extract the problem-solving information to obtain the associated log in the error information in the problem-solving information; wherein the error information includes an associated log and a fixed log; the associated log represents the error log associated with the transaction business; the fixed log is fixed log data; perform semantic matching on the associated log and the key information to obtain the matching result of the associated log; if it is determined that the matching result of the associated log represents that the associated log matches the key information, then the problem-solving information where the associated log is located is determined to be the target answer information.

[0180] In a possible implementation, the processing module 603 is specifically used to: identify and extract the question answering information according to preset associated tags to obtain associated logs corresponding to the question answering information.

[0181] In a possible implementation, the processing module 603 is further specifically used to: perform similarity calculation processing on the associated logs and the key information to obtain the semantic similarity corresponding to the associated logs; wherein the semantic similarity represents the degree of semantic similarity between the associated logs and the key information; and determine the matching result of the associated logs according to the semantic similarity corresponding to the associated logs.

[0182] In a possible implementation, the processing module 603 is also specifically used to: encode the associated log to obtain the associated text representation corresponding to the associated log; and encode the key information to obtain the key text representation corresponding to the key information; perform feature processing on the associated text representation to obtain the associated feature vector corresponding to the associated text representation; and perform feature processing on the key text representation to obtain the key feature vector corresponding to the key text representation; wherein the associated feature vector represents the semantic features of the associated log; the key feature vector represents the semantic features of the key information; and perform cosine similarity calculation on the associated feature vector and the key feature vector to obtain the semantic similarity corresponding to the associated log.

[0183] In a possible implementation, the processing module 603 is specifically used to: if it is determined that the semantic similarity is greater than a preset threshold, determine that the matching result of the associated log represents that the associated log matches the key information; if it is determined that the semantic similarity is less than or equal to the preset threshold, determine that the matching result of the associated log represents that the associated log does not match the key information.

[0184] In a possible implementation, the processing module 603 is further specifically used to: compare the format information of the associated log and the format information of the key information to obtain a comparison result corresponding to the associated log; wherein the format information includes the log format and the log field length; the comparison result indicates whether the format information of the associated log and the format information of the key information are consistent; and determine the matching result of the associated log according to the semantic similarity corresponding to the associated log and the comparison result.

[0185] In a possible implementation manner, the determination module 602 is specifically configured to determine the key information according to the identification data, the keyword, and the matching rule in the keyword information.

[0186] In one possible implementation, the background log includes at least one log entry representing a business log; the determination module 602 is specifically used to: perform regular conversion processing on the identification data, keywords and matching rules in the keyword information to obtain a regular expression corresponding to the keyword information; match the log entry and the regular expression to obtain a matching result corresponding to the log entry; if it is determined that the matching result of the log entry represents that the log entry successfully matches the regular expression, then the log entry is determined to be an error log in the key information.

[0187] In a possible implementation manner, the determination module 602 is further specifically configured to: if it is determined that the matching result of the log entry indicates that the log entry fails to match the regular expression, then remove the log entry.

[0188] In a possible implementation, the diagnosis module 604 is specifically used to: determine the processing information in the problem-solving information with the highest priority in the matching list as the diagnosis result; wherein the processing information is the cause of the problem and the processing method corresponding to the error information in the problem-solving information.

[0189] In a possible implementation, the acquisition module 601 is specifically used to: determine the query field corresponding to the transaction information in response to the transaction information input by the user; wherein the query field represents the preset query condition; and obtain the background log based on the query field based on the query interface.

[0190] In a possible implementation, before the processing module 603 is specifically used to obtain the question and answer library, the device is also used to: receive multiple question and answer information input by the user; and determine the priority of the question and answer information based on the business processing information; wherein the business processing information represents the processing logic for processing transaction business in the business system; and store the multiple question and answer information in the question and answer library.

[0191] In a possible implementation, the device is further used to: update the question answer library in response to user feedback information; wherein the feedback information indicates that the diagnosis result is inaccurate or invalid.

[0192] In a possible implementation manner, the device is further specifically configured to: update the question answering library according to historical key information; wherein the historical key information includes key information determined within a historical time period.

[0193] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0194] 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.

[0195] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the electronic device includes: a memory 701, a processor 702; the memory 701; and a memory for storing instructions executable by the processor 702.

[0196] The processor 702 is configured to execute the method provided in the above embodiment.

[0197] The electronic device further includes a receiver 703 and a transmitter 704. The receiver 703 is used to receive instructions and data sent by other devices, and the transmitter 704 is used to send instructions and data to external devices.

[0198] The specific implementation process of the processor can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0199] In the above embodiments, 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 executed by a combination of hardware and software modules in the processor.

[0200] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0201] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the processing method in the above embodiment.

[0202] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed on a computer, the computer executes the technical solution of the processing method of the above embodiment.

[0203] The above-mentioned readable 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 readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0204] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0205] 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 processing method in the above embodiment can be implemented.

[0206] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components 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 interface, device or unit, which can be electrical, mechanical or other forms.

[0207] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0208] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0209] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0210] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware associated with 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.

[0211] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A log diagnosis method, characterized in that: include: In response to transaction information input by the user, a background log corresponding to the transaction information is obtained; wherein the transaction information represents the business data of the user's transaction business; the background log includes a business log generated during the transaction business processing; Obtaining preset keyword information; and determining the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs; Obtain a question answering library, and match each question answering information in the question answering library with the key information to obtain a matching list; wherein the question answering information represents the question answering content of the preset error log; the question answering information has a priority, and the priority represents the accuracy of the question answering information; the matching list includes at least one of the question answering information; A diagnosis result is generated according to the matching list and the priority of the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem of the background log.

2. The method according to claim 1, characterized in that Matching each question answer information in the question answer library with the key information to obtain a matching list, including: Based on a preset model, semantic matching processing is performed on each of the question answering information and the key information to obtain at least one target answering information; wherein the target answering information is the question answering information that matches the key information; According to the priority of each target answer information, each target answer information is sorted to obtain the matching list.

3. The method according to claim 2, characterized in that Based on the preset model, semantic matching is performed on each of the question answer information and the key information to obtain at least one target answer information, including: The problem-solving information is identified and extracted to obtain the associated log in the error information in the problem-solving information; wherein the error information includes an associated log and a fixed log; the associated log represents the error log associated with the transaction business; the fixed log is fixed log data; Performing semantic matching processing on the associated log and the key information to obtain a matching result of the associated log; If it is determined that the matching result of the associated log indicates that the associated log matches the key information, the question answering information where the associated log is located is determined to be the target answering information.

4. The method according to claim 3, characterized in that The question answering information is identified and extracted to obtain the associated logs in the question answering information, including: According to the preset associated tags, the question answering information is identified and extracted to obtain the associated log corresponding to the question answering information.

5. The method according to claim 3, characterized in that: Performing semantic matching processing on the associated log and the key information to obtain a matching result of the associated log includes: Performing similarity calculation processing on the associated log and the key information to obtain semantic similarity corresponding to the associated log; wherein the semantic similarity represents the degree of semantic similarity between the associated log and the key information; According to the semantic similarity corresponding to the associated logs, a matching result of the associated logs is determined.

6. The method according to claim 5, characterized in that Performing similarity calculation processing on the associated log and the key information to obtain semantic similarity corresponding to the associated log includes: Performing encoding processing on the associated log to obtain an associated text representation corresponding to the associated log; and performing encoding processing on the key information to obtain a key text representation corresponding to the key information; Performing feature processing on the associated text representation to obtain an associated feature vector corresponding to the associated text representation; and performing feature processing on the key text representation to obtain a key feature vector corresponding to the key text representation; wherein the associated feature vector represents the semantic features of the associated log; and the key feature vector represents the semantic features of the key information; The cosine similarity calculation process is performed on the associated feature vector and the key feature vector to obtain the semantic similarity corresponding to the associated log.

7. The method according to claim 5, characterized in that Determining a matching result of the associated log according to the semantic similarity corresponding to the associated log includes: If it is determined that the semantic similarity is greater than a preset threshold, determining that the matching result of the associated log indicates that the associated log matches the key information; If it is determined that the semantic similarity is less than or equal to the preset threshold, it is determined that the matching result of the associated log indicates that the associated log does not match the key information.

8. The method according to claim 5, characterized in that Determining a matching result of the associated log according to the semantic similarity corresponding to the associated log includes: Comparing the format information of the associated log and the format information of the key information to obtain a comparison result corresponding to the associated log; wherein the format information includes a log format and a log field length; the comparison result indicates whether the format information of the associated log and the format information of the key information are consistent; According to the semantic similarity and the comparison result corresponding to the associated log, a matching result of the associated log is determined.

9. The method according to claim 1, characterized in that: Determining key information corresponding to the background log according to the identification data in the keyword information includes: The key information is determined according to the identification data, keywords and matching rules in the keyword information.

10. The method according to claim 9, characterized in that The background log includes at least one log entry representing a business log; determining the key information according to the identification data, keywords and matching rules in the keyword information includes: Performing regular expression conversion processing on the identification data, keywords and matching rules in the keyword information to obtain a regular expression corresponding to the keyword information; Performing matching processing on the log entry and the regular expression to obtain a matching result corresponding to the log entry; If it is determined that the matching result of the log entry indicates that the log entry successfully matches the regular expression, then the log entry is determined to be an error log in the key information.

11. The method according to claim 10, characterized in that The method further comprises: If it is determined that the matching result of the log entry indicates that the log entry fails to match the regular expression, the log entry is discarded.

12. The method according to claim 1, characterized in that Generate a diagnosis result according to the matching list and the priority of the question answering information, including: Determine the processing information in the problem-solving information with the highest priority in the matching list as the diagnosis result; wherein the processing information is the cause of the problem and the processing method corresponding to the error information in the problem-solving information.

13. The method according to claim 1, characterized in that In response to the transaction information input by the user, a background log corresponding to the transaction information is obtained, including: In response to the transaction information input by the user, determining a query field corresponding to the transaction information; wherein the query field represents a preset query condition; Based on the query interface, the background log is obtained according to the query field.

14. The method according to any one of claims 1 to 13, characterized in that Before obtaining the question answer library, the method further includes: Receive multiple question answering information input by the user; and determine the priority of the question answering information according to the business processing information; wherein the business processing information represents the processing logic of processing transaction business in the business system; The plurality of question answering information are stored in the question answering library.

15. The method according to any one of claims 1 to 13, characterized in that The method further comprises: In response to feedback information from the user, the question answer library is updated; wherein the feedback information indicates that the diagnosis result is inaccurate or invalid.

16. The method according to claim 15, characterized in that Update the question answering library, including: The question answering library is updated according to the historical key information, wherein the historical key information includes key information determined within a historical time period.

17. A log diagnostic device, characterized in that: include: An acquisition module, configured to acquire a background log corresponding to the transaction information in response to the transaction information input by the user; wherein the transaction information represents the business data of the user's transaction business; and the background log includes a business log generated during the transaction business processing; A determination module, used to obtain preset keyword information; and determine the key information corresponding to the background log according to the identification data in the keyword information; wherein the identification data represents the unique identification of each business submodule in the business system; the business submodule is used to process transaction business and generate background logs; the key information includes key error logs in the background logs; A processing module is used to obtain a question answering library, and match each question answering information in the question answering library with the key information to obtain a matching list; wherein the question answering information represents the question answering content of the preset error log; the question answering information has a priority, and the priority represents the accuracy of the question answering information; the matching list includes at least one of the question answering information; The diagnosis module is used to generate a diagnosis result according to the matching list and the priority of the problem-solving information; wherein the diagnosis result represents the diagnosis of the error problem of the background log.

18. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 16.

20. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.