Bank payment log playback method, device, equipment and readable storage medium
By cleaning and desensitizing bank payment logs and combining them with business dictionary information to implement scenario stratification and playback strategies, the problems of privacy leakage and testing difficulty in bank log playback are resolved, efficient log playback and test coverage are achieved, risks are reduced, and efficiency is improved.
Patent Information
- Application Number
- CN202111507439.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-12-10
AI Technical Summary
Existing bank log replay methods have privacy leakage risks in customer data processing, cannot predict replay results, are difficult to test and analyze, and have limitations in asset accumulation and reuse.
By obtaining production log information and bank payment business dictionary information, cleaning and desensitizing are performed, and scenarios are layered and summarized according to the business dictionary information. After pre-processing, log replay is performed according to the replay strategy, including sensitive data replacement, encryption processing, and hierarchical classification and labeling of scenario data.
It achieves privacy protection for bank payment logs, reduces the risk of legal disputes and economic losses, improves testing efficiency and the automatic construction of coverage scenarios, can predict playback results, and is suitable for a variety of testing tasks.
Smart Images

Figure CN114240622B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of log playback technology, and in particular to a bank payment log playback method, apparatus, device and readable storage medium. Background Art
[0002] The log playback methods commonly used in society today are not very applicable in banks. General playback methods do not process customer data, which may lead to customer privacy leaks, legal disputes, economic losses, reputational risks and other negative impacts. In addition, the log playback method cannot predict the playback results and coverage effects before playback, making test results analysis difficult. At the same time, the business scenario corresponding to each log cannot be transparent, which has limitations in asset accumulation and reuse. Summary of the Invention
[0003] The present invention aims to provide a bank payment log playback method, apparatus, device, and readable storage medium to improve the above-mentioned problems. To achieve the above-mentioned objectives, the present invention adopts the following technical solutions:
[0004] In one aspect, the present application provides a bank payment log playback method, the method comprising:
[0005] Obtain production log information and bank payment business dictionary information;
[0006] Cleaning and desensitizing the production log information in sequence to obtain desensitized data;
[0007] The desensitized data is layered and summarized by scenario according to the bank payment service dictionary information to obtain summarized scenario data;
[0008] The aggregated scene data is preprocessed, and the preprocessed scene data is replayed according to a preset replay strategy to obtain replay log information.
[0009] Optionally, the step of sequentially cleaning and desensitizing the production log information to obtain desensitized data includes:
[0010] Retrieve the start and end marks of the message in the production log information;
[0011] Calling the message data in the production log information according to the start flag and the end flag of the message;
[0012] Classifying the message data according to preset sensitive data types into sensitive message data and normal message data;
[0013] The sensitive message data is desensitized to obtain desensitized data.
[0014] Optionally, desensitizing the sensitive message data to obtain desensitized data includes:
[0015] The sensitive message data is divided into replacement sensitive message data and desensitized sensitive message data according to different labels;
[0016] Replacing the replacement sensitive message data with preset test data to obtain replaced message data;
[0017] The desensitized sensitive message data is encrypted, numerically transformed, null-value inserted, and deleted to obtain desensitized data;
[0018] The replaced message data and the desensitized data are aggregated into desensitized data, and stored in a database according to the label type in the message.
[0019] Optionally, the desensitized data is layered and aggregated by scenario according to the bank payment service dictionary information to obtain aggregated scenario data, including:
[0020] Performing layered processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, the layered processing comprising dividing the desensitized data into at least one first-layer scenario data according to header elements in the message;
[0021] dividing the at least one first-layer scenario into at least one second-layer scenario data according to the service type element in the message;
[0022] dividing the at least one second-layer scenario into at least one third-layer scenario data according to a data type element in the message;
[0023] Aggregated scene data is obtained by aggregating the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data.
[0024] Optionally, preprocessing the aggregated scene data includes:
[0025] Labeling the aggregated scene data, and storing the labeled scene data in a scene pool;
[0026] Preset the gateway IP and port configuration for the marked scene data in the scene pool to obtain the gateway IP and port configuration information of the marked scene data;
[0027] The calling rules are set according to the gateway IP and port configuration information of the marked scene data, the scene data relationship called by the playback environment is determined, and the playback strategy of the marked scene data is obtained.
[0028] Optionally, replaying the preprocessed scene data according to a preset replay strategy to obtain replay log information includes:
[0029] Obtain the environment information, playback level information, and playback frequency information required for playback;
[0030] Calling scene information of different levels in the scene pool according to the environmental information that needs to be replayed and the replay strategy;
[0031] The environmental information that needs to be replayed is replayed according to the replay level information, the replay frequency information and scene information of different levels in the scene pool to obtain replay log information.
[0032] In a second aspect, an embodiment of the present application provides a bank payment log playback device, comprising:
[0033] A first acquiring unit is used to acquire production log information and bank payment service dictionary information;
[0034] A first processing unit is configured to sequentially clean and desensitize the production log information to obtain desensitized data;
[0035] A second processing unit is configured to perform scenario stratification and aggregation on the desensitized data according to the bank payment service dictionary information to obtain aggregated scenario data;
[0036] The first playback unit is configured to pre-process the aggregated scene data and play back the pre-processed scene data according to a preset playback strategy to obtain playback log information.
[0037] Optionally, the device comprises:
[0038] A first retrieving subunit, configured to retrieve a start flag and an end flag of a message in the production log information;
[0039] A second calling subunit is used to call the message data in the production log information according to the start flag and the end flag of the message;
[0040] a first processing subunit, configured to classify the message data according to preset sensitive data types into sensitive message data and normal message data;
[0041] The second processing sub-unit is used to desensitize the sensitive message data to obtain desensitized data.
[0042] Optionally, the device comprises:
[0043] a third processing subunit, configured to divide the sensitive message data into replaced sensitive message data and desensitized sensitive message data according to different labels;
[0044] a fourth processing subunit, configured to replace the replacement sensitive message data with preset test data to obtain replaced message data;
[0045] a fifth processing subunit, configured to perform encryption processing, value transformation processing, null value insertion processing, and null value deletion processing on the desensitized sensitive message data to obtain desensitized data;
[0046] The sixth processing sub-unit is used to aggregate the replaced message data and the desensitized data into desensitized data, and store them in the database according to the label type in the message.
[0047] Optionally, the device comprises:
[0048] a seventh processing sub-unit, configured to perform hierarchical processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, wherein the hierarchical processing includes dividing the desensitized data into at least one first-layer scenario data according to header elements in the message;
[0049] an eighth processing subunit, configured to divide the at least one first-layer scenario into at least one second-layer scenario data according to a service type element in the message;
[0050] a ninth processing subunit, configured to classify the at least one second-layer scenario into at least one third-layer scenario data according to a data type element in the message;
[0051] The tenth processing subunit is configured to aggregate the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data to obtain aggregated scene data.
[0052] Optionally, the device comprises:
[0053] an eleventh processing subunit, configured to label the aggregated scene data and store the labeled scene data into a scene pool;
[0054] a twelfth processing subunit, configured to preset a gateway IP and port configuration for the marked scene data in the scene pool, and obtain gateway IP and port configuration information for the marked scene data;
[0055] The thirteenth processing sub-unit is used to set a calling rule according to the gateway IP and port configuration information of the marked scene data, determine the scene data relationship called by the playback environment, and obtain the playback strategy of the marked scene data.
[0056] Optionally, replaying the preprocessed scene data according to a preset replay strategy to obtain replay log information includes:
[0057] The first acquisition subunit is used to obtain the environment information, playback level information and playback frequency information required for playback;
[0058] A third calling subunit is configured to call scene information of different levels in the scene pool according to the environment information to be replayed and the replay strategy;
[0059] The fourteenth processing subunit is configured to replay the environmental information that needs to be replayed according to the replay level information, the replay frequency information, and scene information of different levels in the scene pool to obtain replay log information.
[0060] In a third aspect, embodiments of the present application provide a bank payment log playback device, comprising a memory and a processor. The memory is configured to store a computer program, and the processor is configured to implement the steps of the bank payment log playback method described above when executing the computer program.
[0061] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned bank payment log playback method are implemented.
[0062] The beneficial effects of the present invention are:
[0063] The present invention constructs test data through an automatic platform construction and performs desensitization and parsing on transaction logs, so that when log playback is applied to the banking industry, customer privacy disclosure is avoided, and the probability of negative impacts such as legal disputes, economic losses, and reputational damage is reduced.
[0064] The present invention automatically extracts test scenarios based on the characteristics of bank payment transactions. By continuously accumulating the scenario pool, it achieves the effect of automatically building a case library and expanding the coverage scenarios, thereby reducing testing costs and improving testing efficiency.
[0065] The selection of the playback strategy of the present invention realizes the control of the log playback environment, type, quantity, frequency, etc., can predict the playback results in advance and reproduce occasional production problems, and can be used for different types of testing work such as smoke testing, regression testing, and stress testing. The present invention has strong scalability and high flexibility.
[0066] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0068] Figure 1 This is a flow chart of a bank payment log playback method according to an embodiment of the present invention;
[0069] Figure 2 This is a schematic structural diagram of a bank payment log playback device according to an embodiment of the present invention;
[0070] Figure 3 This is a schematic diagram of the structure of a bank payment log playback device described in an embodiment of the present invention. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0072] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are used only to distinguish the description and should not be understood as indicating or implying relative importance.
[0073] Example 1
[0074] like Figure 1 As shown, this embodiment provides a bank payment log playback method, which includes step S1, step S2, step S3 and step S4.
[0075] Step S1: Obtain production log information and bank payment service dictionary information;
[0076] Step S2: Cleaning and desensitizing the production log information in sequence to obtain desensitized data;
[0077] Step S3: stratify and aggregate the desensitized data by scenario according to the bank payment service dictionary information to obtain aggregated scenario data;
[0078] Step S4: pre-process the aggregated scene data, and replay the pre-processed scene data according to a preset replay strategy to obtain replay log information.
[0079] It can be understood that the present invention constructs test data through an automatic platform construction and performs desensitization and parsing on transaction logs, so that when log playback is applied to the banking industry, customer privacy leakage is avoided, and the probability of negative impacts such as legal disputes, economic losses and reputation losses is reduced;
[0080] It can be understood that the present invention automatically extracts test scenarios based on the characteristics of bank payment transactions. By continuously accumulating the scenario pool, it achieves the effect of automatically building a case library and expanding the coverage scenarios, thereby reducing testing costs and improving testing efficiency.
[0081] It can be understood that the selection of the playback strategy of the present invention realizes the control of the log playback environment, type, quantity, frequency, etc., can predict the playback results in advance and reproduce occasional production problems, and can be used for different types of testing work such as smoke testing, regression testing, and stress testing. It is highly scalable and flexible.
[0082] In a specific embodiment of the present disclosure, step S2 includes step S21, step S22, step S23 and step S24.
[0083] Step S21: Retrieve the start flag and end flag of the message in the production log information;
[0084] Step S22: calling the message data in the production log information according to the start flag and the end flag of the message;
[0085] Step S23: classify the message data according to preset sensitive data types into sensitive message data and normal message data;
[0086] Step S24: desensitize the sensitive message data to obtain desensitized data.
[0087] It can be understood that the present invention obtains message data through the start flag and end flag of the message, and then desensitizes the message data to avoid leakage of sensitive information and loss to customers.
[0088] In a specific embodiment of the present disclosure, step S24 includes step S241, step S242, step S243 and step S244.
[0089] Step S241: dividing the sensitive message data into replacement sensitive message data and desensitized sensitive message data according to different labels;
[0090] Step S242: replacing the replacement sensitive message data with the preset test data to obtain replaced message data;
[0091] Step S243: encrypting, converting, inserting and deleting null values on the desensitized sensitive message data to obtain desensitized data;
[0092] Step S244: Aggregate the replaced message data and the desensitized data into desensitized data, and store them in a database according to the label type in the message.
[0093] It can be understood that the account number, card number, ID number, name and other data in the sensitive message data in the above steps are replaced, notes, telephone number, address, password and other information can be shielded, and other non-verification information can be shuffled and other processing, and then the desensitized data is stored in the memory. In this way, when log playback is applied to the banking industry, customer privacy leaks are avoided, and the probability of negative impacts such as legal disputes, economic losses and reputation losses is reduced.
[0094] In a specific embodiment of the present disclosure, step S3 includes step S31, step S32, step S33 and step S34.
[0095] Step S31: performing layered processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, wherein the layered processing includes dividing the desensitized data into at least one first-layer scenario data according to header elements in the message;
[0096] Step S32: dividing the at least one first-layer scenario into at least one second-layer scenario data according to the service type element in the message;
[0097] Step S33: Divide the at least one second-layer scenario into at least one third-layer scenario data according to the data type element in the message;
[0098] Step S34: Aggregate the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data to obtain aggregated scene data.
[0099] It can be understood that the above steps extract scenarios from the messages in the database according to the bank's payment business dictionary and put them into the scenario pool, and then label different scenarios with hierarchical labels to facilitate subsequent calls;
[0100] It can be understood that the above-mentioned first-layer scenario data is classified according to the message type and message transmission direction; the second-layer scenario data is classified according to the business type, including goods trade, service trade and other business types specified in the message format standard; the third-layer scenario data is classified according to the data type, including loan flags, business status and other data types specified in the message format standard.
[0101] In a specific embodiment of the present disclosure, step S4 includes step S41, step S42 and step S43.
[0102] Step S41: label the aggregated scene data, and store the labeled scene data in a scene pool;
[0103] Step S42: presetting the gateway IP and port configuration for the marked scene data in the scene pool to obtain the gateway IP and port configuration information of the marked scene data;
[0104] Step S43: Setting a calling rule according to the gateway IP and port configuration information of the marked scene data, determining the scene data relationship called by the playback environment, and obtaining a playback strategy for the marked scene data.
[0105] It is understandable that the present invention can directly select playback according to the calling rules by presetting the gateway IP and port configuration, and then configure the strategy for the scene data, thereby reducing costs and improving efficiency.
[0106] In a specific embodiment of the present disclosure, step S4 further includes step S44, step S45 and step S46.
[0107] Step S44: Obtaining the environment information, playback level information, and playback frequency information required for playback;
[0108] Step S45: calling scene information of different levels in the scene pool according to the environment information to be replayed and the replay strategy;
[0109] Step S46: replay the environment information that needs to be replayed according to the replay level information, the replay frequency information, and the scene information of different levels in the scene pool to obtain replay log information.
[0110] It can be understood that the present invention selects the scenario that needs to be replayed, configures the replay strategy according to the scenario, and then performs replay, thereby realizing the control of the log replay environment, type, quantity, frequency, etc., and can predict the replay results in advance and reproduce occasional production problems. It can be used for different types of testing work such as smoke testing, regression testing, and stress testing. This replay method is highly scalable and flexible.
[0111] Example 2
[0112] like Figure 2 As shown, this embodiment provides a bank payment log playback device, which includes a first acquisition unit 701, a first processing unit 702, a second processing unit 703 and a first playback unit 704.
[0113] The first acquiring unit 701 is configured to acquire production log information and bank payment service dictionary information;
[0114] The first processing unit 702 is configured to perform cleaning and desensitization processing on the production log information in sequence to obtain desensitized data;
[0115] The second processing unit 703 is configured to perform scenario stratification and aggregation on the desensitized data according to the bank payment service dictionary information to obtain aggregated scenario data;
[0116] The first playback unit 704 is configured to pre-process the aggregated scene data and play back the pre-processed scene data according to a preset playback strategy to obtain playback log information.
[0117] In a specific embodiment of the present disclosure, the first processing unit 702 includes a first calling subunit 7021 , a second calling subunit 7022 , a first processing subunit 7023 and a second processing subunit 7024 .
[0118] The first retrieving subunit 7021 is used to retrieve the start flag and end flag of the message in the production log information;
[0119] The second calling subunit 7022 is used to call the message data in the production log information according to the start flag and the end flag of the message;
[0120] The first processing sub-unit 7023 is configured to classify the message data according to preset sensitive data types into sensitive message data and normal message data;
[0121] The second processing sub-unit 7024 is used to desensitize the sensitive message data to obtain desensitized data.
[0122] In a specific embodiment of the present disclosure, the second processing sub-unit 7024 includes a third processing sub-unit 70241 , a fourth processing sub-unit 70242 , a fifth processing sub-unit 70243 and a sixth processing sub-unit 70244 .
[0123] The third processing sub-unit 70241 is configured to divide the sensitive message data into replaced sensitive message data and desensitized sensitive message data according to different labels;
[0124] The fourth processing sub-unit 70242 is configured to replace the replacement sensitive message data with the preset test data to obtain replaced message data;
[0125] The fifth processing sub-unit 70243 is configured to perform encryption processing, value conversion processing, null value insertion processing, and null value deletion processing on the desensitized sensitive message data to obtain desensitized data;
[0126] The sixth processing sub-unit 70244 is used to aggregate the replaced message data and the desensitized data into desensitized data, and store them in the database according to the label type in the message.
[0127] In a specific embodiment of the present disclosure, the second processing unit 703 includes a seventh processing sub-unit 7031 , an eighth processing sub-unit 7032 , a ninth processing sub-unit 7033 and a tenth processing sub-unit 7034 .
[0128] A seventh processing sub-unit 7031 is configured to perform hierarchical processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, wherein the hierarchical processing includes dividing the desensitized data into at least one first-layer scenario data according to header elements in the message;
[0129] An eighth processing subunit 7032 is configured to divide the at least one first-layer scenario into at least one second-layer scenario data according to the service type element in the message;
[0130] A ninth processing subunit 7033 is configured to classify the at least one second-layer scenario into at least one third-layer scenario data according to a data type element in the message;
[0131] The tenth processing subunit 7034 is configured to aggregate the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data to obtain aggregated scene data.
[0132] In a specific embodiment of the present disclosure, the first playback unit 704 includes an eleventh processing subunit 7041 , a twelfth processing subunit 7042 and a thirteenth processing subunit 7043 .
[0133] an eleventh processing subunit 7041 , configured to label the aggregated scene data and store the labeled scene data into a scene pool;
[0134] The twelfth processing sub-unit 7042 is configured to preset a gateway IP and port configuration for the marked scene data in the scene pool, and obtain the gateway IP and port configuration information of the marked scene data;
[0135] The thirteenth processing sub-unit 7043 is used to set a calling rule according to the gateway IP and port configuration information of the marked scene data, determine the scene data relationship called by the playback environment, and obtain the playback strategy of the marked scene data.
[0136] In a specific embodiment of the present disclosure, the first playback unit 704 further includes a first acquisition subunit 7044 , a third calling subunit 7045 and a fourteenth processing subunit 7046 .
[0137] The first acquisition subunit 7044 is used to obtain the environment information, playback level information and playback frequency information required for playback;
[0138] The third calling subunit 7045 is configured to call scene information of different levels in the scene pool according to the environment information to be replayed and the replay strategy;
[0139] The fourteenth processing sub-unit 7046 is configured to replay the environment information that needs to be replayed according to the replay level information, the replay frequency information, and scene information of different levels in the scene pool to obtain replay log information.
[0140] It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0141] Example 3
[0142] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a bank payment log playback device. The bank payment log playback device described below and the bank payment log playback method described above can refer to each other.
[0143] Figure 3 FIG. 8 is a block diagram of a bank payment log playback device 800 according to an exemplary embodiment. Figure 3As shown, the bank payment log playback device 800 may include: a processor 801 and a memory 802. The bank payment log playback device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0144] Processor 801 is used to control the overall operation of bank payment log playback device 800 to complete all or part of the steps in the aforementioned bank payment log playback method. Memory 802 is used to store various types of data to support the operation of bank payment log playback device 800. This data may include, for example, instructions for any application or method operating on bank payment log playback device 800, as well as application-related data such as contact information, sent and received messages, images, audio, and video. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or transmitted via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the bank payment log playback device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more thereof, can include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0145] In an exemplary embodiment, the bank payment log playback device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the above-mentioned bank payment log playback method.
[0146] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided. When executed by a processor, the program instructions implement the steps of the aforementioned bank payment log playback method. For example, the computer-readable storage medium may be the aforementioned memory 802 including the program instructions. The program instructions may be executed by the processor 801 of the bank payment log playback device 800 to implement the aforementioned bank payment log playback method.
[0147] Example 4
[0148] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium. The readable storage medium described below and the bank payment log playback method described above can refer to each other.
[0149] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the bank payment log playback method of the above method embodiment.
[0150] The readable storage medium may specifically be any readable storage medium that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0151] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
[0152] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A bank payment log playback method, characterized in that: include: Obtain production log information and bank payment business dictionary information; Cleaning and desensitizing the production log information in sequence to obtain desensitized data; The desensitized data is layered and summarized by scenario according to the bank payment service dictionary information to obtain summarized scenario data; Preprocessing the aggregated scene data, and replaying the preprocessed scene data according to a preset replay strategy to obtain replay log information; The production log information is cleaned and desensitized in sequence to obtain desensitized data, including: Retrieve the start and end marks of the message in the production log information; Calling the message data in the production log information according to the start flag and the end flag of the message; Classifying the message data according to preset sensitive data types into sensitive message data and normal message data; Desensitizing the sensitive message data to obtain desensitized data; The sensitive message data is divided into replacement sensitive message data and desensitized sensitive message data according to different labels; Replacing the replacement sensitive message data with preset test data to obtain replaced message data; The desensitized data is layered and summarized according to the bank payment service dictionary information to obtain summarized scenario data, including: Performing layered processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, the layered processing comprising dividing the desensitized data into at least one first-layer scenario data according to header elements in the message; dividing the at least one first-layer scenario into at least one second-layer scenario data according to the service type element in the message; dividing the at least one second-layer scenario into at least one third-layer scenario data according to a data type element in the message; Aggregated scene data is obtained by aggregating the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data.
2. The bank payment log playback method according to claim 1, characterized in that: Desensitizing the sensitive message data to obtain desensitized data includes: The desensitized sensitive message data is encrypted, numerically transformed, null-value inserted, and deleted to obtain desensitized data; The replaced message data and the desensitized data are aggregated into desensitized data, and stored in a database according to the label type in the message.
3. The bank payment log playback method according to claim 1, characterized in that: The preprocessing of the aggregated scene data includes: Labeling the aggregated scene data, and storing the labeled scene data in a scene pool; Preset the gateway IP and port configuration for the marked scene data in the scene pool to obtain the gateway IP and port configuration information of the marked scene data; The calling rules are set according to the gateway IP and port configuration information of the marked scene data, the scene data relationship called by the playback environment is determined, and the playback strategy of the marked scene data is obtained.
4. The bank payment log playback method according to claim 3, characterized in that: The pre-processed scene data is replayed according to a preset replay strategy to obtain replay log information, including: Obtain the environment information, playback level information, and playback frequency information required for playback; Calling scene information of different levels in the scene pool according to the environmental information that needs to be replayed and the replay strategy; The environmental information that needs to be replayed is replayed according to the replay level information, the replay frequency information and scene information of different levels in the scene pool to obtain replay log information.
5. A bank payment log playback device, characterized in that: include: A first acquiring unit is used to acquire production log information and bank payment service dictionary information; A first processing unit is configured to sequentially clean and desensitize the production log information to obtain desensitized data; A second processing unit is configured to perform scenario stratification and aggregation on the desensitized data according to the bank payment service dictionary information to obtain aggregated scenario data; a first playback unit, configured to pre-process the aggregated scene data and replay the pre-processed scene data according to a preset playback strategy to obtain playback log information; The device comprises: a seventh processing sub-unit, configured to perform hierarchical processing on the desensitized data according to corresponding message elements in the bank payment service dictionary information, wherein the hierarchical processing includes dividing the desensitized data into at least one first-layer scenario data according to header elements in the message; an eighth processing subunit, configured to divide the at least one first-layer scenario into at least one second-layer scenario data according to a service type element in the message; a ninth processing subunit, configured to classify the at least one second-layer scenario into at least one third-layer scenario data according to a data type element in the message; a tenth processing subunit, configured to aggregate the at least one first-layer scene data, the at least one second-layer scene data, and the at least one third-layer scene data to obtain aggregated scene data; the apparatus comprising: A first retrieving subunit, configured to retrieve a start flag and an end flag of a message in the production log information; A second calling subunit is used to call the message data in the production log information according to the start flag and the end flag of the message; a first processing subunit, configured to classify the message data according to preset sensitive data types into sensitive message data and normal message data; A second processing sub-unit is used to desensitize the sensitive message data to obtain desensitized data; a third processing subunit, configured to divide the sensitive message data into replaced sensitive message data and desensitized sensitive message data according to different labels; The fourth processing subunit is configured to replace the replacement sensitive message data with preset test data to obtain replaced message data.
6. The bank payment log playback device according to claim 5, characterized in that: The device comprises: a fifth processing subunit, configured to perform encryption processing, value transformation processing, null value insertion processing, and null value deletion processing on the desensitized sensitive message data to obtain desensitized data; The sixth processing sub-unit is used to aggregate the replaced message data and the desensitized data into desensitized data, and store them in the database according to the label type in the message.
7. The bank payment log playback device according to claim 5, characterized in that: The device comprises: an eleventh processing subunit, configured to label the aggregated scene data and store the labeled scene data into a scene pool; a twelfth processing subunit, configured to preset a gateway IP and port configuration for the marked scene data in the scene pool, and obtain gateway IP and port configuration information for the marked scene data; The thirteenth processing sub-unit is used to set a calling rule according to the gateway IP and port configuration information of the marked scene data, determine the scene data relationship called by the playback environment, and obtain the playback strategy of the marked scene data.
8. The bank payment log playback device according to claim 7, characterized in that: The pre-processed scene data is replayed according to a preset replay strategy to obtain replay log information, including: The first acquisition subunit is used to obtain the environment information, playback level information and playback frequency information required for playback; A third calling subunit is configured to call scene information of different levels in the scene pool according to the environment information to be replayed and the replay strategy; The fourteenth processing subunit is configured to replay the environmental information that needs to be replayed according to the replay level information, the replay frequency information, and scene information of different levels in the scene pool to obtain replay log information.
9. A bank payment log playback device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the bank payment log playback method as described in any one of claims 1 to 4 when executing the computer program.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the bank payment log playback method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Associated log playback method and device
CN108829802A
Log file processing method and device
CN113468613A