CN116091226A - Cross-system transaction analysis method, transaction analysis device and transaction analysis system - Google Patents

Cross-system transaction analysis method, transaction analysis device and transaction analysis system Download PDF

Info

Publication number
CN116091226A
CN116091226A CN202211697702.0A CN202211697702A CN116091226A CN 116091226 A CN116091226 A CN 116091226A CN 202211697702 A CN202211697702 A CN 202211697702A CN 116091226 A CN116091226 A CN 116091226A
Authority
CN
China
Prior art keywords
transaction
target transaction
target
service
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211697702.0A
Other languages
Chinese (zh)
Inventor
张兰英
张帝
刘伟
廖月玲
彭书勤
李航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Postal Savings Bank of China Ltd
Original Assignee
Postal Savings Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Postal Savings Bank of China Ltd filed Critical Postal Savings Bank of China Ltd
Priority to CN202211697702.0A priority Critical patent/CN116091226A/en
Publication of CN116091226A publication Critical patent/CN116091226A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting

Abstract

The application provides a cross-system transaction analysis method, a transaction analysis device and a transaction analysis system. The transaction analysis method comprises the following steps: acquiring a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems; determining a target transaction path of target transaction based on the transaction sequence number and the target transaction log, wherein the transaction sequence number is unique ID information for identifying each service system; and sending at least the target transaction path to a display screen of the terminal equipment, so that staff can conduct transaction analysis on the target transaction based on the target transaction path. Because each service system is not required to be modified and complex related information is not required to be acquired, the overall low cost is ensured, and the problem of high cost caused by the fact that the cross-service system positioning and checking are carried out on the fault problem in a single transaction in the prior art is solved.

Description

Cross-system transaction analysis method, transaction analysis device and transaction analysis system
Technical Field
The application relates to the technical field of intelligent operation and maintenance, in particular to a cross-system transaction analysis method, a transaction analysis device, a computer readable storage medium and a transaction analysis system.
Background
Troubleshooting of current operation and maintenance systems is mostly limited to the inside of the corresponding business system. The calling condition of the fault problem in an external service system and the returning condition of the result cannot be seen, so that operation and maintenance personnel take longer time in the process of positioning the fault problem.
In order to solve the above-mentioned problems, APM (application performance management, application Performance Management, abbreviated as APM) components are generally adopted in the prior art to perform cross-service system problem investigation. However, for APM components, a buried point is typically set and a buried point log is generated. The embedded points can be divided into client embedded points, server embedded points and client and server bidirectional embedded points. The embedded log typically contains traceId, spanId, the start time of the call, the protocol type, the IP address and port of the caller, the name of the service requested, the call time consuming, the call result, and exception information, etc. If the service system generates the log information, the corresponding service system needs to be modified. Because different service systems use different coding languages, such as C language, java, python and the like, the transformation cost of the service system is higher.
Therefore, there is a need for a solution that does not require modification of the service system, so as to more simply locate and troubleshoot the fault problem occurring in a single transaction across the service system.
Disclosure of Invention
The main objective of the present application is to provide a cross-system transaction analysis method, a transaction analysis device, a computer readable storage medium and a transaction analysis system, so as to solve the problem of high cost caused by positioning and checking a cross-service system for a fault problem in a single transaction in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a transaction analysis method across systems, including: acquiring a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems; determining a target transaction path of the target transaction based on a transaction sequence number and the target transaction log, wherein the transaction sequence number is unique ID information for identifying each service system; and sending at least the target transaction path to a display screen of a terminal device, so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
Optionally, based at least on the global service tracking number, obtaining the target transaction log includes: and screening the log information meeting the global service tracking number and the target time period from the ES cluster log to obtain the target transaction log.
Optionally, determining a target transaction path of the target transaction based on the transaction sequence number and the target transaction log includes: based on the transaction sequence number, determining the service names of the corresponding service systems in the target transaction log to obtain a plurality of service names; determining the starting time, the ending time and the execution state of each business system based on the target transaction log, wherein the starting time is the starting time of the corresponding business system to execute the target transaction, the ending time is the ending time of the corresponding business system to execute the target transaction, and the execution state is the execution state of the target transaction in the corresponding business system; the target transaction path of the target transaction is determined based on the service name, the start time, the end time, and the execution status of each of the service systems.
Optionally, determining the target transaction path of the target transaction based on the service name, the start time, the end time, and the execution state of each of the service systems includes: sequencing the service systems according to the starting time of the service systems to obtain a target execution sequence; determining execution time of each business system based on the start time and the end time of each business system, wherein the execution time is the time of the corresponding business system to execute the target transaction; and assigning the service name, the execution state and the execution time to the corresponding service system according to the target execution sequence to obtain the target transaction path.
Optionally, at least sending the target transaction path to a display screen of a terminal device, so that a staff member performs transaction analysis on the target transaction based on the target transaction path, including: and sending the target transaction path and the target transaction log to the display screen of the terminal equipment so that the staff can conduct transaction analysis on the target transaction based on the target transaction path and the target transaction log.
Optionally, before the log information meeting the global service tracking number and the target time period is screened from the ES cluster log to obtain the target transaction log, the transaction analysis method further includes: the global traffic tracking number and the target time period are received in response to a predetermined operation acting on the display screen.
Optionally, after receiving the global service tracking number and the target time period in response to a predetermined operation acting on the display screen, the transaction analysis method further includes: performing validity check on the global service tracking number and the target time period; determining that the validity check passes under the condition that the format types corresponding to the global service tracking number and the target time period meet a preset rule; and under the condition that the format type corresponding to the global service tracking number and/or the target time period does not meet the preset rule, determining that the validity check is not passed.
According to another aspect of the embodiment of the present invention, there is also provided a transaction analysis device across systems, including: the system comprises an acquisition unit, a target transaction log and a processing unit, wherein the acquisition unit is used for acquiring a target transaction log at least based on a global service tracking number, the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems; a first determining unit, configured to determine a target transaction path of the target transaction based on a transaction sequence number and the target transaction log, where the transaction sequence number is unique ID information that identifies each service system; and the sending unit is used for sending at least the target transaction path to a display screen of the terminal equipment so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the cross-system transaction analysis methods.
According to still another aspect of the embodiment of the present invention, there is also provided a transaction analysis system including: the transaction link inquiry system comprises a cross-system transaction analysis device, wherein the transaction analysis device is used for executing any cross-system transaction analysis method; and the transaction link inquiry system is communicated with the service system.
In the transaction analysis method, firstly, determining log information of a target transaction in a plurality of service systems based on at least a global service tracking number of the target transaction, namely acquiring a target transaction log of the target transaction; then, determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; finally, at least the target transaction path is sent to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates a flow chart of a cross-system transaction analysis method of one embodiment of the present application;
FIG. 2 illustrates a schematic diagram of a target transaction path according to one embodiment of the present application;
FIG. 3 shows a schematic diagram of a cross-system transaction analysis device according to one embodiment of the present application;
FIG. 4 illustrates a flow chart of a cross-system transaction analysis scheme according to one embodiment of the present application.
Wherein the above figures include the following reference numerals:
100. a first business system; 200. a second business system; 300. a third business system; 400. a fourth business system; 500. a fifth business system; 600. and a sixth service system.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, the following will describe some terms or terms related to the embodiments of the present application:
global traffic tracking number: globally unique, flow-through-common, and identification number persisted to the complete end of the event, generated by the event trigger point. The global service tracking number inherited by the same event when each service system, each service platform, each computing component or each transaction is in circulation processing; if one event triggers a plurality of sub-events, the sub-events also inherit the global service tracking number;
Transaction sequence number: the transaction sequence number is used for supplementing the global service tracking number and is used for identifying each branch (namely the service system) on the transaction link under the scene of calling across service systems (or computing components), and the transaction sequence number is changed continuously along with the change of the external calling of the node.
As described in the background art, in the prior art, the positioning and the troubleshooting of the cross-service system are performed on the fault problem occurring in the single transaction, which results in higher cost.
According to an embodiment of the application, a cross-system transaction analysis method is provided.
FIG. 1 is a flow chart of a cross-system transaction analysis method according to an embodiment of the present application. As shown in fig. 1, the transaction analysis method includes the steps of:
step S101, obtaining a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
Step S102, determining a target transaction path of the target transaction based on the transaction serial number and the target transaction log, wherein the transaction serial number is unique ID information for identifying each service system;
step S103, at least transmitting the target transaction path to a display screen of a terminal device, so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
In the transaction analysis method, firstly, determining log information of a target transaction in a plurality of service systems at least based on a global service tracking number of the target transaction, namely acquiring a target transaction log of the target transaction; then, determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; finally, at least the target transaction path is sent to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
Specifically, the target transaction may be a single transaction. The target transaction log is log information of the target transaction in a plurality of service systems, namely a collection of related logs of the target transaction in each service system.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In the actual application process, the target transaction log can be obtained directly based on the global service tracking number.
Specifically, in the case of acquiring the target transaction logs based on the global service tracking number, the number of the acquired target transaction logs is larger, and the time period for searching from the ES cluster is also increased, that is, the condition of easy search timeout is also caused. Thus, in accordance with the above-mentioned problem, in one embodiment of the present application, obtaining the target transaction log based on at least the global service tracking number includes: and screening the log information meeting the global service tracking number and the target time period from the ES (Elastic Search) cluster log to obtain the target transaction log. That is, by increasing the limit conditions of the search, the number of searches to be required can be made small, and the problem of timeout can be avoided.
Specifically, in the above embodiment, the log information satisfying the condition is screened from the ES cluster log based on the limiting conditions of the two searches of the global service tracking number and the target time period. The log information is the relevant log information of the target transaction in the corresponding service system. And forming a target transaction log by the searched relevant log information of each system.
Specifically, searching for the log information of the target transaction in each service system from the ES cluster is not limited to the global service tracking number and the target time period, and may be performed by using other search fields. For example, by global traffic tracking number, date, target time period, etc.
In another embodiment of the present application, determining a target transaction path of the target transaction based on the transaction sequence number and the target transaction log includes: determining service names of the corresponding service systems in the target transaction log based on the transaction sequence numbers to obtain a plurality of service names; determining a start time, an end time and an execution state of each business system based on the target transaction log, wherein the start time is a start time of the corresponding business system to execute the target transaction, the end time is an end time of the corresponding business system to execute the target transaction, and the execution state is an execution state of the target transaction in the corresponding business system; the target transaction path of the target transaction is determined based on the service name, the start time, the end time, and the execution state of each of the service systems. Specifically, in this embodiment, based on the determined service name, start time, end time and execution state of each service system, the target transaction path corresponding to the target transaction is determined, so that not only can the target transaction path be determined relatively simply, but also the determined target transaction path contains relatively rich information, and the overall readability of the target transaction path is relatively high.
Specifically, each business system corresponds to a unique transaction sequence number. That is, based on the transaction sequence number, the service name of each service system can be determined from the target transaction log more simply. For example, in a banking scenario, if the transaction serial number corresponding to the mobile banking system is 9910006. If 9910006 exists in the target transaction log, the service name corresponding to the service system of the target exchange is known to be the mobile banking system. The target transaction path of the target transaction is determined based on the service name, the starting time, the ending time and the execution state of each service system, so that the service systems which the target transaction experiences in the processed process can be determined relatively simply, the corresponding execution states are what, and the overall readability of the determined target transaction path is further higher.
In order to more clearly understand the circulation order of the target transaction in each service system, that is, the call relationship of each service system corresponding to the target transaction, in another embodiment of the present application, the determining the target transaction path of the target transaction based on the service name, the start time, the end time and the execution state of each service system includes: sequencing the service systems according to the starting time of the service systems to obtain a target execution sequence; determining an execution time of each of the service systems based on the start time and the end time of each of the service systems, the execution time being a time for the corresponding service system to execute the target transaction; and assigning the service name, the execution state and the execution time to the corresponding service system according to the target execution sequence to obtain the target transaction path.
In a specific embodiment of the present application, as shown in fig. 2, the service systems are ordered according to the starting time of each service system, so as to obtain a target execution sequence, that is, the target execution sequence may be the first service system 100, the second service system 200, the third service system 300, the fourth service system 400, and the simultaneous flow goes to the fifth service system 500 and the sixth service system 600 as shown in fig. 2. And assigning the service name, the execution state and the execution time to the corresponding service system according to the determined target execution sequence to obtain a target transaction path, namely a tree-shaped call chain shown in fig. 2. In a specific embodiment of the present application, in a banking scenario, the service name corresponding to the first service system 100 may be a unified counter, its execution state is successful, and its execution time is 228ms. The service name corresponding to the second service system 200 may be a conventional channel, its execution state is successful, and its execution time is 189ms. The service name corresponding to the third service system 300 may be an enterprise service bus, the execution status of which is successful, and the execution time of which is 228ms. The service name corresponding to the fourth service system 400 may be a bank remittance, its execution status is successful, and its execution time is 88ms. The service name corresponding to the fifth service system 500 may be a personal deposit, its execution status is successful, and its execution time is 43ms. The service name corresponding to the sixth service system 600 may be a payment preamble, its execution status is successful, and its execution time is 58ms. Through the target transaction path, the calling relation of the target transaction in each service system, the execution state and the execution time can be clearly observed, so that the readability of the whole determined target transaction path is higher.
In order to further facilitate the transaction analysis of the target transaction by the staff, in still another embodiment of the present application, at least the target transaction path is sent to the display screen of the terminal device, so that the staff performs the transaction analysis of the target transaction based on the target transaction path, including: and sending the target transaction path and the target transaction log to the display screen of the terminal equipment so that the staff can conduct transaction analysis on the target transaction based on the target transaction path and the target transaction log.
In a specific embodiment of the present application, the target transaction path may be located in a first area of the display screen, and the target transaction log may be located in a second area of the display screen. The first region and the second region may be displayed horizontally, or the first region and the second region may be displayed vertically.
In an embodiment of the present application, before the log information satisfying the global service tracking number and the target time period is screened from the ES cluster log to obtain the target transaction log, the transaction analysis method further includes: and receiving the global service tracking number and the target time period in response to a predetermined operation acting on the display screen. Specifically, in the scheme, the target transaction log can be obtained more simply later based on the search conditions input by the staff, namely the global service tracking number and the target time period.
In the actual application process, the global service tracking number and the target time period which are input to the global service tracking number by the staff on the display screen can be received. Of course, the global service tracking number and the target time period are not limited to being input on the display screen by the staff, and can be selected in a selective manner.
In order to ensure that the robustness of the program is high and avoid the problem of program abnormality caused by that the input global service tracking number and the target time do not meet the predetermined rule, in another embodiment of the present application, after receiving the global service tracking number and the target time period in response to the predetermined operation acting on the display screen, the transaction analysis method further includes: performing validity check on the global service tracking number and the target time period; determining that the validity check passes under the condition that the format types corresponding to the global service tracking number and the target time period meet a preset rule; and under the condition that the format type corresponding to the global service tracking number and/or the target time period does not meet the preset rule, determining that the validity check is not passed.
In a specific embodiment of the present application, the validity check is performed on the global service tracking number, that is, the validity check is performed on the format type corresponding to the global service tracking number. For example, determining whether the length of the global service tracking number input by the worker satisfies a predetermined rule; in the case that the global service tracking numbers are all numbers, it is determined whether the inputted global service tracking numbers contain information such as letters.
In another specific embodiment of the present application, the validity check is performed on the target time period, that is, the validity check is performed on the format type corresponding to the target time period. For example, it is determined whether the target period of time input by the worker is within a preset period of time, or the like.
Specifically, in the above embodiment, the predetermined rule is a rule for performing validity check on the global service tracking number and the target period. The global traffic tracking number and the validity detection of the target time period may use the same predetermined rule. Of course, different predetermined rules may be used for the validity detection of the global traffic tracking number and the target time period. That is, the predetermined rule only needs to perform validity check on the global service tracking number and the target time period, and can be flexibly formulated according to the actual application situation.
The embodiment of the application also provides a cross-system transaction analysis device, and it is to be noted that the cross-system transaction analysis device of the embodiment of the application can be used for executing the cross-system transaction analysis method provided by the embodiment of the application. The following describes a cross-system transaction analysis device provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a cross-system transaction analysis device according to an embodiment of the present application. As shown in fig. 3, the transaction analysis device includes:
an obtaining unit 10, configured to obtain a target transaction log based at least on a global service tracking number, where the global service tracking number is unique ID information for identifying a target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
a first determining unit 20 configured to determine a target transaction path of the target transaction based on a transaction serial number and the target transaction log, where the transaction serial number is unique ID information identifying each of the service systems;
and a sending unit 30, configured to send at least the target transaction path to a display screen of a terminal device, so that a worker performs transaction analysis on the target transaction based on the target transaction path.
In the transaction analysis device, the obtaining unit is configured to determine log information of the target transaction in a plurality of service systems based on at least a global service tracking number of the target transaction, that is, obtain a target transaction log of the target transaction; the first determining unit is used for determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; the sending unit is used for sending the target transaction path to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
Specifically, the target transaction may be a single transaction. The target transaction log is log information of the target transaction in a plurality of service systems, namely a collection of related logs of the target transaction in each service system.
In the actual application process, the target transaction log can be obtained directly based on the global service tracking number.
Specifically, in the case of acquiring the target transaction logs based on the global service tracking number, the number of the acquired target transaction logs is larger, and the time period for searching from the ES cluster is also increased, that is, the condition of easy search timeout is also caused. Therefore, based on the above-mentioned problem, in one embodiment of the present application, the obtaining unit includes a screening module, configured to screen the log information satisfying the global service tracking number and the target time period from the ES (Elastic Search) cluster log, to obtain the target transaction log. That is, by increasing the limit conditions of the search, the number of searches to be required can be made small, and the problem of timeout can be avoided.
Specifically, in the above embodiment, the log information satisfying the condition is screened from the ES cluster log based on the limiting conditions of the two searches of the global service tracking number and the target time period. The log information is the relevant log information of the target transaction in the corresponding service system. And forming a target transaction log by the searched relevant log information of each system.
Specifically, searching for the log information of the target transaction in each service system from the ES cluster is not limited to the global service tracking number and the target time period, and may be performed by using other search fields. For example, by global traffic tracking number, date, target time period, etc.
In another embodiment of the present application, the first determining unit includes a first determining module, a second determining module, and a third determining module, where the first determining module is configured to determine, based on the transaction sequence number, a service name of the corresponding service system in the target transaction log, to obtain a plurality of service names; the second determining module is configured to determine, based on the target transaction log, a start time, an end time, and an execution state of each of the service systems, where the start time is a start time of the corresponding service system executing the target transaction, the end time is an end time of the corresponding service system executing the target transaction, and the execution state is an execution state of the target transaction in the corresponding service system; the third determining module is configured to determine the target transaction path of the target transaction based on the service name, the start time, the end time, and the execution state of each of the service systems. Specifically, in this embodiment, based on the determined service name, start time, end time and execution state of each service system, the target transaction path corresponding to the target transaction is determined, so that not only can the target transaction path be determined relatively simply, but also the determined target transaction path contains relatively rich information, and the overall readability of the target transaction path is relatively high.
Specifically, each business system corresponds to a unique transaction sequence number. That is, based on the transaction sequence number, the service name of each service system can be determined from the target transaction log more simply. For example, in a banking scenario, if the transaction serial number corresponding to the mobile banking system is 9910006. If 9910006 exists in the target transaction log, the service name corresponding to the service system of the target exchange is known to be the mobile banking system. The target transaction path of the target transaction is determined based on the service name, the starting time, the ending time and the execution state of each service system, so that the service systems which the target transaction experiences in the processed process can be determined relatively simply, the corresponding execution states are what, and the overall readability of the determined target transaction path is further higher.
In order to clearly understand the circulation sequence of the target transaction in each service system, that is, the calling relationship of each service system corresponding to the target transaction, in another embodiment of the present application, the third determining module includes a sorting sub-module, a determining sub-module, and an assigning sub-module, where the sorting sub-module is configured to sort each service system according to the starting time of each service system to obtain a target execution sequence; the determining submodule is used for determining execution time of each business system based on the starting time and the ending time of each business system, wherein the execution time is the time for the corresponding business system to execute the target transaction; the assignment submodule is used for assigning the service name, the execution state and the execution time to the corresponding service system according to the target execution sequence to obtain the target transaction path.
In a specific embodiment of the present application, as shown in fig. 2, the service systems are ordered according to the starting time of each service system, so as to obtain a target execution sequence, that is, the target execution sequence may be the first service system 100, the second service system 200, the third service system 300, the fourth service system 400, and the simultaneous flow goes to the fifth service system 500 and the sixth service system 600 as shown in fig. 2. And assigning the service name, the execution state and the execution time to the corresponding service system according to the determined target execution sequence to obtain a target transaction path, namely a tree-shaped call chain shown in fig. 2. In a specific embodiment of the present application, in a banking scenario, the service name corresponding to the first service system 100 may be a unified counter, its execution state is successful, and its execution time is 228ms. The service name corresponding to the second service system 200 may be a conventional channel, its execution state is successful, and its execution time is 189ms. The service name corresponding to the third service system 300 may be an enterprise service bus, the execution status of which is successful, and the execution time of which is 228ms. The service name corresponding to the fourth service system 400 may be a bank remittance, its execution status is successful, and its execution time is 88ms. The service name corresponding to the fifth service system 500 may be a personal deposit, its execution status is successful, and its execution time is 43ms. The service name corresponding to the sixth service system 600 may be a payment preamble, its execution status is successful, and its execution time is 58ms. Through the target transaction path, the calling relation of the target transaction in each service system, the execution state and the execution time can be clearly observed, so that the readability of the whole determined target transaction path is higher.
In order to further facilitate the staff to perform transaction analysis on the target transaction, in still another embodiment of the present application, the sending unit includes a sending module, configured to send the target transaction path and the target transaction log to the display screen of the terminal device, so that the staff performs transaction analysis on the target transaction based on the target transaction path and the target transaction log.
In a specific embodiment of the present application, the target transaction path may be located in a first area of the display screen, and the target transaction log may be located in a second area of the display screen. The first region and the second region may be displayed horizontally, or the first region and the second region may be displayed vertically.
In an embodiment of the present application, the transaction analysis device further includes a receiving unit, configured to receive, before the log information satisfying the global service tracking number and the target time period is screened from the ES cluster log to obtain the target transaction log, the global service tracking number and the target time period in response to a predetermined operation acting on the display screen. Specifically, in the scheme, the target transaction log can be obtained more simply later based on the search conditions input by the staff, namely the global service tracking number and the target time period.
In the actual application process, the global service tracking number and the target time period which are input to the global service tracking number by the staff on the display screen can be received. Of course, the global service tracking number and the target time period are not limited to being input on the display screen by the staff, and can be selected in a selective manner.
In order to ensure that the robustness of the program is high and avoid the problem of program abnormality caused by that the input global service tracking number and the target time do not meet the predetermined rule, in another embodiment of the present application, the transaction analysis method further includes a checking unit, a second determining unit, and a third determining unit, where the checking unit is configured to perform validity check on the global service tracking number and the target time period after receiving the global service tracking number and the target time period in response to the predetermined operation acting on the display screen; the second determining unit is configured to determine that the validity check passes if the global service tracking number and the format type corresponding to the target time period both satisfy a predetermined rule; the third determining unit is configured to determine that the validity check is not passed if the global service tracking number and/or the format type corresponding to the target time period do not satisfy the predetermined rule.
In a specific embodiment of the present application, the validity check is performed on the global service tracking number, that is, the validity check is performed on the format type corresponding to the global service tracking number. For example, determining whether the length of the global service tracking number input by the worker satisfies a predetermined rule; in the case that the global service tracking numbers are all numbers, it is determined whether the inputted global service tracking numbers contain information such as letters.
In another specific embodiment of the present application, the validity check is performed on the target time period, that is, the validity check is performed on the format type corresponding to the target time period. For example, it is determined whether the target period of time input by the worker is within a preset period of time, or the like.
Specifically, in the above embodiment, the predetermined rule is a rule for performing validity check on the global service tracking number and the target period. The global traffic tracking number and the validity detection of the target time period may use the same predetermined rule. Of course, different predetermined rules may be used for the validity detection of the global traffic tracking number and the target time period. That is, the predetermined rule only needs to perform validity check on the global service tracking number and the target time period, and can be flexibly formulated according to the actual application situation.
The cross-system transaction analysis device comprises a processor and a memory, wherein the acquisition unit, the first determination unit, the transmission unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problem of high cost caused by positioning and checking a cross-service system for the fault problem in single transaction in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
Embodiments of the present invention provide a computer-readable storage medium having a program stored thereon, which when executed by a processor, implements the above-described cross-system transaction analysis method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the cross-system transaction analysis method is executed when the program runs.
In an exemplary embodiment of the present application, a transaction analysis system is also provided. The transaction analysis system comprises a transaction link inquiry system and a business system. The transaction link inquiry system comprises a cross-system transaction analysis device, wherein the transaction analysis device is used for executing any one of the cross-system transaction analysis methods; and the transaction link inquiry system is communicated with the service system.
The transaction analysis system comprises a transaction link inquiry system and a business system. The transaction link inquiry system comprises a cross-system transaction analysis device, wherein the transaction analysis device is used for executing any one of the cross-system transaction analysis methods; and the transaction link inquiry system is communicated with the service system. In the above-mentioned cross-system transaction analysis method, first, based on at least the global service tracking number of the target transaction, determining log information of the target transaction in a plurality of service systems, that is, obtaining a target transaction log of the target transaction; then; determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; finally, at least the target transaction path is sent to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S101, obtaining a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
step S102, determining a target transaction path of the target transaction based on the transaction serial number and the target transaction log, wherein the transaction serial number is unique ID information for identifying each service system;
step S103, at least transmitting the target transaction path to a display screen of a terminal device, so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S101, obtaining a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
Step S102, determining a target transaction path of the target transaction based on the transaction serial number and the target transaction log, wherein the transaction serial number is unique ID information for identifying each service system;
step S103, at least transmitting the target transaction path to a display screen of a terminal device, so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
In order that those skilled in the art can more clearly understand the technical solutions of the present application, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.
Examples
In a specific embodiment of the present application, a cross-system transaction analysis scheme is also provided, see in particular fig. 4. The specific steps of the transaction analysis scheme are as follows:
the first step: the staff member inputs the global service tracking number and the target time period based on the UI interface of the transaction link inquiry system.
And a second step of: after receiving the global service tracking number and the target time period input by the staff, the server performs validity check on the global service tracking number and the target time period. Under the condition that format types corresponding to the global service tracking number and the target time period meet a preset rule, determining that the validity check is passed; and under the condition that the format type corresponding to the global service tracking number and/or the target time period does not meet the preset rule, determining that the validity check is not passed.
And a third step of: under the condition that the inspection passes, inquiring from the ES cluster log based on the global service tracking number and the target time period; in case the check fails, the result is returned directly.
Fourth step: under the condition that data exist, namely, the log information meeting the global service tracking number and the target time period is screened from the ES cluster logs, and a target transaction path is determined based on the target transaction log and the transaction serial number under the condition that the target transaction log is obtained; in the absence of data, the result is returned.
Fifth step: after the target transaction path is determined, the target transaction path and the target transaction log are sent to a display screen, so that staff can conduct transaction analysis on the target transaction based on the target transaction path and the target transaction log.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the transaction analysis method, firstly, based on at least the global service tracking number of a target transaction, determining log information of the target transaction in a plurality of service systems, namely acquiring a target transaction log of the target transaction; then, determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; finally, at least the target transaction path is sent to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
2) In the transaction analysis device, the acquisition unit is used for determining log information of the target transaction in a plurality of service systems at least based on the global service tracking number of the target transaction, namely acquiring a target transaction log of the target transaction; the first determining unit is used for determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; the sending unit is used for sending the target transaction path to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
3) The transaction analysis system of the application comprises a transaction link inquiry system and a business system. The transaction link inquiry system comprises a cross-system transaction analysis device, wherein the transaction analysis device is used for executing any one of the cross-system transaction analysis methods; and the transaction link inquiry system is communicated with the service system. In the above-mentioned cross-system transaction analysis method, first, based on at least the global service tracking number of the target transaction, determining log information of the target transaction in a plurality of service systems, that is, obtaining a target transaction log of the target transaction; then; determining a calling link of the target transaction in each service system, namely a target transaction path, based on the target transaction log and the transaction serial numbers of each service system; finally, at least the target transaction path is sent to the display screen of the terminal equipment, so that the staff can conveniently conduct transaction analysis on the target transaction based on the target transaction path displayed on the display screen. In the scheme, only the target transaction log of the target transaction is required to be acquired, and then the call link of the target transaction in each service system, namely the target transaction path, can be determined based on the target transaction log and the transaction sequence number, so that the problem of the target transaction in each service system can be positioned and checked, the modification of each service system is not required, namely the invasion of each service system is not required, and complex related information is not required to be acquired, thus the overall lower cost is ensured, and the problem of higher cost caused by the positioning and the checking of the cross service system for the fault problem in single transaction in the prior art is solved.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of cross-system transaction analysis, comprising:
acquiring a target transaction log based on at least a global service tracking number, wherein the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
determining a target transaction path of the target transaction based on a transaction sequence number and the target transaction log, wherein the transaction sequence number is unique ID information for identifying each service system;
and sending at least the target transaction path to a display screen of a terminal device, so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
2. The transaction analysis method according to claim 1, wherein obtaining a target transaction log based at least on a global transaction tracking number comprises:
And screening the log information meeting the global service tracking number and the target time period from the ES cluster log to obtain the target transaction log.
3. The transaction analysis method of claim 1, wherein determining a target transaction path for the target transaction based on a transaction sequence number and the target transaction log comprises:
based on the transaction sequence number, determining the service names of the corresponding service systems in the target transaction log to obtain a plurality of service names;
determining the starting time, the ending time and the execution state of each business system based on the target transaction log, wherein the starting time is the starting time of the corresponding business system to execute the target transaction, the ending time is the ending time of the corresponding business system to execute the target transaction, and the execution state is the execution state of the target transaction in the corresponding business system;
the target transaction path of the target transaction is determined based on the service name, the start time, the end time, and the execution status of each of the service systems.
4. The transaction analysis method of claim 3, wherein determining the target transaction path for the target transaction based on the service name, the start time, the end time, and the execution status of each of the service systems comprises:
Sequencing the service systems according to the starting time of the service systems to obtain a target execution sequence;
determining execution time of each business system based on the start time and the end time of each business system, wherein the execution time is the time of the corresponding business system to execute the target transaction;
and assigning the service name, the execution state and the execution time to the corresponding service system according to the target execution sequence to obtain the target transaction path.
5. The transaction analysis method according to any one of claims 1 to 4, wherein at least the target transaction path is sent to a display screen of a terminal device, so that a worker performs transaction analysis on the target transaction based on the target transaction path, including:
and sending the target transaction path and the target transaction log to the display screen of the terminal equipment so that the staff can conduct transaction analysis on the target transaction based on the target transaction path and the target transaction log.
6. The transaction analysis method according to any one of claims 2 to 4, wherein before the log information satisfying the global service tracking number and the target time period is screened from the ES cluster log, the transaction analysis method further comprises:
The global traffic tracking number and the target time period are received in response to a predetermined operation acting on the display screen.
7. The transaction analysis method according to claim 6, wherein after receiving the global traffic tracking number and the target time period in response to a predetermined operation acting on the display screen, the transaction analysis method further comprises:
performing validity check on the global service tracking number and the target time period;
determining that the validity check passes under the condition that the format types corresponding to the global service tracking number and the target time period meet a preset rule;
and under the condition that the format type corresponding to the global service tracking number and/or the target time period does not meet the preset rule, determining that the validity check is not passed.
8. A cross-system transaction analysis device, comprising:
the system comprises an acquisition unit, a target transaction log and a processing unit, wherein the acquisition unit is used for acquiring a target transaction log at least based on a global service tracking number, the global service tracking number is unique ID information for identifying target transaction, and the target transaction log is log information of the target transaction in a plurality of service systems;
A first determining unit, configured to determine a target transaction path of the target transaction based on a transaction sequence number and the target transaction log, where the transaction sequence number is unique ID information that identifies each service system;
and the sending unit is used for sending at least the target transaction path to a display screen of the terminal equipment so that staff can conduct transaction analysis on the target transaction based on the target transaction path.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program performs the cross-system transaction analysis method of any one of claims 1 to 7.
10. A transaction analysis system, comprising:
a transaction link inquiry system comprising a cross-system transaction analysis device for performing the cross-system transaction analysis method of any one of claims 1 to 7;
and the transaction link inquiry system is communicated with the service system.
CN202211697702.0A 2022-12-28 2022-12-28 Cross-system transaction analysis method, transaction analysis device and transaction analysis system Pending CN116091226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211697702.0A CN116091226A (en) 2022-12-28 2022-12-28 Cross-system transaction analysis method, transaction analysis device and transaction analysis system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211697702.0A CN116091226A (en) 2022-12-28 2022-12-28 Cross-system transaction analysis method, transaction analysis device and transaction analysis system

Publications (1)

Publication Number Publication Date
CN116091226A true CN116091226A (en) 2023-05-09

Family

ID=86203753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211697702.0A Pending CN116091226A (en) 2022-12-28 2022-12-28 Cross-system transaction analysis method, transaction analysis device and transaction analysis system

Country Status (1)

Country Link
CN (1) CN116091226A (en)

Similar Documents

Publication Publication Date Title
US11269718B1 (en) Root cause detection and corrective action diagnosis system
CN112183782B (en) Fault work order processing method and equipment
CN111723313A (en) Page jump processing method, device, equipment and storage medium
CN112766907A (en) Service data processing method and device and server
CN109327353B (en) Service flow determination method and device and electronic equipment
CN110912757B (en) Service monitoring method and server
CN111367760A (en) Log collection method and device, computer equipment and storage medium
CN115994079A (en) Test method, test device, electronic apparatus, storage medium, and program product
CN115705190A (en) Method and device for determining dependence degree
CN111538616A (en) Method, device and system for positioning abnormity and computer readable storage medium
CN110825609B (en) Service testing method, device and system
CN116645082A (en) System inspection method, device, equipment and storage medium
CN116091226A (en) Cross-system transaction analysis method, transaction analysis device and transaction analysis system
CN107193721B (en) Method and device for generating log
CN113923190A (en) Method and device for identifying equipment identification jump, server and storage medium
CN112818204A (en) Service processing method, device, equipment and storage medium
CN112596974A (en) Full link monitoring method, device, equipment and storage medium
CN112579552A (en) Log storage and calling method, device and system
CN111381985B (en) Heterogeneous system data calling method, device, equipment and storage medium
CN112433915B (en) Data monitoring method and related device based on distributed performance monitoring tool
CN116974801A (en) Transaction link abnormality analysis method and device, storage medium and computer equipment
CN115766532A (en) Link monitoring method and device, storage medium and electronic device
CN114625595A (en) Method, device and system for rechecking dynamic configuration information of service system
CN114756507A (en) Transaction drop point query method, device, equipment and medium
CN115718728A (en) Data checking method, device, equipment and medium of distributed system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination