CN111967874A - Transaction log recording method and device - Google Patents

Transaction log recording method and device Download PDF

Info

Publication number
CN111967874A
CN111967874A CN202010826370.6A CN202010826370A CN111967874A CN 111967874 A CN111967874 A CN 111967874A CN 202010826370 A CN202010826370 A CN 202010826370A CN 111967874 A CN111967874 A CN 111967874A
Authority
CN
China
Prior art keywords
message
transaction
key field
value
key
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.)
Granted
Application number
CN202010826370.6A
Other languages
Chinese (zh)
Other versions
CN111967874B (en
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.)
Bank of China Ltd
Original Assignee
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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010826370.6A priority Critical patent/CN111967874B/en
Publication of CN111967874A publication Critical patent/CN111967874A/en
Application granted granted Critical
Publication of CN111967874B publication Critical patent/CN111967874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a transaction log recording method and a device, wherein the method comprises the following steps: receiving a message of transaction; analyzing the message to obtain a transaction serial number and a transaction code; extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message; and recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log. The invention can directly display the value of each key field contained in the message by the transaction log, so that the staff can directly obtain the key content information in the message.

Description

Transaction log recording method and device
Technical Field
The invention relates to the technical field of computers, in particular to a transaction log recording method and device.
Background
In a transaction system, it is very necessary to record a transaction log, and the log can record the time, content and other elements of the transaction, so as to provide help for troubleshooting problems and tracing the transaction. Developers or environment maintenance personnel often need to help with the problem of log positioning, and the problem solving efficiency is influenced by the quality of the log recording effect.
The message is a unit of network transmission, and can be continuously encapsulated into packets, packets and frames for transmission in the transmission process, wherein the encapsulation mode is to add some information sections, namely data with message headers organized in a certain format. In a traditional log recording mode, a message is written into a text line by line, and because data of the message is only written into the text in a whole manner, when a worker reads a transaction log, the worker still needs to identify the message to know information in the message, the process is complicated, the worker cannot directly acquire the information from the log, the message is generally presented in a character string manner, the difficulty degree of reading the transaction log is increased, and the readability of the transaction log is reduced.
Disclosure of Invention
The embodiment of the invention provides a transaction log recording method, which is used for improving the readability of logs and comprises the following steps:
receiving a message of transaction;
analyzing the message to obtain a transaction serial number and a transaction code;
extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message;
and recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log.
The embodiment of the invention also provides a transaction log recording device, which is used for improving the readability of the log and comprises the following components:
the message receiving module is used for receiving a message of transaction;
the message analysis module is used for analyzing the message to obtain a transaction serial number and a transaction code;
the key field extraction module is used for extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message;
and the transaction log generation module is used for recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the transaction log recording method is realized when the processor executes the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the above transaction log recording method is stored in the computer-readable storage medium.
In the embodiment of the invention, a message of transaction is received; analyzing the message to obtain a transaction serial number and a transaction code; extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message; the transaction serial number, the transaction code and the value of each key field in the message are recorded to generate a transaction log, so that the transaction log can directly display the value of each key field in the message, and a worker can directly obtain the key content information in the message.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a transaction logging method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an example of a transaction logging method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an example of a transaction logging method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a transaction log recording apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a transaction logging system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment of the present invention, a transaction log recording method is provided, as shown in fig. 1, the method includes:
step 101: receiving a message of transaction;
step 102: analyzing the message to obtain a transaction serial number and a transaction code;
step 103: extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message;
step 104: and recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log.
In the embodiment of the invention, a message of transaction is received; analyzing the message to obtain a transaction serial number and a transaction code; extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message; the transaction serial number, the transaction code and the value of each key field in the message are recorded to generate a transaction log, so that the transaction log can directly display the value of each key field in the message, and a worker can directly obtain the key content information in the message.
When the method is implemented specifically, firstly, a message of transaction is received; after receiving the message of the transaction, analyzing the message to obtain a transaction serial number and a transaction code.
In an embodiment, when receiving a transaction message, the transaction message sent from a transaction initiator, such as a front end, and a transaction processor, such as a background, may be received. After receiving a message of a transaction, parsing the message to obtain a transaction serial number and a transaction code, for example, as shown in fig. 2, fig. 2 is a schematic diagram of an example of a transaction log recording method provided by an embodiment of the present invention, the transaction serial number (traceNO) may be represented by a transaction routing instance identifier, such as dce284e2-b3b1-48bb-9fec-b8fc305533c7, and the transaction code may be a TransactionNumber, such as CSUCP 011.
In specific implementation, after a message of transaction is received, pre-configured key fields are extracted from the message, and the value of each key field in the message is obtained; the key field is used for displaying key content information in the message.
In an embodiment, as shown in fig. 2, the key fields in fig. 2 are shown in table 1, where table 1 includes the key fields, the meaning of the key content information, and the value of each key field in the message. When the transaction log recording method provided by the embodiment of the present invention extracts the preconfigured key fields from the message, if some key fields do not exist in the message, the key fields are skipped, and the values corresponding to the key fields are not displayed in the log, as shown in Filler1 in fig. 2.
TABLE 1
Key field Meaning of Key content information Value of each key field in the message
InstitutionNo Bank number 003
BranchNo Network point number 17887
TellerNo Counter number 9881900
TRAN_DATE Date of transaction
TRAN_TIME Transaction time
UUID Transaction unique identifier
cics_transidCCSS Name of background system
orgidt Organization number 17887
pro_orgidt Province line number 00000
workstation Workstation numbering 000
termid Terminal number
channelflg Channel numbering 1
tellno9881900 Counter number
suptel0000000 Auditing teller number
TransactionNo Transaction code UCP011
In specific implementation, after the value of each key field in the message is obtained, the transaction serial number, the transaction code and the value of each key field in the message are recorded, and a transaction log is generated.
In an embodiment, as shown in FIG. 2, the transaction serial number is recorded, such as RoutingInstance: dce284e2-b3b1-48bb-9fec-b8fc305533c 7; recording the transaction code, such as TransactionNumber CSUCP 011; the values of each key field in the message are recorded, as shown in the Headers section of FIG. 2, and are labeled in FIG. 2. The generated transaction log can be as shown in fig. 2, and in the log, the sequence of the transaction serial number, the transaction code and the value of each key field in the message can be freely adjusted according to the use requirement of the staff.
In specific implementation, the transaction log recording method provided by the embodiment of the present invention may further include: carrying out hexadecimal format conversion on the message to obtain the hexadecimal message content; recording the transaction serial number, the transaction code and the value of each key field in the message, and generating a transaction log, which may include: and recording the transaction serial number, the transaction code, the value of each key field in the message and the content of the hexadecimal message to generate a transaction log.
In an embodiment, as shown in fig. 2, the hexadecimal message content may be message data in fig. 2, the included content is marked in fig. 2, and each row may display 16 bytes of content. Compared with the prior art, the traditional log recording mode writes the message information into the text line by line, as shown in the message in table 2, and only visible characters can be recorded, but invisible characters, such as binary stream message information, cannot be recorded. For example, when the messages in table 2 are received, the log recording method in the prior art can directly write the whole segment of the message into the text file, so that when a worker reads the transaction log, the worker still needs to identify the message to know the information in the message, and the process is complicated, so that the worker cannot directly obtain the information from the log, but the message with invisible characters is generally presented in a character string form, thereby further increasing the difficulty in reading the transaction log and reducing the readability of the transaction log. The transaction log recording method provided by the embodiment of the invention can also obtain the hexadecimal message content by carrying out hexadecimal format conversion on the message, thereby realizing the recording of invisible characters in the message information, such as binary stream message information, enabling the staff to directly obtain the information of the invisible characters from the log, reducing the difficulty degree of reading the transaction log, leading the readability of the transaction log to be improved and facilitating the reading of the staff.
TABLE 2
Figure BDA0002636347250000051
In an embodiment, as shown in FIG. 2, the transaction serial number is recorded, such as RoutingInstance: dce284e2-b3b1-48bb-9fec-b8fc305533c 7; recording the transaction code, such as TransactionNumber CSUCP 011; recording the value of each key field in the message, as shown in the Headers part in fig. 2, which is already marked in fig. 2; the hexadecimal message content is recorded, as shown in the message data part of fig. 2, which is marked in fig. 2. The generated transaction log can be as shown in fig. 2, and in the log, the sequence of the transaction serial number, the transaction code, the value of each key field in the message and the hexadecimal message content can be freely adjusted according to the use requirement of the staff.
In specific implementation, the hexadecimal format conversion is performed on the message to obtain the content of the hexadecimal message, which may include, for example: carrying out hexadecimal format conversion on the message to obtain a format-converted message; generating an ASCII code corresponding to each byte in the message after format conversion; and generating hexadecimal message content according to the message after format conversion and the ASCII code of each byte in the message after corresponding format conversion.
In an embodiment, as shown in fig. 2, the hexadecimal message content may be the message data in fig. 2, and the included content is marked in fig. 2. The ASCII code corresponding to each byte in the format-converted message may be represented in the ASCII Value portion of fig. 2. The binary type is converted into a hexadecimal format presentation and the corresponding ASCII characters of each byte are displayed. Each row may display 16 bytes of content. By adding the ASCII code of each byte in the message after the corresponding format conversion into the hexadecimal message content, the staff can directly acquire the information of the invisible characters from the log, the difficulty degree of reading the transaction log is reduced, the readability of the transaction log is improved, and the staff can read the transaction log conveniently.
In specific implementation, the transaction log recording method provided by the embodiment of the present invention may further include: analyzing the message to obtain the following message parameters: one or any combination of message length data, transaction request time data and background system identification; recording the transaction serial number, the transaction code and the value of each key field in the message, and generating a transaction log, wherein the transaction log comprises the following steps: and recording the transaction serial number, the transaction code, the value of each key field in the message and the message parameters to generate a transaction log.
In the embodiment, as shown in fig. 2, the message length data may be obtained by the system through calculation, and in fig. 2, may be a message length (296); transaction request time data, such as a timestamp of the time of the front-end transaction request, i.e., the current time of the server, may be obtained by the system, which may be 2019/5/108: 49:37 in fig. 2; the background system identifier, for example, the name of the background system, may be TargetPort ═ CCSS in fig. 2, the chinese language of TargetPort is translated into the name of the background system, and the CCSS is the channel auxiliary construction system; analyzing the message, and obtaining the following message parameters, such as the routing state, wherein the English is routing State, Active represents the normal state; a Target system, English is Target, and the Target system can be CCSS (channel auxiliary construction system); a routing transaction code, in english Start routing, which may be CSUCP 011; a start port, english is translated into SourcePort, and the start port can be a BanksLink (counter front end system); the payment code, PayeeIndex, may be the transaction code AC 20070800001271. The generated transaction log can be as shown in fig. 2, and in the log, the sequence of the transaction serial number, the transaction code, the value of each key field in the message and the message parameter can be freely adjusted according to the use requirement of the staff.
In summary, the generated transaction log may record the transaction serial number, the transaction code, and the value of each key field in the message, and may also selectively record the message parameter and the hexadecimal message content, for example, the message parameter and/or the hexadecimal message content may be recorded according to the use requirement of the worker.
In specific implementation, the transaction log recording method provided by the embodiment of the invention can also record other parameters of the message in the log, such as RoutingState: Active; CCSS, Start routing CSUCP011, Bank sLink (routing state: normal, Target system: channel auxiliary construction system, routing transaction code: CSUCP011, starting port: counter front end system).
In specific implementation, the transaction log recording method provided in the embodiment of the present invention may further include, before extracting the preconfigured key fields from the message and obtaining the value of each key field in the message: in XML format, a number of key fields are preconfigured.
In the embodiment, as shown in fig. 3, fig. 3 is a schematic diagram of an example of a transaction logging method provided by an embodiment of the present invention, and in fig. 3, the meanings of a plurality of key fields preconfigured in an XML format are shown in table 3.
TABLE 3
Code in FIG. 3 Meaning corresponding to code
<?xml version=1.0 2> XML file fixed head
<GROUP ID="FNSTransactions73.CFNSHost"> Message beginning label
<TX> Upper message head label
<FIELD Format="999"ID="InstitutionNo"/> Bank number
<FIELD Format="9(5)"ID="BranchNo"/> Network point number
<FIELD Format="9(7)"ID="TellerNo"/> Counter number
<FIELD Format="X(16)"ID="TranNo"/> Transaction code
<FIELD Format="X(8)"ID="TRAN_DATE"/> Date of transaction
<FIELD Format="X(6)"ID="TRAN_TIME"/> Transaction time
<FIELD Format="X(32)"ID="UUID"/> Transaction unique identifier
<FIELD Format="9(2)"ID="ProvPrefixNumEHR"/> Province line number
<FIELD Format="X(20)"ID="ExternalSystem"/> Peripheral system name
</TX> End of delivery message label
<RX> Return message start tag
<FIELD Format="999"ID="InstitutionNo"/> Bank number
<FIELD Format="9(5)"ID="BranchNo"/> Network point number
<FIELD Format="999"ID="WorkstationNo"/> Terminal number
<FIELD Format="9(7)"ID="TellerNo"/> Counter number
<FIELD Format="X(16)"ID="TranNo"/> Transaction code
<FIELD Format="X(10)"ID="ReturnCode"/> Return code
<FIELD Format="X(200)"ID="ReturnMessage"/> Returning information
<FIELD Format="X(20)"ID="ExternalSystem"/> Peripheral system name
</RX> Return message end label
In the embodiment of the invention, a message of transaction is received; analyzing the message to obtain a transaction serial number and a transaction code; extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message; the transaction serial number, the transaction code and the value of each key field in the message are recorded to generate a transaction log, so that the transaction log can directly display the value of each key field in the message, and a worker can directly obtain the key content information in the message.
As described above, the embodiment of the present invention provides a method for recording transaction logs, which can complete the log records and provide strong readability. The method can record basic elements such as transaction participants, transaction serial numbers, transaction codes and the like, can record the value of each key field in the message, and performs hexadecimal conversion on the message, thereby facilitating reading of personnel. By the method for recording the log, the content of the log can be clear and easy to read; the message in the binary stream format can be recorded into the text through hexadecimal formatted display of the original message, so that the limitation of a common text log is broken through; the log is recorded by analyzing the key field, so that development and maintenance personnel can conveniently and quickly locate the problem.
Based on the same inventive concept, the embodiment of the present invention further provides a transaction log recording apparatus, as described in the following embodiments. Because the principle of the transaction log recording device for solving the problems is similar to the transaction log recording method, the implementation of the transaction log recording device can be referred to the implementation of the transaction log recording method, and repeated parts are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a schematic structural diagram of a transaction log recording apparatus in an embodiment of the present invention, as shown in fig. 4, including:
the message receiving module 01 is used for receiving a message of transaction;
the message analysis module 02 is used for analyzing the message to obtain a transaction serial number and a transaction code;
the key field extraction module 03 is configured to extract a preconfigured key field from the message, and obtain a value of each key field in the message; the key field is used for displaying key content information in the message;
and the transaction log generation module 04 is configured to record the transaction serial number, the transaction code, and the value of each key field in the message, and generate a transaction log.
In an embodiment, a transaction log recording apparatus provided in an embodiment of the present invention may further include: the format conversion module is used for carrying out hexadecimal format conversion on the message to obtain the hexadecimal message content; the transaction log generation module is specifically configured to: and recording the transaction serial number, the transaction code, the value of each key field in the message and the content of the hexadecimal message to generate a transaction log.
In an embodiment, the format conversion module is specifically configured to: carrying out hexadecimal format conversion on the message to obtain a format-converted message; generating an ASCII code corresponding to each byte in the message after format conversion; and generating hexadecimal message content according to the message after format conversion and the ASCII code of each byte in the message after corresponding format conversion.
In an embodiment, the message parsing module is further configured to: analyzing the message to obtain the following message parameters: one or any combination of message length data, transaction request time data and background system identification; the transaction log generation module is specifically configured to: and recording the transaction serial number, the transaction code, the value of each key field in the message and the message parameters to generate a transaction log.
In an embodiment, a transaction log recording apparatus provided in an embodiment of the present invention may further include: and the key field configuration module is used for pre-configuring a plurality of key fields in an XML format before the key field extraction module extracts the pre-configured key fields from the message and obtains the value of each key field in the message.
An embodiment of the present invention may further provide a transaction log recording system, for improving readability of a log, as shown in fig. 5, the system includes:
the transaction log recording device 01 is configured to record a received transaction message and generate a transaction log corresponding to the message; sending the transaction log to a log sending device;
log sending means 02 for sending the transaction log received from the transaction log recording means.
In specific implementation, the transaction log recording system provided in the embodiment of the present invention may further include: and the whole transaction log generating device is used for combining the transaction logs generated by the transaction log recording device by the transaction serial number to generate a transaction log corresponding to the whole transaction flow.
In the embodiment, the whole transaction process comprises a process of sending messages between the front end and the background for many times, the messages related to the whole transaction process can be recorded through the whole transaction log generating device, the transaction log corresponding to the whole transaction process is generated, workers can conveniently and integrally control the transaction, the log record is complete, and the operability of the transaction log is improved.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the transaction log recording method is realized when the processor executes the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the above transaction log recording method is stored in the computer-readable storage medium.
In the embodiment of the invention, a message of transaction is received; analyzing the message to obtain a transaction serial number and a transaction code; extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message; the transaction serial number, the transaction code and the value of each key field in the message are recorded to generate a transaction log, so that the transaction log can directly display the value of each key field in the message, and a worker can directly obtain the key content information in the message.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A transaction logging method, comprising:
receiving a message of transaction;
analyzing the message to obtain a transaction serial number and a transaction code;
extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message;
and recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log.
2. The method of claim 1, further comprising:
carrying out hexadecimal format conversion on the message to obtain the hexadecimal message content;
recording the transaction serial number, the transaction code and the value of each key field in the message, and generating a transaction log, wherein the transaction log comprises the following steps:
and recording the transaction serial number, the transaction code, the value of each key field in the message and the content of the hexadecimal message to generate a transaction log.
3. The method of claim 2, wherein the hexadecimal format converting the message to obtain hexadecimal message content comprises:
carrying out hexadecimal format conversion on the message to obtain a format-converted message;
generating an ASCII code corresponding to each byte in the message after format conversion;
and generating hexadecimal message content according to the message after format conversion and the ASCII code of each byte in the message after corresponding format conversion.
4. The method of claim 1, further comprising:
analyzing the message to obtain the following message parameters: one or any combination of message length data, transaction request time data and background system identification;
recording the transaction serial number, the transaction code and the value of each key field in the message, and generating a transaction log, wherein the transaction log comprises the following steps:
and recording the transaction serial number, the transaction code, the value of each key field in the message and the message parameters to generate a transaction log.
5. The method of claim 1, wherein before extracting pre-configured key fields from the message and obtaining the value of each key field in the message, further comprising:
in XML format, a number of key fields are preconfigured.
6. A transaction logging device, comprising:
the message receiving module is used for receiving a message of transaction;
the message analysis module is used for analyzing the message to obtain a transaction serial number and a transaction code;
the key field extraction module is used for extracting preconfigured key fields from the message to obtain the value of each key field in the message; the key field is used for displaying key content information in the message;
and the transaction log generation module is used for recording the transaction serial number, the transaction code and the value of each key field in the message to generate a transaction log.
7. The apparatus of claim 6, further comprising: the format conversion module is used for carrying out hexadecimal format conversion on the message to obtain the hexadecimal message content;
the transaction log generation module is specifically configured to: and recording the transaction serial number, the transaction code, the value of each key field in the message and the content of the hexadecimal message to generate a transaction log.
8. The apparatus of claim 6, wherein the message parsing module is further configured to:
analyzing the message to obtain the following message parameters: one or any combination of message length data, transaction request time data and background system identification;
the transaction log generation module is specifically configured to: and recording the transaction serial number, the transaction code, the value of each key field in the message and the message parameters to generate a transaction log.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 5.
CN202010826370.6A 2020-08-17 2020-08-17 Transaction log recording method and device Active CN111967874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010826370.6A CN111967874B (en) 2020-08-17 2020-08-17 Transaction log recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010826370.6A CN111967874B (en) 2020-08-17 2020-08-17 Transaction log recording method and device

Publications (2)

Publication Number Publication Date
CN111967874A true CN111967874A (en) 2020-11-20
CN111967874B CN111967874B (en) 2023-09-19

Family

ID=73388113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010826370.6A Active CN111967874B (en) 2020-08-17 2020-08-17 Transaction log recording method and device

Country Status (1)

Country Link
CN (1) CN111967874B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000030045A1 (en) * 1998-11-13 2000-05-25 Koninklijke Kpn N.V. Method of providing a voucher for a service to be rendered, as well as a system for checking vouchers
US20020016771A1 (en) * 1999-12-14 2002-02-07 Kevin Carothers System and method for managing financial transaction information
US20050120039A1 (en) * 2002-09-19 2005-06-02 Upstream Software, Inc. System, method and software for acquiring, storing and retrieving electronic transactions
CN106503264A (en) * 2016-11-29 2017-03-15 中国银行股份有限公司 On-line transaction log recording method and equipment based on oracle database
CN108197176A (en) * 2017-12-21 2018-06-22 深圳四方精创资讯股份有限公司 Core bank data processing method and its system based on distributed type assemblies framework
CN110928663A (en) * 2019-12-02 2020-03-27 中国银行股份有限公司 Cross-platform multithreading monitoring method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000030045A1 (en) * 1998-11-13 2000-05-25 Koninklijke Kpn N.V. Method of providing a voucher for a service to be rendered, as well as a system for checking vouchers
US20020016771A1 (en) * 1999-12-14 2002-02-07 Kevin Carothers System and method for managing financial transaction information
US20050120039A1 (en) * 2002-09-19 2005-06-02 Upstream Software, Inc. System, method and software for acquiring, storing and retrieving electronic transactions
CN106503264A (en) * 2016-11-29 2017-03-15 中国银行股份有限公司 On-line transaction log recording method and equipment based on oracle database
CN108197176A (en) * 2017-12-21 2018-06-22 深圳四方精创资讯股份有限公司 Core bank data processing method and its system based on distributed type assemblies framework
CN110928663A (en) * 2019-12-02 2020-03-27 中国银行股份有限公司 Cross-platform multithreading monitoring method and device

Also Published As

Publication number Publication date
CN111967874B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN110765102B (en) Service data processing method and device, computer equipment and storage medium
US20190228008A1 (en) Method, device, server and storage apparatus of reviewing sql
CN111694840A (en) Data synchronization method, device, server and storage medium
CN113312108B (en) SWIFT message verification method and device, electronic equipment and storage medium
CN109976840B (en) Method and system for realizing multi-language automatic adaptation based on foreground and background separation platform
CN111796809A (en) Interface document generation method and device, electronic equipment and medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN111061696A (en) Method and device for analyzing transaction message log
CN112702228A (en) Service current limiting response method and device, electronic equipment and readable storage medium
CN111881209A (en) Data synchronization method and device for heterogeneous database, electronic equipment and medium
CN108009252A (en) The method and device of data synchronization
US8656371B2 (en) System and method of report representation
US20130024765A1 (en) Processing rich text data for storing as legacy data records in a data storage system
US20170357629A1 (en) Systems and methods for generating a report from stream data
CN111967874A (en) Transaction log recording method and device
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
US9274910B2 (en) Automatic test map generation for system verification test
CN115982675A (en) Document processing method, device, electronic equipment and storage medium
CN113806592B (en) Processing method of electronic medical record display data
CN113791860B (en) Information conversion method, device and storage medium
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
CN106648618B (en) Text information generation method and device for virtual application
CN114238335A (en) Buried point data generation method and related equipment thereof
WO2021129849A1 (en) Log processing method, apparatus and device, and storage medium
CN112199335A (en) Generation method and generation system of operation log

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
GR01 Patent grant
GR01 Patent grant