Log information processing method, device, electronic device and storage medium

By obtaining the business keywords entered by the user and filtering relevant records from the transaction log file, and determining business elements and target records, the problem of incomplete log information in the existing technology is solved, and a more comprehensive business problem investigation is achieved.

CN119311548BActive Publication Date: 2025-03-21HUNDSUN TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411866138.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-21
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

In the existing technology, the query log information is not comprehensive, resulting in incomplete investigation of business problems.

Method used

By obtaining the business keywords entered by the user, reading multiple to-select records containing preset keywords from the transaction log file, determining multiple business elements corresponding to the business keywords, and outputting multiple target records related to the business keywords.

Benefits of technology

It realizes more comprehensive log information screening and business problem investigation, and improves the comprehensiveness and accuracy of business log data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311548B_ABST
    Figure CN119311548B_ABST
Patent Text Reader

Abstract

The present application provides a log information processing method, device, electronic device and storage medium, and relates to the field of computer technology. Among them, the method includes: obtaining business keywords input by the user; reading multiple records to be selected containing preset keywords from the transaction log file; determining multiple business elements corresponding to the business keywords according to the business keywords and the multiple records to be selected; determining multiple target records corresponding to the business keywords in the transaction log file according to the multiple business elements corresponding to the business keywords, the multiple records to be selected and the transaction log file, and outputting the multiple target records. The present application matches multiple business elements through a business keyword expansion, and matches the log information related to the business keywords based on the multiple business elements, thereby improving the comprehensiveness of the business elements while ensuring a more comprehensive screening of the log information associated with the business keywords, and improving the comprehensiveness and accuracy of business problem troubleshooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a log information processing method, device, electronic device and storage medium. Background Art

[0002] In transaction systems in the fields of finance, e-commerce, etc., the business complexity is increasing due to the collaboration of multiple services and components. In order to ensure the stability and reliability of the transaction system, it is crucial to promptly troubleshoot and solve business problems.

[0003] In order to troubleshoot business problems, you must first query the relevant business logs. At present, business log query methods mainly include two query methods: manual search keyword query and full-link business tracking. The manual search keyword query method refers to manually searching for keywords to locate specific log information, and the full-link business tracking method is to find log information by implanting a unique identifier Trace ID in the log. However, since the manual search keyword query method is prone to missing key information, the full-link business tracking method can only realize business log queries for a single business, and cannot associate and filter the log information of other businesses associated with the business, and this method has strict requirements on the execution order of business processes. Therefore, the log information queried using the above-mentioned business log query method is not comprehensive, which leads to incomplete business problem troubleshooting. Summary of the invention

[0004] The purpose of this application is to provide a log information processing method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem that the query of log information in the prior art is not comprehensive, which leads to incomplete troubleshooting of business problems.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides a log information processing method, the method comprising:

[0007] Get the business keywords entered by the user;

[0008] Reading a plurality of records to be selected containing preset keywords from the transaction log file, wherein the preset keywords are used to indicate that the record to be selected is a log analysis record;

[0009] Determine, according to the business keyword and the plurality of records to be selected, a plurality of business elements corresponding to the business keyword;

[0010] According to the multiple business elements corresponding to the business keyword, the multiple records to be selected and the transaction log file, multiple target records corresponding to the business keyword in the transaction log file are determined, and the multiple target records are output.

[0011] As a possible implementation manner, determining the multiple business elements corresponding to the business keyword according to the business keyword and the multiple records to be selected includes:

[0012] Segment each record to be selected based on a preset separator to obtain multiple business elements corresponding to each record to be selected;

[0013] Determine at least one initial element according to the business keyword and multiple business elements corresponding to each record to be selected;

[0014] According to the at least one initial element, each record to be selected, and a plurality of business elements corresponding to each record to be selected, a plurality of business elements corresponding to the business keyword are determined.

[0015] As a possible implementation manner, determining at least one initial element according to the business keyword and multiple business elements corresponding to each to-be-selected record includes:

[0016] Filtering out a target record to be selected from the plurality of records to be selected, wherein a business element corresponding to the target record to be selected is the business keyword;

[0017] Each business element corresponding to the target record to be selected is used as an initial element.

[0018] As a possible implementation manner, determining the multiple business elements corresponding to the business keyword according to the at least one initial element, the records to be selected, and the multiple business elements corresponding to the records to be selected includes:

[0019] If any business element corresponding to the first record to be selected among the multiple records to be selected is the same as any of the initial elements, then each business element corresponding to the first record to be selected is used as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected.

[0020] As a possible implementation manner, determining the multiple target records corresponding to the business keyword in the transaction log file according to the multiple business elements corresponding to the business keyword and the multiple records to be selected includes:

[0021] Determine multiple transaction keyword strings according to the multiple business elements corresponding to the business keyword and the multiple records to be selected;

[0022] The plurality of target records are determined according to the plurality of transaction keyword strings and the transaction log file.

[0023] As a possible implementation, the determining of multiple transaction keyword strings according to the multiple business elements corresponding to the business keyword and the multiple records to be selected includes:

[0024] If any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any business element among the multiple business elements corresponding to the business keyword, the transaction keywords in the first record to be selected are combined into one transaction keyword string.

[0025] As a possible implementation manner, determining the multiple target records according to the multiple transaction keyword strings and the transaction log file includes:

[0026] If the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among the multiple transaction keyword strings, the current record is taken as one of the target records.

[0027] In a second aspect, an embodiment of the present application provides a log information processing device, the device comprising:

[0028] The acquisition module is used to obtain the business keywords input by the user;

[0029] A reading module, used for reading a plurality of records to be selected containing preset keywords from a transaction log file, wherein the preset keywords are used to indicate that the record to be selected is a log analysis record;

[0030] A first determination module, configured to determine a plurality of business elements corresponding to the business keyword according to the business keyword and the plurality of records to be selected;

[0031] The second determination module is used to determine multiple target records corresponding to the business keyword in the transaction log file according to the multiple business elements corresponding to the business keyword, the multiple records to be selected and the transaction log file, and output the multiple target records.

[0032] As a possible implementation manner, the first determining module is specifically configured to:

[0033] Segment each record to be selected based on a preset separator to obtain multiple business elements corresponding to each record to be selected;

[0034] Determine at least one initial element according to the business keyword and multiple business elements corresponding to each record to be selected;

[0035] According to the at least one initial element, each record to be selected, and a plurality of business elements corresponding to each record to be selected, a plurality of business elements corresponding to the business keyword are determined.

[0036] As a possible implementation manner, the first determining module is specifically configured to:

[0037] Filtering out a target record to be selected from the plurality of records to be selected, wherein a business element corresponding to the target record to be selected is the business keyword;

[0038] Each business element corresponding to the target record to be selected is used as an initial element.

[0039] As a possible implementation manner, the first determining module is specifically configured to:

[0040] If any business element corresponding to the first record to be selected among the multiple records to be selected is the same as any of the initial elements, then each business element corresponding to the first record to be selected is used as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected.

[0041] As a possible implementation manner, the second determining module is specifically configured to:

[0042] Determine multiple transaction keyword strings according to the multiple business elements corresponding to the business keyword and the multiple records to be selected;

[0043] The plurality of target records are determined according to the plurality of transaction keyword strings and the transaction log file.

[0044] As a possible implementation manner, the second determining module is specifically configured to:

[0045] If any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any business element among the multiple business elements corresponding to the business keyword, the transaction keywords in the first record to be selected are combined into one transaction keyword string.

[0046] As a possible implementation manner, the second determining module is specifically configured to:

[0047] If the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among the multiple transaction keyword strings, the current record is taken as one of the target records.

[0048] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the log information processing method as described in any one of the first aspects above.

[0049] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the log information processing method as described in any one of the first aspects above are executed.

[0050] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program code. When the computer program code is executed by a computing device, the computing device performs the steps of the log information processing method as described in any one of the first aspects above.

[0051] According to the log information processing method, device, electronic device and storage medium of the embodiment of the present application, the business keyword input by the user is obtained; multiple records to be selected containing preset keywords are read from the transaction log file, and the preset keywords are used to indicate that the record to be selected is a log analysis record; according to the business keywords and the multiple records to be selected, multiple business elements corresponding to the business keywords are determined; according to the multiple business elements corresponding to the business keywords, the multiple records to be selected and the transaction log file, multiple target records corresponding to the business keywords in the transaction log file are determined, and multiple target records are output. According to the embodiment of the present application, firstly, based on the business keywords input by the user, multiple records to be selected related to the business keywords are preliminarily screened out from the transaction log file, and then, combined with the business keywords, as many associated factors as possible related to the business keywords are extracted from the multiple records to be selected, and multiple business elements corresponding to the business keywords are obtained. The multiple business elements are obtained by expansion and can more comprehensively reflect the relevance to the business keywords. On this basis, the determined multiple business elements are used to accurately locate the records related to the business keywords from the entire transaction log file, thereby screening out multiple target records corresponding to the business keywords, and displaying each target record to the user. Since a business keyword based on user input is extended to match multiple business elements related to the business keyword, the comprehensiveness of the business elements is improved. On this basis, multiple business elements corresponding to the business keyword are used to match and obtain target records related to the business keyword, and the number of matched target records will also increase, which can also more comprehensively reflect the log data associated with the business keyword. In addition, since the instruction sequence number, quotation number or transaction number is used as the business keyword in this application to collect log data associated with the business keyword, the limitation of using transaction identifiers for log data collection is avoided, and the log data related to the business keyword is more comprehensively screened out. The log data not only collects all the log information of the transaction business itself directly corresponding to the business keyword, but also expands to collect the log information of other related transactions related to it, thereby improving the comprehensiveness of the business log data used for business problem troubleshooting, which is helpful for all-round business problem troubleshooting, and can further improve the comprehensiveness of business problem troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A flow chart of a log information processing method provided by an embodiment of the present application is shown;

[0054] Figure 2 A schematic diagram of a process flow of a method for determining a business element provided in an embodiment of the present application is shown;

[0055] Figure 3 A schematic diagram of a process of determining a target record provided by an embodiment of the present application is shown;

[0056] Figure 4 A flow chart of a log information processing method based on instruction sequence numbers provided in an embodiment of the present application is shown;

[0057] Figure 5 A schematic diagram of the structure of a log information processing device provided in an embodiment of the present application is shown;

[0058] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0059] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0060] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0061] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0062] The two commonly used query methods, manual search keyword query and full-link business tracking, both have certain limitations and cannot query comprehensive log information, which may lead to incomplete troubleshooting of business problems.

[0063] Based on the above-mentioned problems, an embodiment of the present application provides a log information processing method. In the corresponding transaction system, the user only needs to enter the business keyword to query multiple transaction-related elements associated with the business keyword from the transaction log file, so as to more comprehensively screen out the log information associated with the business keyword to carry out comprehensive business problem troubleshooting.

[0064] Figure 1 The following is a flow chart of a log information processing method provided by an embodiment of the present application. Figure 1 As shown, the method specifically comprises the following steps:

[0065] S101. Obtain business keywords input by a user.

[0066] Optionally, the log information processing method provided in the embodiment of the present application can be applied to a log processing tool, which provides an operation interface for the user. The user can import transaction log files through the operation interface, or batch import multiple log files at the same time, and enter a business keyword on the operation interface.

[0067] Exemplarily, business keywords refer to key information that can uniquely identify or describe a specific business, and are used to help users more accurately extract log information related to a specific business from a large number of log files. Business keywords are, for example, instruction numbers, quotation numbers, or transaction numbers, where the instruction number is, for example,

[497] , the quotation number is, for example,

[1001] , and the transaction number is, for example, [CBT001]. The user can select a log collection method on the operation interface. The log collection method is used to indicate which type of business keyword is used for log collection, such as selecting to collect logs through the instruction number, quotation number, or transaction number. In addition, in addition to the instruction number, quotation number, or transaction number in the above examples, which can be used as a method for log collection, in the embodiment of the present application, multiple log collection methods such as inquiry number can be expanded. Accordingly, the user only needs to enter the inquiry number as a business keyword on the operation interface to collect log data.

[0068] Specifically, if the user chooses to collect log information associated with a business keyword by command number, the corresponding command number keyword is entered on the operation interface. For example, the user selects the log collection method "command number" on the operation interface, and enters the command number keyword, such as 497, for log collection. After the user enters the command number keyword 497 and triggers log collection, the log processing tool will read the command number keyword 497 entered by the user, and use "command number

[497] " as the business keyword for log collection.

[0069] It should be noted that in the embodiment of the present application, when the user selects the log collection method on the operation interface and enters the business keyword, the user chooses to use the instruction sequence number, quotation number or transaction number and other unique business element information associated with the transaction business scenario as the business keyword, instead of using the transaction identifier (ID) as the business keyword to collect log data. This is because the transaction identifier ID has uniqueness and limitations. Specifically, the transaction identifier ID is usually a unique identification code used to uniquely identify a transaction business. The transaction identifier ID itself does not contain the task business meaning or context information. If the transaction identifier ID is used as a business keyword, when the log data associated with the business keyword is subsequently screened, due to the uniqueness of the transaction identifier ID and the fact that the transaction identifier ID does not contain the task business meaning or context information, it obviously increases the complexity and difficulty of log parsing, making it inconvenient to understand and analyze the business. The use of specific business element information such as instruction serial number, quotation number, and transaction number as business keywords, because the business element information such as instruction serial number, quotation number, and transaction number can usually cover multiple links in the transaction business process, can more comprehensively reflect the actual situation of the transaction business, and these business element information are closely related to the transaction business scenario. Based on the correlation between the business element information such as instruction serial number, quotation number, and transaction number and the business scenario, when searching for log data associated with business keywords, relevant transaction records and information can be located more quickly, thereby improving the query effect. In addition, business element information such as instruction serial number, quotation number, and transaction number usually have clear business meanings and contextual information, making business log data more readable and easier to understand. Therefore, compared with using transaction identification ID as business keywords, this application uses instruction serial number, quotation number or transaction number as business keywords to avoid the limitations of transaction identification and the problem of difficulty in interpretation, and can more comprehensively reflect the actual business situation, so as to more comprehensively screen out log data related to business keywords.

[0070] S102: Read multiple records to be selected that contain preset keywords from the transaction log file.

[0071] Optionally, a preset keyword is used to indicate that the record to be selected is a log analysis record, and the preset keyword is, for example, "log analysis". The transaction log file may include log files corresponding to multiple transaction businesses, and the log file generally contains common business element information such as timestamp, process number, function number, transaction identifier, log level, service name, function name, and unique business element information such as instruction sequence number, quotation number, and transaction number associated with the transaction business scenario, and the above-mentioned business element information together constitutes the key business elements of the business log file.

[0072] Optionally, after reading the business keywords input by the user, the log processing tool further reads the transaction log file imported by the user, and performs data analysis on the transaction log file. It uses preset keywords to filter out multiple candidate records containing the preset keyword "log analysis" from the transaction log file, that is, it searches for all rows containing "log analysis" from the transaction log file, and the row containing "log analysis" is a candidate record.

[0073] Optionally, after reading multiple records to be selected containing the preset keyword "log analysis", the multiple records to be selected can be stored in a memory list, and the memory list can be marked as listRows, so that subsequent data analysis can be performed based on the memory list listRows to find target records corresponding to the business keywords.

[0074] S103: Determine multiple business elements corresponding to the business keywords according to the business keywords and multiple records to be selected.

[0075] Optionally, multiple records to be selected containing the preset keyword "log analysis" are read from the transaction log file, and the format of the records to be selected is, for example: [timestamp process number function number transaction identification log level]: [service name] [function name] log analysis instruction number [xxx]; quotation number [yyy]; transaction number [zzz], and on the basis of storing the read multiple rows containing "log analysis" in the memory list listRows, the business keywords entered by the user are compared with each field in each record to be selected, so as to query the multiple business elements corresponding to the business keywords from the records to be selected stored in the memory list listRows.

[0076] For example, taking the above-mentioned business keyword as instruction number

[497] as an example, the field containing instruction number

[497] is searched from the record to be selected. Specifically, if the memory list listRows stores record to be selected 1: instruction number

[496] ; quotation number

[1001] ; transaction number [CBT001], and record to be selected 2: instruction number

[497] ; quotation number

[1001] ; transaction number [CBT001], by comparing the business keyword with each field in each record to be selected, it is determined that the above-mentioned record to be selected 2 contains the business keyword instruction number

[497] , then all business elements in record to be selected 2 can be used as multiple business elements corresponding to the business keyword, for example, the instruction number

[497] , quotation number

[1001] and transaction number [CBT001] in record to be selected 2 are all used as multiple business elements corresponding to the business keyword.

[0077] Optionally, in the embodiment of the present application, all the business elements of the above-mentioned record 2 to be selected that directly contains the business keyword can be used as the initial elements, and the business elements other than the business element of the instruction sequence number

[497] in the record 2 to be selected can be further combined to expand multiple business elements corresponding to the business keyword. Exemplarily, the record 2 to be selected also includes the two business elements of the quotation number

[1001] and the transaction number [CBT001], and the record 1 to be selected also includes the quotation number

[1001] and the transaction number [CBT001], so the record 1 to be selected can be used as the record to be selected related to the business keyword, so as to achieve business element expansion based on all the business elements of the record 2 to be selected. In this process, only the business keyword of instruction serial number

[497] is used to not only directly determine that the selected record 2 is a record associated with the business keyword, but also use all the business elements of the selected record 2 as multiple business elements corresponding to the business keyword. Similarly, it is possible to indirectly determine that the selected record 1 is also a record associated with the business keyword, and use all the business elements of the selected record 1 as multiple business elements corresponding to the business keyword. In this way, multiple business elements corresponding to the business keyword can be matched and determined from multiple selected records, thereby achieving the goal of finding as many related factors as possible related to the business keyword based on one business keyword, making the determined business elements more comprehensive.

[0078] Optionally, after determining the multiple business elements corresponding to the business keyword, the multiple business elements can be stored in a temporary memory list, and the temporary memory list is marked as listElementsTmp, where listElementsTmp is a list after deduplication. Further, based on the element information stored in the temporary memory list listElementsTmp, the selected records are screened twice to obtain the final memory list listElements, so that data analysis can be performed based on the memory list listElements to find multiple target records corresponding to the business keywords.

[0079] Exemplarily, the above memory list listRows stores the following three records to be selected:

[0080] Selected record 1: Order number

[496] ; Quote number

[1001] ; Transaction number [CBT001]

[0081] Selected record 2: Order number

[497] ; Quote number

[1001] ; Transaction number [CBT001]

[0082] Selected record 3: Order number

[497] ; Quote number

[1002] ; Transaction number [CBT002]

[0083] Assuming that the business keyword input by the user is: "instruction sequence number

[497] ", based on the business keyword input by the user, it can be determined that the candidate records 2 and the candidate records 3 are the candidate records that match the business keyword. By deduplicating the elements in the candidate records 2 and the candidate records 3, the obtained listElementsTmp includes:

[0084] Command number

[497]

[0085] Quote Number

[1001]

[0086] Transaction number [CBT001]

[0087] Quote Number

[1002]

[0088] Transaction number [CBT002]

[0089] Furthermore, these elements in listElementsTmp are used to perform secondary screening on the records to be selected 1, records to be selected 2, and records to be selected 3 to form listElements. In the process of forming listElements, if the elements screened from the records to be selected already exist in listElements, they will not be stored repeatedly in listElements. After the above processing, the obtained listElements includes:

[0090] Command number

[497]

[0091] Quote Number

[1001]

[0092] Transaction number [CBT001]

[0093] Quote Number

[1002]

[0094] Transaction number [CBT002]

[0095] Instruction number

[496]

[0096] The elements included in the above listElements are multiple business elements corresponding to the business keyword "instruction serial number

[497] ".

[0097] S104. According to the multiple business elements corresponding to the business keywords, the multiple records to be selected, and the transaction log file, determine the multiple target records corresponding to the business keywords in the transaction log file, and output the multiple target records.

[0098] Optionally, based on multiple business elements corresponding to business keywords stored in the memory list listElements, determine the candidate records corresponding to the multiple business elements, and determine the transaction identification key of the transaction business corresponding to each candidate record based on other business element information stored in each candidate record, such as the process number, function number and transaction identification, and then filter out the records corresponding to the transaction identification key from the original transaction log file based on the transaction identification key, and use the records corresponding to the transaction identification key as the target records corresponding to the business keywords, and display the target records corresponding to the business keywords on the operation interface for users to view, so that users can troubleshoot business problems based on the multiple target records corresponding to the business keywords.

[0099] Based on this, according to the log information processing method provided by the embodiment of the present application, firstly, based on the business keywords input by the user, a plurality of records to be selected related to the business keywords are preliminarily screened out from the transaction log file, and then, in combination with the business keywords, as many associated factors as possible related to the business keywords are extracted from the plurality of records to be selected, and a plurality of business elements corresponding to the business keywords are obtained, and the plurality of business elements are obtained by expansion, which can more comprehensively reflect the relevance to the business keywords. On this basis, the determined plurality of business elements are then used to accurately locate the records related to the business keywords from the entire transaction log file, thereby screening out a plurality of target records corresponding to the business keywords, and displaying each target record to the user. Since a business keyword input by the user is extended to match a plurality of business elements related to the business keywords, the comprehensiveness of the business elements is improved. On this basis, the target records related to the business keywords are obtained by matching the plurality of business elements corresponding to the business keywords, and the number of matched target records will also increase, which can also more comprehensively reflect the log data associated with the business keywords. In addition, since the present application uses instruction serial number, quotation number or transaction number as business keywords to collect log data associated with the business keywords, the limitation of using transaction identifiers for log data collection is avoided, and the log data related to the business keywords is screened out more comprehensively. The log data not only collects all the log information of the transaction business itself directly corresponding to the business keywords, but also expands to collect log information of other related transactions related to it, thereby improving the comprehensiveness of the business log data used for business problem troubleshooting, facilitating all-round business problem troubleshooting, and further improving the comprehensiveness of business problem troubleshooting.

[0100] Figure 2 A flow chart of a method for determining a business element provided in an embodiment of the present application is shown. Figure 2 As shown, the above step S103 determines multiple business elements corresponding to the business keywords according to the business keywords and multiple records to be selected, and specifically includes the following steps:

[0101] S201. Segment each record to be selected based on a preset separator to obtain a plurality of business elements corresponding to each record to be selected.

[0102] For example, taking the combined quotation scenario as an example, the transaction log file contains log files corresponding to at least two transaction businesses. Based on the fact that each candidate record is a row containing the preset keyword "log analysis", the candidate records containing the preset keyword "log analysis" read from the transaction log file include candidate record 1: instruction number

[496] ; quotation number

[1001] ; transaction number [CBT001], and candidate record 2: instruction number

[497] ; quotation number

[1001] ; transaction number [CBT001].

[0103] Exemplarily, the preset delimiter is, for example, a semicolon ";". Taking the above-mentioned record to be selected 1: instruction number

[496] ; quotation number

[1001] ; transaction number [CBT001], and the record to be selected 2: instruction number

[497] ; quotation number

[1001] ; transaction number [CBT001] as examples, the preset delimiter is used to separate the rows containing the preset keyword "log analysis" in the above-mentioned records to be selected, so as to obtain multiple business elements corresponding to each record to be selected.

[0104] For example, taking the above-mentioned record 1 to be selected as an example, the multiple business elements corresponding to the record 1 to be selected after segmentation based on the preset separator are as follows:

[0105] Instruction number

[496]

[0106] Quote Number

[1001]

[0107] Transaction number [CBT001]

[0108] For example, taking the above-mentioned record 2 to be selected as an example, the multiple business elements corresponding to the record 2 to be selected after segmentation based on the preset separator are as follows:

[0109] Command number

[497]

[0110] Quote Number

[1001]

[0111] Transaction number [CBT001]

[0112] Exemplarily, after each record to be selected is segmented by using a preset separator, the storage format of the record to be selected in the temporary memory list listElementsTmp is shown in the form of the business elements after segmentation.

[0113] S202: Determine at least one initial element according to the business keyword and multiple business elements corresponding to each record to be selected.

[0114] Optionally, a target record to be selected is selected from a plurality of records to be selected, and each business element corresponding to the target record to be selected is used as an initial element, wherein a business element corresponding to the target record to be selected is a business keyword.

[0115] Exemplarily, a target record to be selected is selected from a plurality of records to be selected, that is, a record to be selected whose business elements contain a business keyword is determined from the plurality of records to be selected, and the record to be selected containing the business keyword is used as the target record to be selected. Taking the above example where the business keyword is instruction serial number

[497] , and the records to be selected include record to be selected 1 and record to be selected 2, record to be selected 1 includes multiple business elements such as instruction serial number

[496] , quotation number

[1001] , and transaction number [CBT001], and record to be selected 2 includes multiple business elements such as instruction serial number

[497] , quotation number

[1001] , and transaction number [CBT001]. Based on the business keyword instruction serial number

[497] , since record to be selected 2 contains instruction serial number

[497] , record to be selected 2 can be used as the target record to be selected.

[0116] For example, based on taking the above-mentioned record 2 to be selected as the target record to be selected, each business element corresponding to the record 2 to be selected, such as the instruction number

[497] , the quotation number

[1001] and the transaction number [CBT001], is taken as an initial element. These initial elements are the elements in listElementsTmp.

[0117] S203: Determine multiple business elements corresponding to the business keyword according to at least one initial element, each record to be selected, and multiple business elements corresponding to each record to be selected.

[0118] Optionally, based on determining the target record to be selected and taking each business element corresponding to the target record to be selected as an initial element, the embodiment of the present application can gradually expand and determine the business elements corresponding to more business keywords based on the initial elements, combined with each record to be selected and multiple business elements corresponding to each record to be selected.

[0119] Optionally, if any business element corresponding to the first record to be selected among multiple records to be selected is the same as any initial element, then each business element corresponding to the first record to be selected is used as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected.

[0120] Exemplarily, the business elements corresponding to the above-mentioned record 2, such as the instruction serial number

[497] , the quotation number

[1001] and the transaction number [CBT001], are respectively taken as an initial element, and the above-mentioned record 1 is taken as the first record to be selected. The first record to be selected (record to be selected 1) includes the business elements of the instruction serial number

[496] , the quotation number

[1001] and the transaction number [CBT001]. Since the business elements quotation number

[1001] and transaction number [CBT001] in the first record to be selected (record to be selected 1) are the same as the quotation number

[1001] and transaction number [CBT001] in the initial elements, the business elements corresponding to the first record to be selected (record to be selected 1), such as the instruction serial number

[496] , the quotation number

[1001] and the transaction number [CBT001], can be respectively used as a business element corresponding to the business keyword, thereby determining multiple business elements corresponding to the business keyword.

[0121] For example, if there is a record 4 to be selected among multiple records to be selected: instruction number

[498] ; quotation number

[1001] ; transaction number [CBT002], continue to take the above initial elements including instruction number

[497] , quotation number

[1001] and transaction number [CBT001] in record 2 to be selected as an example, and take the above record 4 to be selected as the first record to be selected. Since the business element quotation number

[1001] in the first record to be selected (record 4 to be selected) is the same as the quotation number

[1001] in the initial element, the business elements corresponding to the first record to be selected (record 4 to be selected), such as instruction number

[498] , quotation number

[1001] and transaction number [CBT002], can also be used as a business element corresponding to the business keyword, thereby determining multiple business elements corresponding to the business keyword.

[0122] For example, taking multiple records to be selected including the above-mentioned records to be selected 1, records to be selected 2 and records to be selected 4 as an example, if the user selects the transaction number as the log collection method on the operation interface, and enters the business keyword transaction number [CBT002] on the operation interface, then record to be selected 4 can be used as the target record to be selected, and each business element of record to be selected 4, such as instruction number

[498] , quotation number

[1001] and transaction number [CBT002] can be used as an initial element. On this basis, both the candidate record 1 and the candidate record 2 can be used as the first candidate record, and since the business element quotation number

[1001] in the candidate record 1 and the candidate record 2 is the same as the quotation number

[1001] in the initial element, the business elements of the first candidate record (the candidate record 1 and the candidate record 2), including the instruction number

[496] , instruction number

[497] , quotation number

[1001] and transaction number [CBT001], can be used as a business element corresponding to the business keyword, and then multiple business elements corresponding to the business keyword are determined.

[0123] It should be noted that based on the above method of determining multiple business elements corresponding to business keywords, no matter whether the business keyword entered by the user is an instruction number, a quotation number or a transaction number, when querying multiple log data related to the business keyword, the query will be expanded to multiple records to be selected. Taking the business keyword "instruction number

[497] " as an example, during the log data collection process, the candidate record 2 is first queried, that is, the temporary memory list listElementsTmp formed for the first time only records the instruction number

[497] , the quotation number

[1001] and the transaction number [CBT001]. At this time, the business elements stored in the temporary memory list listElementsTmp can be used as an initial element for secondary screening. During the secondary screening, the candidate record 1 is queried, but the quotation number

[1001] and the transaction number [CBT001] in the candidate record 1 are repeated with the quotation number

[1001] and the transaction number [CBT001] in the candidate record 2. The quotation number

[1001] and the transaction number [CBT001] will not be recorded repeatedly in the memory list listElements formed for the second time, so the memory list listElements formed for the second time records the instruction number

[497] , the quotation number

[1001] , the transaction number [CBT001] and the instruction number

[496] .

[0124] For example, if the multiple records to be selected include record 1 and record 2, when the user enters the instruction serial number

[497] as the business keyword to collect log data on the operation interface, the final memory list listElements is as follows:

[0125] Command number

[497]

[0126] Quote Number

[1001]

[0127] Transaction number [CBT001]

[0128] Instruction number

[496]

[0129] For example, if the multiple records to be selected include the above-mentioned record 1, record 2 and record 4, when the user enters the transaction number [CBT002] as the business keyword to collect log data on the operation interface, the final memory list listElements is as follows:

[0130] Command number

[498]

[0131] Quote Number

[1001]

[0132] Transaction number [CBT002]

[0133] Instruction number

[496]

[0134] Transaction number [CBT001]

[0135] Command number

[497]

[0136] The elements in the above listElements are multiple business elements corresponding to the business keywords.

[0137] Based on this, each candidate record is split into multiple parts based on the preset delimiter, so as to more easily identify the business elements in each candidate record. On this basis, the element that best matches the business keyword is found from the multiple business elements after segmentation as the initial element. Based on the initial element, other related business elements are further verified and determined to ensure that the final business elements are comprehensive and accurate. In this way, business elements related to business keywords can be extracted from a large amount of log data more efficiently and accurately, providing strong support for subsequent business analysis and troubleshooting.

[0138] Figure 3 A schematic diagram of a target record determination method provided in an embodiment of the present application is shown. Figure 3 As shown, the above step S104 determines multiple target records corresponding to the business keywords in the transaction log file according to multiple business elements corresponding to the business keywords, multiple records to be selected, and the transaction log file, and specifically includes the following steps:

[0139] S301. Determine multiple transaction keyword strings according to multiple business elements corresponding to the business keywords and multiple records to be selected.

[0140] Optionally, the transaction keyword string is used to accurately locate and identify a specific transaction record, and can be obtained by combining multiple transaction keywords into a unique identifier. Specifically, multiple business elements corresponding to the business keyword are compared with the business elements in each record to be selected, matching records are found, and transaction keywords are extracted from the matching records. The transaction keywords can be some business elements, and then the transaction keywords are combined according to a preset combination method to obtain the transaction keyword string.

[0141] Optionally, the above step S301 determines multiple transaction keyword strings based on multiple business elements corresponding to the business keywords and multiple records to be selected, including: if any business element corresponding to the first record to be selected among the multiple records to be selected is the same as any business element among the multiple business elements corresponding to the business keywords, then the transaction keywords in the first record to be selected are combined into one transaction keyword string.

[0142] Exemplarily, the transaction keyword is, for example, a process number, a function number, and a transaction identification ID, and the transaction keyword string is, for example, a transaction identification key. Continuing with the example that the business keyword input by the user is the instruction number

[497] , and the first record to be selected is record to be selected 1, the record to be selected with the instruction number

[497] includes multiple business elements, namely, the instruction number

[497] , the quotation number

[1001] , and the transaction number [CBT001]. The first record to be selected (record to be selected 1) includes multiple business elements, namely, the instruction number

[496] , the quotation number

[1001] , and the transaction number [CBT001]. The first record to be selected (record to be selected 1) and the record to be selected with the instruction number

[497] satisfy the condition that any business element corresponding to the first record to be selected is the same as any business element among the multiple business elements corresponding to the business keyword. Then, some transaction keywords in the first record to be selected (record to be selected 1), such as the process number, function number, and transaction identification ID in the first record to be selected (record to be selected 1), are obtained, and these transaction keywords are combined into a transaction keyword string.

[0143] Optionally, in an embodiment of the present application, the transaction identification key corresponding to the record to be selected containing the business keyword is determined based on the business elements contained in the record to be selected containing the business keyword. Specifically, the process number, function number and transaction identification ID can be combined in a preset combination method to determine the transaction identification key. The preset combination method is, for example, "process number + function number + transaction identification ID". Correspondingly, for each record to be selected, the process number, function number and transaction identification ID in each record to be selected can also be used to determine the transaction identification key corresponding to each record to be selected. It should be noted that in the transaction log file generated by each service call, the transaction identification key is unique and non-repetitive.

[0144] Exemplarily, all business elements recorded in the memory list listElements are obtained in a loop. For each business element, if the business element is included in the memory list listRows, the transaction identification key corresponding to the business element is obtained, and the transaction identification key is stored in the memory list listKeys. Similarly, if the transaction identification key to be stored already exists in the memory list listKeys, in order to improve the performance of business log processing, the transaction identification key existing in the memory list listKeys will not be inserted, so as to obtain the final memory list listKeys.

[0145] S302: Determine multiple target records according to multiple transaction keyword strings and transaction log files.

[0146] Optionally, the transaction keyword string is obtained by combining multiple transaction keywords into a unique identifier, and on the basis of obtaining the multiple transaction keyword strings, reading each record in the transaction log file line by line, extracting the transaction keywords from each record, and combining the extracted transaction keywords into a transaction keyword string, and comparing and matching the transaction keyword string of each record with the multiple transaction keyword strings determined above. If the match is successful, the record is determined as a target record, and the target record is output, and the target record is displayed on the operation interface for the user to view.

[0147] Optionally, the above step S302 determines multiple target records based on multiple transaction keyword strings and transaction log files, including: if the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among the multiple transaction keyword strings, then the current record is taken as a target record.

[0148] Exemplarily, all transaction identification keys recorded in the memory list listKeys are obtained in a loop. For each obtained transaction identification key, in the process of filtering the transaction identification key from the transaction log file, if the current record containing the transaction identification key is filtered out from the transaction log file, that is, the log line information containing the transaction identification key, then the current record can be used as a target record.

[0149] For example, each target record is displayed in the interface in the time sequence of each target record, so that the user can view it and troubleshoot business problems based on each target record. Specifically, based on the multiple target records selected, the user can intuitively understand the transaction process summary information related to the business keywords, such as what operations were performed at the time, as well as the transaction identification key corresponding to each transaction process and all log information corresponding to each transaction identification key.

[0150] Based on this, by combining transaction keywords to generate transaction keyword strings and performing precise matching through the unique identification characteristics of the transaction keyword strings, multiple target records related to business keywords can be effectively located from a large number of transaction logs. These multiple target records include not only all log information of the transaction business itself that directly corresponds to the business keywords, but also log information of other related transactions related to it. This ensures that the extracted records are highly relevant to the business keywords while ensuring that no important log information is missed. It also reduces the misjudgment and omission of log data related to business keywords while reducing the interference of irrelevant records, thereby improving the comprehensiveness and accuracy of business problem troubleshooting.

[0151] Figure 4 The flowchart of a log information processing method based on instruction sequence number provided in an embodiment of the present application is shown. Figure 4 As shown, taking the instruction number as the business keyword as an example, after the user enters the instruction number keyword and imports the transaction log file containing the business logs of multiple transaction businesses, by searching the preset keyword "loganalysis", all log lines containing the preset keyword "log analysis" in the transaction log file are located and stored in the memory list listRows. On this basis, each record stored in the memory list listRows is parsed to obtain all key business elements related to the instruction number keyword in the memory list listRows, and the obtained key business elements are stored in the memory list listElements. Further, each record stored in the memory list listElements is parsed, and all transaction identification keys containing records in the memory list listRows are filtered and stored in the memory list listKeys. Finally, by parsing each record in the memory list listKeys, all target records associated with the business keywords in the transaction log file are filtered out, and each target record is displayed to the user.

[0152] It should be noted that Figure 4 The log processing flow provided by this application is illustrated with the instruction serial number as the business keyword, but the quotation number or transaction number can also be used as the business keyword in this application, and the specific processing flow remains unchanged. In addition, in addition to the instruction serial number, quotation number and transaction number illustrated above in this application, business elements such as inquiry instructions can also be expanded as business keywords to query and screen business elements.

[0153] Based on this, the log information processing method provided by the embodiment of the present application supports custom extensions, for example, inquiry instructions can be added according to needs to troubleshoot business problems, etc., and the user only needs to add the inquiry instruction sequence number when entering the business keyword, so that a full range of business problem troubleshooting can be achieved. In addition, the embodiment of the present application has no special requirements for the execution order of each transaction business itself, that is, it is not restricted by the business execution order. As long as some key business elements in the log of each transaction business can be recorded, there is no need to ensure the order of recording time, and as much log data as possible related to the business keywords entered by the user can be collected in all directions, and the log data can be displayed to the user for a full range of business problem troubleshooting.

[0154] Based on the same inventive concept, a log information processing device corresponding to the log information processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the log information processing device in the embodiment of the present application is similar to the above-mentioned log information processing method in the embodiment of the present application, the implementation of the log information processing device can refer to the implementation of the log information processing method, and the repeated parts will not be repeated.

[0155] Reference Figure 5 As shown, it is a structural diagram of a log information processing device provided in an embodiment of the present application, wherein the log information processing device 500 includes: an acquisition module 501, a reading module 502, a first determination module 503, and a second determination module 504, wherein:

[0156] An acquisition module 501 is used to acquire a business keyword input by a user;

[0157] A reading module 502 is used to read a plurality of records to be selected that contain a preset keyword from a transaction log file, where the preset keyword is used to indicate that the record to be selected is a log analysis record;

[0158] A first determination module 503, configured to determine a plurality of business elements corresponding to the business keyword according to the business keyword and a plurality of records to be selected;

[0159] The second determination module 504 is used to determine multiple target records corresponding to the business keywords in the transaction log file according to multiple business elements corresponding to the business keywords, multiple records to be selected, and the transaction log file, and output the multiple target records.

[0160] Based on this, according to the log information processing device of the embodiment of the present application, firstly, based on the business keywords input by the user, a plurality of records to be selected related to the business keywords are preliminarily screened out from the transaction log file, and then, in combination with the business keywords, as many associated factors as possible related to the business keywords are extracted from the plurality of records to be selected, and a plurality of business elements corresponding to the business keywords are obtained through expansion, which can more comprehensively reflect the relevance to the business keywords. On this basis, the determined plurality of business elements are then used to accurately locate the records related to the business keywords from the entire transaction log file, thereby screening out a plurality of target records corresponding to the business keywords, and displaying each target record to the user. Since a business keyword input by the user is extended to match a plurality of business elements related to the business keywords, the comprehensiveness of the business elements is improved. On this basis, the target records related to the business keywords are obtained by matching the plurality of business elements corresponding to the business keywords, and the number of matched target records will also increase, which can also more comprehensively reflect the log data associated with the business keywords. In addition, since the present application uses instruction serial number, quotation number or transaction number as business keywords to collect log data associated with the business keywords, the limitation of using transaction identifiers for log data collection is avoided, and the log data related to the business keywords is screened out more comprehensively. The log data not only collects all the log information of the transaction business itself directly corresponding to the business keywords, but also expands to collect log information of other related transactions related to it, thereby improving the comprehensiveness of the business log data used for business problem troubleshooting, facilitating all-round business problem troubleshooting, and further improving the comprehensiveness of business problem troubleshooting.

[0161] In a possible implementation manner, the first determining module 503 is specifically configured to:

[0162] Segment each record to be selected based on a preset separator to obtain multiple business elements corresponding to each record to be selected;

[0163] Determine at least one initial element according to the business keyword and multiple business elements corresponding to each record to be selected;

[0164] According to at least one initial element, each record to be selected, and multiple business elements corresponding to each record to be selected, multiple business elements corresponding to the business keyword are determined.

[0165] In a possible implementation manner, the first determining module 503 is specifically configured to:

[0166] Filtering out a target record to be selected from the plurality of records to be selected, wherein a business element corresponding to the target record to be selected is a business keyword;

[0167] Each business element corresponding to the target record to be selected is taken as an initial element.

[0168] In a possible implementation manner, the first determining module 503 is specifically configured to:

[0169] If any business element corresponding to the first record to be selected among multiple records to be selected is the same as any initial element, each business element corresponding to the first record to be selected is used as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected.

[0170] In a possible implementation manner, the second determining module 504 is specifically configured to:

[0171] Determine multiple transaction keyword strings according to multiple business elements corresponding to the business keyword and multiple records to be selected;

[0172] Multiple target records are determined according to multiple transaction keyword strings and transaction log files.

[0173] In a possible implementation manner, the second determining module 504 is specifically configured to:

[0174] If any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any business element among the multiple business elements corresponding to the business keywords, the transaction keywords in the first record to be selected are combined into a transaction keyword string.

[0175] In a possible implementation manner, the second determining module 504 is specifically configured to:

[0176] If the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among multiple transaction keyword strings, the current record is taken as a target record.

[0177] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0178] The present application embodiment also provides an electronic device 600, such as Figure 6 As shown, it is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present application, including: a processor 601, a memory 602, and optionally, a bus 603. The memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device 600 is running, the processor 601 communicates with the memory 602 through the bus 603. When the machine-readable instructions are executed by the processor 601, the method steps in any of the above log information processing methods are executed.

[0179] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in any of the above log information processing methods are executed.

[0180] An embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code is executed by a computing device, the computing device executes the method steps in any of the above log information processing methods.

[0181] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules 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 through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0182] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. 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 is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in 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, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0183] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A log information processing method, characterized in that: include: Get the business keywords entered by the user; Reading a plurality of records to be selected containing preset keywords from the transaction log file, wherein the preset keywords are used to indicate that the record to be selected is a log analysis record; Determine, according to the business keyword and the plurality of records to be selected, a plurality of business elements corresponding to the business keyword; According to the multiple business elements corresponding to the business keyword, the multiple records to be selected and the transaction log file, determine the multiple target records corresponding to the business keyword in the transaction log file, and output the multiple target records; The determining of the multiple business elements corresponding to the business keyword according to the business keyword and the multiple records to be selected includes: segmenting each record to be selected based on a preset separator to obtain multiple business elements corresponding to each record to be selected; determining at least one initial element according to the business keyword and the multiple business elements corresponding to each record to be selected; if any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any of the initial elements, then taking each business element corresponding to the first record to be selected as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected; The determining of the multiple target records corresponding to the business keywords in the transaction log file includes: determining multiple transaction keyword strings based on the multiple business elements corresponding to the business keywords and the multiple records to be selected, if the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among the multiple transaction keyword strings, then taking the current record as one of the target records, the business keyword refers to key information that uniquely identifies or describes a specific business, and the transaction keyword includes business elements.

2. The method according to claim 1, characterized in that The determining of at least one initial element according to the business keyword and the multiple business elements corresponding to each of the to-be-selected records includes: Filtering out a target record to be selected from the plurality of records to be selected, wherein a business element corresponding to the target record to be selected is the business keyword; Each business element corresponding to the target record to be selected is used as an initial element.

3. The method according to claim 1, characterized in that The determining of multiple transaction keyword strings according to the multiple business elements corresponding to the business keyword and the multiple records to be selected includes: If any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any business element among the multiple business elements corresponding to the business keyword, the transaction keywords in the first record to be selected are combined into one transaction keyword string.

4. A log information processing device, characterized in that: include: The acquisition module is used to obtain the business keywords input by the user; A reading module, used for reading a plurality of records to be selected containing preset keywords from a transaction log file, wherein the preset keywords are used to indicate that the record to be selected is a log analysis record; A first determination module, configured to determine a plurality of business elements corresponding to the business keyword according to the business keyword and the plurality of records to be selected; A second determination module is used to determine a plurality of target records corresponding to the business keyword in the transaction log file according to the plurality of business elements corresponding to the business keyword, the plurality of records to be selected and the transaction log file, and output the plurality of target records; The first determination module is used to segment each record to be selected based on a preset separator to obtain multiple business elements corresponding to each record to be selected; determine at least one initial element according to the business keyword and the multiple business elements corresponding to each record to be selected; If any business element corresponding to a first record to be selected among the multiple records to be selected is the same as any of the initial elements, each business element corresponding to the first record to be selected is used as a business element corresponding to the business keyword, wherein the first record to be selected is any record to be selected among the multiple records to be selected; The second determination module is used to determine multiple transaction keyword strings based on the multiple business elements corresponding to the business keywords and the multiple records to be selected. If the combination of transaction keywords of the current record in the transaction log file is any transaction keyword string among the multiple transaction keyword strings, the current record is used as one of the target records. The business keywords refer to key information that uniquely identifies or describes a specific business, and the transaction keywords include business elements.

5. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the log information processing method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the log information processing method according to any one of claims 1 to 3 are executed.

7. A computer program product, characterized in that The computer program product includes computer program code. When the computer program code is executed by a computing device, the computing device executes the steps of the log information processing method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Running log processing method and device, storage medium and electronic equipment

    CN118277409A