Interaction behavior page backtracking method and device and electronic equipment
By extracting and filtering file fragments in transaction log files, and backtracking the interaction behavior based on user identity identification, the problem of low backtracking efficiency of network transaction behavior in the prior art is solved, and the backtracking efficiency and storage and bandwidth usage of interaction behavior are improved.
Patent Information
- Application Number
- CN202411013075.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-22
AI Technical Summary
When the prior art performs backtracking of online transaction behavior pages on the user's mobile phone, there are problems such as large network bandwidth traffic, high data storage cost, and low behavioral backtracking efficiency, especially due to inefficient efficiency caused by redundant data generated by valueless behavior.
By obtaining the identity and trading time of the target user, extracting file fragments from the log files generated by the transaction server, and filtering log records matching the target user based on the identity identification, backing the interaction behavior of the target user, narrowing the data search range to improve the Backtracking efficiency.
It effectively narrows the data search range of behavior backtracking, improves the efficiency of interactive behavior backtracking of users when executing network transactions, and reduces the storage and network bandwidth requirements.
Smart Images

Figure CN119005977A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a page backtracking method for interactive behavior, a page backtracking device for interactive behavior, a computer-readable medium, an electronic device, and a computer program product. Background Art
[0002] In order to improve the security of online transactions, the transaction behavior of users on the front end of the mobile phone can be traced back. For example, at some time in the past, the user borrowed or repaid money on the front page of the mobile phone online transaction application software. At the current moment, some technical means are needed to restore the user's page operation behavior at that time.
[0003] Generally, we can collect data from the front-end page to obtain page snapshot data or user behavior log data, and then restore user behavior based on the collected data. However, when users interact with the front-end page, they will perform a large number of worthless behaviors, such as refreshing the page, scrolling the page, folding the page, etc., which will generate a large amount of redundant data. Therefore, the solution of collecting data through the front-end page has problems such as large network bandwidth flow, high data storage cost, and low behavior backtracking efficiency. Summary of the invention
[0004] The present application provides a page backtracking method for interactive behavior, a page backtracking device for interactive behavior, a computer-readable medium, an electronic device, and a computer program product, aiming to improve the backtracking efficiency of user interactive behavior.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0006] According to one aspect of an embodiment of the present application, a page backtracking method for interactive behavior is provided, the method comprising: obtaining an identity identifier and a transaction time of a target user according to transaction data of a target network transaction that needs to be backtracked, the identity identifier being used to uniquely identify a target user participating in the target network transaction, and the transaction time comprising a transaction start time and a transaction end time; obtaining a log file generated by a transaction server when executing a historical network transaction, the log file being used to record time series data of data communication between the transaction server and a transaction client; extracting a file fragment from the log file according to the transaction time, the first timestamp of the file fragment being before the transaction start time, and the last timestamp of the file fragment being after the transaction end time; screening a log record matching the target user from the file fragment according to the identity identifier, and backtracking the interactive behavior of the target user executing the target network transaction according to the log record.
[0007] According to one aspect of an embodiment of the present application, a page backtracking device for interactive behavior is provided, the device comprising:
[0008] A first acquisition module is configured to acquire the target user's identity and transaction time according to the transaction data of the target network transaction that needs to be traced back, wherein the identity is used to uniquely identify a target user who participates in the target network transaction, and the transaction time includes the transaction start time and the transaction end time;
[0009] A second acquisition module is configured to acquire a log file generated by the transaction server when executing historical network transactions, wherein the log file is used to record time series data of data communication between the transaction server and the transaction client;
[0010] an extraction module, configured to extract file fragments from the log file according to the transaction time, wherein the first timestamp of the file fragment is before the transaction start time, and the last timestamp of the file fragment is after the transaction end time;
[0011] The backtracking module is configured to filter the log records matching the target user from the file fragments according to the identity identifier, and backtrack the interactive behavior of the target user in executing the target network transaction according to the log records.
[0012] In some embodiments of the present application, based on the above technical solution, the log file includes a plurality of sub-files for storing data according to a preset time period; the extraction module includes:
[0013] An interval determination module is configured to determine the time interval in which the target network transaction occurs according to the transaction time and the time period, and obtain a target subfile corresponding to the time interval;
[0014] The file segmentation module is configured to segment the target sub-file according to the transaction time to obtain the file fragment where the target network transaction is located.
[0015] In some embodiments of the present application, based on the above technical solution, the file segmentation module includes:
[0016] A data statistics module is configured to count the transaction volume distribution data of the network transactions completed within the time interval, wherein the transaction volume distribution data is used to represent the number of network transactions completed at each time node;
[0017] A node determination module, configured to determine a file segmentation node according to the transaction volume distribution data and the transaction time;
[0018] The node segmentation module is configured to segment the target sub-file according to the file segmentation node to obtain the file fragment where the target network transaction is located.
[0019] In some embodiments of the present application, based on the above technical solution, the node determination module includes:
[0020] A first quantity statistics module is configured to obtain a first transaction quantity based on the transaction volume distribution data and the transaction start time in the transaction time, wherein the first transaction quantity is the number of network transactions completed between the starting time point of the time interval and the transaction start time;
[0021] A second quantity statistics module is configured to obtain a second transaction quantity based on the transaction volume distribution data and the transaction end time in the transaction time, wherein the second transaction quantity is the number of network transactions completed between the start time point of the time interval and the transaction end time;
[0022] The split node determination module is configured to determine a file split node according to the first transaction quantity and the second transaction quantity.
[0023] In some embodiments of the present application, based on the above technical solution, the split node determination module is also configured to: count the total number of network transactions completed within the time interval according to the transaction volume distribution data; determine the first file split node according to the ratio of the first transaction number to the total transaction number; determine the second file split node according to the ratio of the second transaction number to the total transaction number.
[0024] In some embodiments of the present application, based on the above technical solution, the backtracking module includes:
[0025] An event search module is configured to search the log records for interaction events that match the target network transaction in order from the back to the front of the time nodes, and obtain an interaction event list of the target network transaction;
[0026] The behavior backtracking module is configured to backtrack the interaction behavior of the target user in executing the target network transaction on a transaction client with a specified version according to the interaction event list.
[0027] In some embodiments of the present application, based on the above technical solution, the behavior backtracking module includes:
[0028] an interface acquisition module, configured to respectively acquire an interface identifier and an interface content corresponding to each interaction event in the interaction event list, wherein the interface identifier is used to determine the interface requested to be called when the transaction client triggers the interaction event, and the interface content is used to indicate the field content filled in the request field by the transaction client when calling the interface;
[0029] A client selection module is configured to select a transaction client with a specified version according to the triggering time of the interaction event;
[0030] An interface calling module is configured to call an interface on the transaction client with the specified version according to the interface identifier, and fill a field content in a request field of the interface according to the interface content;
[0031] The page display module is configured to sequentially display, according to the interface call result on the transaction client, interactive pages for tracing back the interactive behavior of the target user in executing the target network transaction.
[0032] In some embodiments of the present application, based on the above technical solution, the behavior backtracking module further includes:
[0033] An identifier comparison module is configured to compare, in the interaction event list, whether any two interaction events have the same interface identifier;
[0034] The event removal module is configured to remove the interaction event with an earlier triggering time from the two interaction events when two interaction events have the same interface identifier.
[0035] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the page backtracking method of the interactive behavior in the above technical solution is implemented.
[0036] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to implement a page backtracking method for interactive behavior as in the above technical solution.
[0037] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the page backtracking method of the interactive behavior in the above technical solution is implemented.
[0038] In the technical solution provided by the embodiment of the present application, through the log file generated by the transaction server when executing historical network transactions, file fragments can be extracted from the log file according to the transaction time of the network transaction, and then the log records matching the target user are screened from the file fragments according to the identity of the target user participating in the network transaction, and the interactive behavior of the target user in executing the target network transaction is traced back according to the log records. The embodiment of the present application can narrow the data search scope of the behavior backtracking by extracting file fragments, thereby improving the efficiency of tracing back the interactive behavior of the user when executing the network transaction.
[0039] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0042] Figure 2 A flow chart of a page backtracking method for interactive behavior in one embodiment of the present application is shown.
[0043] Figure 3 A flowchart of dividing a file into segments in one embodiment of the present application is shown.
[0044] Figure 4 A flow chart of backtracking interactive behaviors on a transaction client in one embodiment of the present application is shown.
[0045] Figure 5 The functional modules of data processing in an application scenario of an embodiment of the present application are shown.
[0046] Figure 6 A schematic diagram of the functional modules of the front-end page interaction backtracking part in an application scenario of an embodiment of the present application is shown.
[0047] Figure 7 The workflow of the page interaction backtracking platform in an application scenario of an embodiment of the present application is shown.
[0048] Figure 8 The structural block diagram of the page backtracking device for interactive behavior provided in an embodiment of the present application is schematically shown.
[0049] Fig. 9 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0051] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.
[0052] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0053] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0054] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0055] In the related art of the present application, the following two page backtracking schemes can be adopted.
[0056] (1) Front-end recording solution. The open source library RRWEB is used to record snapshots of the interactive pages of the front-end application and trace back the user's interactive behavior based on the page snapshots. RRWEB is a basic library for recording and replaying web pages. It can save the DOM and user operations in the page as serializable data to achieve remote playback.
[0057] (2) User behavior log solution: The front-end application reports the user behavior log through the embedding point, and traces back the user's interactive behavior based on the user behavior log.
[0058] The above two page backtracking solutions both collect data through the front-end page to obtain page snapshot data or user behavior log data.
[0059] The front-end recording solution will generate a lot of redundant data, which will cause a waste of storage space and a large number of complex DOMs to put pressure on the performance of DIFF, increasing costs; the user behavior log solution, behavior collection leads to a huge amount of behavior logs, large network bandwidth traffic, and high back-end storage log costs. At the same time, some behaviors are redundant, and worthless behaviors such as refreshing pages, scrolling pages up and down, and folding pages are meaningless for behavior backtracking; the current system often ignores the reporting of user front-end interaction information when it goes online, and this data cannot be supplemented later, making the above solution unable to backtrack early events; the existing solutions all require the front-end to make rectifications and cooperate, increase the coupling and complexity of non-critical functions of the front-end and back-end systems, and also increase maintenance costs.
[0060] It can be seen that the existing technical solutions need to be combined with the front-end. The main problems are as follows: First, through screen recording or point reporting and backtracking, it is necessary to occupy the customer's communication traffic, which is not customer-friendly; second, the reported data information is relatively large, which requires the data storage capacity of the background, and correspondingly increases the storage cost. Third, the existing solutions increase the coupling and complexity of non-critical functions between the front-end and back-end systems, which will increase the operation and maintenance costs. Finally, for existing historical events, due to the lack of front-end participation, backtracking cannot be achieved.
[0061] In view of the problems existing in the above related technologies, the embodiment of the present application proposes a design scheme based on application system log flow backtracking front-end page interaction.
[0062] Based on the interface log flow of the background application system, the user front-end interaction information is traced back, and the front-end behavior report is not required. The application system that provides the log flow needs to be the first system for the front-end to request the back-end service (to prevent the request & response data from changing when calling between multiple systems, such as the addition of fields, the field content is processed and re-assigned, resulting in distortion of the original data); the format of the interface information in the log flow is fixed, or has rules, including but not limited to request and response messages, and the original request data of the front-end can be restored in the message. The front-end page operated by the user at a certain point in time only corresponds to a front-end version, but can correspond to multiple versions of the back-end service (such as gray release). Therefore, the corresponding relationship between the back-end application system and the front-end version needs to be traceable and clearly defined. For example, through SVN, or the project engineering version information maintained on GIT, a one-to-one correspondence can be found. SVN is the abbreviation of subversion, an open source version control system that uses a branch management system for efficient management. GIT is an open source distributed version control system that can effectively and quickly handle project version management from very small to very large.
[0063] The current solution is to filter out the historical event information of a user from the log flow to perform page interaction backtracking for a specified user and a historical time point on demand. In addition, the backtracking scenario does not require high timeliness and does not require immediate results, so we do not perform structured storage of all user operation records in advance (for example, using MySQL) to avoid wasting resources.
[0064] The historical stock of application system interface log flow can also be included in the analysis and processing in the solution provided by the embodiment of the present application to support backtracking. At the same time, the embodiment of the present application proposes a method for quickly locating and retrieving target information for the archived log flow file to improve the speed of backtracking.
[0065] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0066] like Figure 1As shown, the system architecture 100 may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include various electronic devices such as smart phones, tablet computers, laptops, desktop computers, smart speakers, smart wearable devices, smart vehicle-mounted devices, and smart payment terminals. The server 130 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, such as a wired communication link or a wireless communication link.
[0067] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.
[0068] Take e-commerce platforms as an example. Thousands of transactions occur every day, involving the sale and purchase of various commodities. In order to improve user experience, monitor abnormal transaction behavior (such as fraud detection) or conduct market analysis, the platform needs to be able to trace back detailed data of specific network transactions as needed, including the identity of the users involved in the transaction and the exact time range of the transaction.
[0069] E-commerce platforms use a storage solution that combines distributed databases (such as NoSQL databases) and relational databases (such as MySQL). Transaction data (including order details, user information, transaction time, etc.) is stored in relational databases to ensure data consistency and integrity. At the same time, in order to support high-speed reading and writing, unstructured data such as user browsing history and search history is stored in NoSQL databases.
[0070] Suppose the security department of an e-commerce platform receives a report about a potentially fraudulent transaction involving a large number of unusual purchases of a specific product in a short period of time. The security department decides to backtrack these transactions to see the specific information of the transactions and the identities of the users involved in the transactions.
[0071] The security department initiates a traceback request through the internal system, specifying the product ID and the suspected transaction time range (such as the entire day of February 15, 2023). Based on the request, the system retrieves all transaction records involving the product within the specified time range from the database, and jointly queries the user information. The security department receives the traceback results and finds that multiple user accounts have purchased a large number of the same products in a short period of time, and these accounts show abnormalities in certain characteristics (such as new registration, no historical purchase records, etc.). Based on the analysis results, the security department can conduct further investigations on these accounts and may take measures such as freezing accounts and canceling orders to prevent potential losses.
[0072] The following is a detailed description of the technical solutions such as the page backtracking method for interactive behavior, the page backtracking device for interactive behavior, the computer-readable medium, the electronic device, and the computer program product provided by the present application in conjunction with the specific implementation methods.
[0073] Figure 2 FIG. 1 is a flow chart showing a page tracing method for interactive behavior in one embodiment of the present application. Figure 2 As shown, the page backtracking method of the interactive behavior includes the following steps S210 to S240.
[0074] S210: According to the transaction data of the target network transaction that needs to be traced back, the identity of the target user and the transaction time are obtained. The identity is used to uniquely identify a target user who participates in the target network transaction. The transaction time includes the transaction start time and the transaction end time.
[0075] S220: Obtaining a log file generated by the transaction server when executing historical network transactions, where the log file is used to record time series data of data communication between the transaction server and the transaction client;
[0076] S230: extracting file segments from the log file according to the transaction time, wherein the first timestamp of the file segment is before the transaction start time, and the last timestamp of the file segment is after the transaction end time;
[0077] S240: Filtering log records matching the target user from the file fragments according to the identity identifier, and tracing back the target user's interactive behavior of executing the target network transaction according to the log records.
[0078] In the technical solution provided by the embodiment of the present application, through the log file generated by the transaction server when executing historical network transactions, file fragments can be extracted from the log file according to the transaction time of the network transaction, and then the log records matching the target user are screened from the file fragments according to the identity of the target user participating in the network transaction, and the interactive behavior of the target user in executing the target network transaction is traced back according to the log records. The embodiment of the present application can narrow the data search scope of the behavior backtracking by extracting file fragments, thereby improving the efficiency of tracing back the interactive behavior of the user when executing the network transaction.
[0079] The following is a detailed description of the implementation scheme of each method step of the page backtracking method for interactive behavior in the above embodiment in combination with a specific application scenario.
[0080] In step S210, the target user's identity and transaction time are obtained according to the transaction data of the target network transaction that needs to be traced back. The identity is used to uniquely identify a target user who participates in the target network transaction. The transaction time includes the transaction start time and the transaction end time.
[0081] When a user registers an account on the online trading system, the online trading system will assign him a unique user ID (such as U123456). This ID is the user's identity and is used to uniquely identify the user in the platform database.
[0082] For example, if user Zhang San initiates a loan request at 9:28 on October 21, 2022, the corresponding identity identifier is zhangSan001, and the transaction start time is 9:28 on October 21, 2022.
[0083] In one embodiment of the present application, the transaction end time may be the time when the transaction is actually completed as recorded in the network transaction system, or the transaction end time may be predicted based on the transaction start time and the time range of the transaction process. The time range of the transaction process may be, for example, 10 minutes, and based on the known transaction start time, the transaction end time is calculated to be 9:38.
[0084] The time range of the transaction process is taken from the maximum allowed transaction time limit defined by the product. It is used to constrain the user's transaction to be completed within this limited time limit. Different versions can be defined and adjusted as needed. For example, the new version of the loan transaction has added the interaction of uploading the ID card, and the maximum operation time limit is adjusted from the original 10 minutes to 15 minutes.
[0085] In one embodiment of the present application, the time range of the transaction process can be specified by counting the time consumed by the same event type; taking the user loan process as an example, from user login to successful loan, there are interactive operations on multiple pages. The time spent by different users varies throughout the whole process. These time consumptions are comprehensively counted, and then 99% of the maximum time consumption is taken as the target value.
[0086] In step S220, a log file generated by the transaction server when executing historical network transactions is obtained. The log file is used to record time series data of data communication between the transaction server and the transaction client.
[0087] The trading server can record information during system operation in a log file. The file is usually split and named by date or file size, such as Acct_runlog_20030910_01.txt.
[0088] In one embodiment of the present application, the log file may be a log stream file (Log Stream File) generated by the operation of the transaction server. A log stream file is a file used to record various events, errors, warnings, and other information generated during the operation of a system, application, or device. These files usually record information in a sequential manner, that is, new log entries are appended to the end of the file to form a "running water" or "time series" record. This recording method makes log information easy to manage and query, especially when a problem occurs in the system, the cause of the problem and the time of occurrence can be quickly located by analyzing the log stream file.
[0089] The specific format and content of log files depend on the system or application that generates them. Common log formats include plain text format (such as Apache's access log), JSON (JavaScript Object Notation) format, XML (Extensible Markup Language) format, etc. These formats have their own advantages and disadvantages, but the common point is that they all record timestamps, log levels (such as INFO, WARN, ERROR, etc.), log messages, and possible other metadata (such as user ID, request parameters, etc.) in some way.
[0090] In order to effectively manage and utilize log flow files, log management tools or systems are usually used, such as Logstash, Fluentd, Splunk, etc. These tools can help collect, parse, store and query log data, and provide powerful log analysis and visualization functions.
[0091] In step S230, file segments are extracted from the log file according to the transaction time, the first timestamp of the file segment is before the transaction start time, and the last timestamp of the file segment is after the transaction end time.
[0092] In one embodiment of the present application, the log file includes multiple sub-files for storing data according to a preset time period. Extracting file fragments from the log file according to the transaction time may further include: determining the time interval of the target network transaction according to the transaction time and time period, and obtaining the target sub-file corresponding to the time interval; and segmenting the target sub-file according to the transaction time to obtain the file fragment of the target network transaction.
[0093] By analyzing the transaction time, the precise time interval of the target network transaction can be determined, and then the sub-files containing the transaction data can be screened out accordingly. Furthermore, these sub-files can be segmented according to the transaction time to obtain narrowed file fragments, which can improve the efficiency and accuracy of data retrieval, reduce the processing time of irrelevant data, optimize the use of storage resources, and provide a more centralized and detailed data view for regulatory analysis and auditing. This method not only speeds up the tracking and analysis process of specific transactions, but also enhances the insight into transaction behavior patterns, which helps to timely detect and prevent potential illegal or abnormal financial activities.
[0094] Figure 3 FIG. 2 shows a flowchart of dividing a file into segments in one embodiment of the present application. Figure 3 As shown, based on the above embodiment, the target sub-file is segmented according to the transaction time to obtain the file fragments where the target network transaction is located, which may include the following steps S310 to S330.
[0095] S310: Counting the transaction volume distribution data of the network transactions completed within the time interval, where the transaction volume distribution data is used to represent the number of network transactions completed at each time point;
[0096] S320: Determine the file segmentation node according to the transaction volume distribution data and the transaction time;
[0097] S330: Splitting the target sub-file according to the file splitting node to obtain the file fragment where the target network transaction is located.
[0098] In the log file, the request and response of each event received by the system are recorded, and each event corresponds to a line of content in the file. When the system runs for a long time and serves multiple users at the same time, the content recorded in the log file will be mixed with the events of the target user. Considering that the time range of the target user's operation is limited when a transaction event on a certain day is required, the content within this part of time can be intercepted from the file, and then the required event information can be processed. When intercepting the log file, if it is simply mapped into block cutting of file content size by average division of time points, the target transaction event may not be found, or more file content needs to be analyzed (there is a lot of redundant data, which is not efficient). For example, the log file used to record transaction events for 24 hours a day has a capacity of 50G. If it is evenly divided according to the capacity size, in the second part of the intercepted 25G file, the first line of event record flow contained in its content is often not registered at 12 o'clock.
[0099] The embodiment of the present application effectively reveals the density of trading activities at different time nodes by statistically analyzing the distribution data of network transaction volume completed within a specific time interval, thereby providing an intuitive view of trading activity. Using these data, it is possible to intelligently identify the key moments of peak and trough of transaction volume, and then determine the optimal file segmentation node. Based on these nodes, the system accurately segments the target sub-files and only extracts file fragments of a small number of transactions including the target transaction, which not only improves the efficiency of data retrieval, reduces unnecessary data loading and processing, but also ensures the accuracy and integrity of the data. This method optimizes the use of storage space and speeds up data analysis.
[0100] In one embodiment of the present application, a file segmentation node is determined based on transaction volume distribution data and transaction time, including: obtaining a first transaction number based on the transaction volume distribution data and the transaction start time in the transaction time, the first transaction number being the number of network transactions completed between the start time point of the time interval and the transaction start time; obtaining a second transaction number based on the transaction volume distribution data and the transaction end time in the transaction time, the second transaction number being the number of network transactions completed between the start time point of the time interval and the transaction end time; and determining a file segmentation node based on the first transaction number and the second transaction number.
[0101] The embodiment of the present application provides a refined data analysis method by accurately counting the number of transactions completed between the starting point of the time interval and the start and end times of each transaction, i.e., the first transaction number and the second transaction number. This statistics not only reveals the dynamic changes of trading activities within a specific time period, but also identifies trading peaks and key time nodes by comparing these two numbers. By using these data points as file segmentation nodes, the system can more accurately segment the file fragments containing the target transaction, thereby optimizing data management and retrieval efficiency, and helping to quickly locate and analyze trading behaviors within a specific time period.
[0102] In one embodiment of the present application, a file splitting node is determined based on a first transaction number and a second transaction number, including: counting the total number of network transactions completed within a time interval based on transaction volume distribution data; determining the first file splitting node based on a ratio of the first transaction number to the total number of transactions; and determining the second file splitting node based on a ratio of the second transaction number to the total number of transactions.
[0103] Suppose that in an online payment platform, through statistical analysis, the transaction volume distribution data within a day shows that the total number of transactions from 8 am to 8 pm is 1,000. Through further analysis, it is found that the number of transactions completed between the start time point of the time interval and the start time of the target transaction (the first transaction number) is 50, and the number of transactions completed between the start time point of the time interval and the end time of the transaction (the second transaction number) is 150. Based on these data, we calculate that the first file split node is 5% of the total number of transactions, that is, 50 transactions, and the second file split node is 15% of the total number of transactions, that is, 150 transactions. Using 5% and 15% as file split nodes, the log file is divided into three parts: the first part contains all transaction data between the start time point and the start time of the transaction, the second part contains all transaction data between the start time and the end time of the transaction, and the third part contains the remaining transaction data. This splitting method not only improves the efficiency and accuracy of data retrieval, but also can quickly locate key transaction data in a specific time period and reduce the interference of irrelevant data.
[0104] In step S240, log records matching the target user are screened from the file fragments according to the identity identifier, and the interactive behavior of the target user in executing the target network transaction is traced back according to the log records.
[0105] In one embodiment of the present application, tracing back the interactive behavior of a target user in executing a target network transaction according to log records includes: searching for interactive events matching the target network transaction in the log records in order from back to front in time nodes to obtain an interactive event list of the target network transaction; and tracing back the interactive behavior of the target user in executing the target network transaction on a transaction client with a specified version according to the interactive event list.
[0106] For example, in the log records of an e-commerce platform, all interaction events that match a specific target network transaction are searched in order from the time node to the front. For example, all user interaction behaviors can be traced back from the time the transaction ends, including clicks, inputs, selections, and other operations, until the moment the user logs into the platform. The detailed interaction event list records every step of the user's operation from login to completion of the transaction. Using this list, the system can simulate and trace back the user's complete interaction behavior of executing the target network transaction on a transaction client with the same version as the user's transaction.
[0107] Figure 4 FIG. 1 shows a flow chart of backtracking interactive behaviors on a transaction client in one embodiment of the present application. Figure 4 As shown, based on the above embodiment, the interactive behavior of the target user performing the target network transaction on the transaction client with a specified version is traced back according to the interactive event list, including the following steps S410 to S440.
[0108] S410: In the interaction event list, respectively obtain the interface identifier and interface content corresponding to each interaction event, the interface identifier is used to determine the interface requested to be called when the transaction client triggers the interaction event, and the interface content is used to indicate the field content filled in the request field by the transaction client when calling the interface;
[0109] S420: Selecting a transaction client with a specified version according to the triggering time of the interaction event;
[0110] S430: calling the interface on the transaction client with the specified version according to the interface identifier, and filling the field content in the request field of the interface according to the interface content;
[0111] S440: displaying interaction pages for tracing back the interaction behavior of the target user in executing the target network transaction in sequence according to the interface call result on the transaction client.
[0112] Taking the network security monitoring system of an online bank as an example, the embodiment of the present application can first analyze the list of interactive events generated by the user when conducting transactions. For example, when the user performs a transfer operation, the system records the interactive events such as the user clicking the "transfer" button, entering the amount, selecting the payee, and confirming the transaction. In the interactive event list, the system obtains the interface identifier (such as / api / transfer) and interface content (including the values of the request fields such as the amount and the payee account number) corresponding to each event. Then, the system selects the same version of the transaction client as the user's transaction based on the trigger time of the interactive event. Next, the system uses the interface identifier to call the corresponding interface on the version client, and fills the corresponding field content in the request field according to the interface content, simulating the user's operation process. Finally, the system displays the interactive pages in sequence according to the interface call results on the transaction client, perfectly reproducing every step of the user's interactive behavior in executing the target network transaction.
[0113] The embodiment of the present application can provide a complete transaction behavior traceback path, helping to deeply understand every detail of the transaction process. This method not only improves the transparency and accuracy of transaction monitoring, but also can more intuitively identify potential security vulnerabilities or improper behaviors by simulating user interactions, so as to take preventive or corrective measures.
[0114] In one embodiment of the present application, before selecting a transaction client with a specified version according to the trigger time of an interaction event, any two interaction events in the interaction event list can be compared to see whether they have the same interface identifier; when two interaction events have the same interface identifier, the interaction event with an earlier trigger time is removed from the two interaction events.
[0115] For the scenario where users stay on the same page and make repeated requests (for example, repeatedly changing the loan amount on the same amount input page), the backend application system will record multiple repeated calls to the same interface. For corresponding backtracking, you only need to backtrack to the same page.
[0116] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0117] The implementation scheme of the above embodiment is described in detail below in conjunction with a specific application scenario.
[0118] In an application scenario, the technical solution for tracing back the front-end page interaction based on the application system log flow includes two parts: one is the processing of the interface version and event data; the other is the implementation of page interaction tracing based on the interface data.
[0119] Figure 5 The functional modules of data processing in an application scenario of an embodiment of the present application are shown.
[0120] like Figure 5 As shown, the interface version information sorting module is responsible for establishing a corresponding relationship between the interface fields and the version information, and managing and maintaining them. The details are as follows:
[0121] 1. Process the interface version information from the project engineering file.
[0122] (1) From the submission history of the project engineering (git, svn) of the application system (starting time, can be from the first online version, or can be selected as needed to trace back to the time period), sort out the interface version information of different versions: including interface name, interface field details, interface log format, version number, version time and other fields. Later, we will filter out the content of the corresponding fields from the log file based on these interface fields. The main reason for clarifying the interface information is that the interface may change in different versions. If adjustments occur, the same interface will have different content log information. We need to correctly obtain the required information based on the interface field corresponding to the version at that time point. At the same time, the content format in the log directly affects our extraction of information from the file. It needs to be identified in advance and clearly marked: for example, the content in json format should be marked as json format and parsed according to the json string method. If it is a fixed string concatenation method, it is marked as "custom format, separator |" and then made by character splitting. For example, the format is: key1=value1|key2=value2|…|keyn=valuen. We first split the string with the separator character “|”, and then use “=” to split it. Finally, the key and value can be parsed into a MAP structure (structured).
[0123] As a supplement, in order to facilitate unified maintenance of various interfaces by version number, it is recommended to organize the full amount of interface version information for each version (even if the interface has not changed, the version number should be updated).
[0124] Taking the user loan event as an example, Table 1 shows the interface definition involved in the event.
[0125] Table 1
[0126]
[0127] The definitions of each field are as follows:
[0128] apiId: interface ID, used to distinguish different interface services, such as initiating a loan and applying for a loan.
[0129] openId: platform ID, if it is WeChat openid.
[0130] reqTime: request time.
[0131] bizSeqNo: business serial number, unique.
[0132] sysSeqNo: system serial number, which is unique.
[0133] retCode: Return result code.
[0134] retMsg: Return result description.
[0135] availableAmount: The total amount available for borrowing.
[0136] interest: annualized interest rate.
[0137] amount: loan amount.
[0138] term: the loan period.
[0139] loanPlan: loan plan.
[0140] receipt_no: receipt number.
[0141] loan_ret: loan result.
[0142] Through the change history of the front-end project engineering, the front-end version information is sorted out, including the front-end version number and effective time; then the front-end project engineering is associated with the back-end application system project engineering through the overlap of time intervals to derive the version correspondence. The application system version number is needed to match the front-end version number to generate a unique correspondence. Table 2 shows the correspondence between the version number and the time range.
[0143] Table 2
[0144] Application system version number Front-end version number Time Range V1.1 V1.2 [20220902,20220923) V1.1 V1.3 [20220923,20221013) V2.0 V2.1 [20221013,20221115)
[0145] The version correspondence relationship includes the version correspondence information of the front-end and back-end, as well as the time interval; for example, from September 2, 2022 to October 13, 2022, no version of the back-end application system was released, but two versions were updated on the front-end. The correspondence between the front-end and back-end versions needs to be recorded according to the time period.
[0146] According to different versions of the application system, the scenario types are divided, and the execution order of all interfaces in the scenario is defined, and the terminal interfaces in the process are marked. Table 3 shows the interface data of the loan scenario as an example.
[0147] Table 3
[0148] Scenario Interface Name Process sequence number Whether terminal interface Version Number loan User login 1 no V1.1 loan Start a loan 2 no V1.1 loan Loan Application 3 no V1.1 loan Password Authentication 4 no V1.1 loan SMS code verification 5 no V1.1 loan IOU & Contract Confirmation 6 no V1.1 loan Face ID 7 no V1.1 loan Loan Results 8 yes V1.1
[0149] Continue to refer Figure 5 As shown in the figure, in the event data screening and storage module, the target user data is first screened from the log file, and then the front-end version information is matched and registered in the database. The subsequent page backtracking platform will directly use this data to backtrack the user's front-end interactive behavior.
[0150] The log flow records of events are sequential and are registered in the order in which the events occurred. Based on this premise, we obtain the target data we need from the archived files: according to the time point when the event occurred, we cut the files, extract part of the file content, and then perform data analysis operations to achieve efficient data screening.
[0151] For example, log files are archived daily, assuming that the size is about 50 GB per day. The target user transaction data to be retrieved occurred at 9:28 on October 21, 2022. Below, we will describe how to select a valid cut point for the file:
[0152] The log file records the request and response of every event received by our system, and each event corresponds to a line of content in the file. When our system runs for a long time and serves multiple users at the same time, the content recorded in the log file will be mixed with the events of our target users. Considering that the time range of the target user's operation is limited when we need the transaction event of a certain day, we can extract the content within this time from the file and then process the event information we need. When extracting log files, if we simply map the file content size into blocks by averaging the time points, we may not find the target transaction event, or need to analyze more file content (there is a lot of redundant data, which is not efficient); for example, if a 50G log file is averaged, the second part of the 25G file extracted contains the first line of event record flow, and its registration time is often not 12 o'clock.
[0153] Count the total number of request events on October 21, 2022, total, and the number of requests from 0:00 to 9:28, part-a, and then calculate the ratio point1 = part-a / total. This point1 is the corresponding file cutting point.
[0154] If the historical request event data details for the day are missing, for example, the traffic curve for the historical request event for the day is missing, you can refer to the current traffic data for analogy. The time when the request event occurs every day and the data volume statistics have similar traffic curve patterns. The traffic curve here is the number of event requests recorded at a point in time. If there are many requests at a certain moment, the printed log content will increase accordingly. At the same time, the influencing factors need to be considered: 1. Marketing activities, 2. Holidays, 3. Process adjustments (affecting the cutting interval). Assuming that there are marketing activities on the historical day, you can select the traffic data of some recent marketing activities for analogy, and match the start time of the activity, the number of users, the delivery channel and other factors to select the closest analog data.
[0155] For example, at 10:00 on May 1, 2022, a loan promotion activity was launched, which brought 30% more user requests than usual. The traffic curve showed a sudden increase, and the corresponding log printing increased accordingly. After 11:00, the traffic gradually decreased. During the period from 10:00 to 11:00, the traffic curve was very different from the data of yesterday or the same period last week. If you still directly refer to the daily traffic curve of the same period for processing, the results will be greatly deviated.
[0156] Combined with the time range of the transaction process, such as 10 minutes (the time here is taken from the maximum allowed transaction time limit defined by the product, which is used to constrain the user's transaction to be completed within this limited time limit. Different versions can be defined and adjusted as needed. For example, the new version of the loan transaction has added the interaction of uploading the ID card, so the maximum operation time limit is adjusted from the original 10 minutes to 15 minutes), and the end time point is calculated on the transaction time point known in the query premise: 9:38. Using the method of step 2 above, count the number of request events part-b at this time point, and formulate the second cutting point point2 = part-b / total.
[0157] Using the maximum allowed transaction time limit as the time range for interception is a relatively simple and crude method. When intercepting the file content, there will still be additional redundant information, because most transactions can actually be completed before the end of the transaction time limit. Therefore, this time range can also be formulated by counting the time consumed by the same event type; taking the user loan process as an example, from user login to successful loan, through multiple pages of interactive operations, the time spent by different users varies throughout the process. Comprehensively count these time consumptions, and then take 99% of the maximum time consumption as the target value.
[0158] For the log file, extract part of the file from point 1 to point 2, and then continue to analyze the log flow data. Let me make it clear here: the content recorded in the log file corresponds to the request event one by one, and is registered in order according to the time when the event occurs. When the number of requests increases at a certain point in time, the number of records written to the log file also increases accordingly. The content of the message recorded at this point in time accounts for a correspondingly larger proportion of the entire file content space. In general, there is a direct relationship between the number of requests at a certain point in time and the amount of event content recorded in the log flow, and the relationship is linear.
[0159] The intercepted file content can be processed into standardized valid data.
[0160] First, filter out the target user's data from the log flow, and match the interface version information of the application system according to the time it was generated. Then, get the key fields and data format of the interface from the corresponding interface version, and then perform structured analysis according to its keywords (such as json, or a string of special characters, such as the "|" separator). The results include but are not limited to: interface name, date, serial number (a unique identifier used to connect the transaction process), user unique identifier, such as ID card ID, or card number, terminal information (such as model, operating system, etc.), front-end version number (optional), front-end request original message, and response original message.
[0161] For example, user Zhang San made a successful loan at 9:28 on October 21, 2022, and the corresponding platform ID is: zhangSan001.
[0162] Based on this information, first filter out all records with platform ID = zhangSan001 from the logs intercepted in the above steps. By executing the intercepted file method, the file location of the user transaction event can be locked in advance, avoiding full-text search and reducing high resource requirements. At the same time, according to the date of October 21, 2022, the definition of the interface information is obtained from the version interface table, and then the record is parsed as structured data according to the definition of the data format. For example, the log content of an interface is a json string:
[0163] {"apiId":"Initiate loan","openId":"zhangSan001","reqTime":"2022-10-2109:25:34","bizSeqNo":"2210210FF03998723488865423817618",
[0164] "sysSeqNo":"22102115Z07760000000000041732504","
[0165] txnRefNo":"9S0240206D0022267200000001626910","callBackInfo":null,"txnStatus":"F","txnStatusDesc":"ALL_FAILED"}
[0166] Parse the above log content in json format to get the following information:
[0167] "apiId":"Initiate a loan",
[0168] "openId":"zhangSan001",
[0169] "bizSeqNo":"2210210FF03998723488865423817618",
[0170] "sysSeqNo":"22102115Z07760000000000041732504".
[0171] The obtained data is then pre-marked with the scenarios and process terminal interfaces in "Historical interface version information arrangement" (Table 3), combined with the user unique identifier in the log interface flow information processed in the above steps, starting from the terminal interface, and searching for all interface flow information in the same scenario from back to front. This reverse method can effectively eliminate invalid data of unfinished processes, and at the same time quickly select target user data to improve the speed of data screening. For the filtered data, we will assign an event ID to the user's event in the format of date (yyyyMMddhhmm) + scenario type (01: account opening, 02: loan, etc.) + user unique ID; through this event ID, the interfaces of cross-day operations are connected in series, and stored in the archive date of the day according to the time point of the scenario. The event ID is used as the unique index ID for the front-end interactive backtracking linkage later.
[0172] When filtering interface data, the front-end version number is matched by matching the interface field name and version time, and is registered in the interface information record. The matching rule may be, for example, matching the application system version number (i.e., the transaction server version number) according to the interface field and occurrence time, and then matching the H5 front-end version number (i.e., the transaction client version number) according to the application system version number.
[0173] Figure 6 A schematic diagram of the functional modules of the front-end page interaction backtracking part in an application scenario of an embodiment of the present application is shown.
[0174] like Figure 6As shown, the front-end page interaction backtracking part includes two functional modules. One module is the backtracking interface information screening, which retrieves event information at a time point through user information entered into the platform; the other module is the backtracking operation, which selects the corresponding front-end version for the retrieved event information and restores the page interaction according to the interface execution order.
[0175] In the backtracking interface information filtering module, on the backtracking platform, enter the user ID and time date to be backtracked, and then query the interface data information processed by the previous process through the user ID and date: Interface data information (including request and response result data): The filtered interface data is classified by scenario, and are all assigned to event IDs and associated with the front-end version number.
[0176] Continuing with the example of Zhang San's borrowing event that occurred at 9:28 on October 21, 2022, Table 4 shows the corresponding list of interaction events.
[0177] Table 4
[0178]
[0179] Based on the interaction event list, you can further query to obtain the user-related event ID, and the front-end version information will be returned to the backtracking platform for the next step of interaction backtracking event operations.
[0180] In the function module of historical page display & interactive event backtracking, according to the event ID obtained in the previous step, you can select the scene event ID and its associated front-end version number as needed. Then initiate a request from the screened front-end version simulator, and read the interface data in sequence to restore the front-end page. For example: the front-end version V2.1 on October 21, 2022, the terminal andriod3.0, the borrowing scenario of user Zhang San, first read the user login interface data information numbered 1, and display the personal information page. Then continue to call the interface data numbered 2 to display the borrowing initiation page, and continue in this order until the interface call of this borrowing scenario is completed. The front-end interactive page will restore the interactive behavior at that time in the order of the numbered interfaces.
[0181] Figure 7 The workflow of the page interaction backtracking platform in an application scenario of an embodiment of the present application is shown.
[0182] Based on the introduction of the above application scenarios, it can be seen that the solution of the embodiment of the present application based on the log flow backtracking front-end interactive behavior is more applicable to a wider range of scenarios and more flexible than other solutions. At the same time, as a bypass execution implementation solution, it does not require the original system to be modified, and achieves functional decoupling.
[0183] The following introduces an apparatus embodiment of the present application, which can be used to execute a page backtracking method for interactive behaviors in the above-mentioned embodiments of the present application. Figure 8 The structure block diagram of the page backtracking device for interactive behavior provided by the embodiment of the present application is schematically shown. Figure 8 As shown, the interactive page backtracking device 800 includes:
[0184] The first acquisition module 810 is configured to acquire the target user's identity and transaction time according to the transaction data of the target network transaction that needs to be traced back, wherein the identity is used to uniquely identify a target user who participates in the target network transaction, and the transaction time includes the transaction start time and the transaction end time;
[0185] The second acquisition module 820 is configured to acquire a log file generated by the transaction server when executing historical network transactions, wherein the log file is used to record time series data of data communication between the transaction server and the transaction client;
[0186] The extraction module 830 is configured to extract a file segment from the log file according to the transaction time, wherein the first timestamp of the file segment is before the transaction start time, and the last timestamp of the file segment is after the transaction end time;
[0187] The backtracking module 840 is configured to filter the log records matching the target user from the file fragments according to the identity identifier, and backtrack the interactive behavior of the target user in executing the target network transaction according to the log records.
[0188] In some embodiments of the present application, based on the above technical solution, the log file includes a plurality of sub-files for storing data according to a preset time period; the extraction module includes:
[0189] An interval determination module is configured to determine the time interval in which the target network transaction occurs according to the transaction time and the time period, and obtain a target subfile corresponding to the time interval;
[0190] The file segmentation module is configured to segment the target sub-file according to the transaction time to obtain the file fragment where the target network transaction is located.
[0191] In some embodiments of the present application, based on the above technical solution, the file segmentation module includes:
[0192] A data statistics module is configured to count the transaction volume distribution data of the network transactions completed within the time interval, wherein the transaction volume distribution data is used to represent the number of network transactions completed at each time node;
[0193] A node determination module, configured to determine a file segmentation node according to the transaction volume distribution data and the transaction time;
[0194] The node segmentation module is configured to segment the target sub-file according to the file segmentation node to obtain the file fragment where the target network transaction is located.
[0195] In some embodiments of the present application, based on the above technical solution, the node determination module includes:
[0196] A first quantity statistics module is configured to obtain a first transaction quantity based on the transaction volume distribution data and the transaction start time in the transaction time, wherein the first transaction quantity is the number of network transactions completed between the starting time point of the time interval and the transaction start time;
[0197] A second quantity statistics module is configured to obtain a second transaction quantity based on the transaction volume distribution data and the transaction end time in the transaction time, wherein the second transaction quantity is the number of network transactions completed between the start time point of the time interval and the transaction end time;
[0198] The split node determination module is configured to determine a file split node according to the first transaction quantity and the second transaction quantity.
[0199] In some embodiments of the present application, based on the above technical solution, the split node determination module is also configured to: count the total number of network transactions completed within the time interval according to the transaction volume distribution data; determine the first file split node according to the ratio of the first transaction number to the total transaction number; determine the second file split node according to the ratio of the second transaction number to the total transaction number.
[0200] In some embodiments of the present application, based on the above technical solution, the backtracking module includes:
[0201] An event search module is configured to search the log records for interaction events that match the target network transaction in order from the back to the front of the time nodes, and obtain an interaction event list of the target network transaction;
[0202] The behavior backtracking module is configured to backtrack the interaction behavior of the target user in executing the target network transaction on a transaction client with a specified version according to the interaction event list.
[0203] In some embodiments of the present application, based on the above technical solution, the behavior backtracking module includes:
[0204] an interface acquisition module, configured to respectively acquire an interface identifier and an interface content corresponding to each interaction event in the interaction event list, wherein the interface identifier is used to determine the interface requested to be called when the transaction client triggers the interaction event, and the interface content is used to indicate the field content filled in the request field by the transaction client when calling the interface;
[0205] A client selection module is configured to select a transaction client with a specified version according to the triggering time of the interaction event;
[0206] An interface calling module is configured to call an interface on the transaction client with the specified version according to the interface identifier, and fill a field content in a request field of the interface according to the interface content;
[0207] The page display module is configured to sequentially display, according to the interface call result on the transaction client, interactive pages for tracing back the interactive behavior of the target user in executing the target network transaction.
[0208] In some embodiments of the present application, based on the above technical solution, the behavior backtracking module further includes:
[0209] An identifier comparison module is configured to compare, in the interaction event list, whether any two interaction events have the same interface identifier;
[0210] The event removal module is configured to remove the interaction event with an earlier triggering time from the two interaction events when two interaction events have the same interface identifier.
[0211] The specific details of the page backtracking device for interactive behavior provided in each embodiment of the present application have been described in detail in the corresponding method embodiment and will not be repeated here.
[0212] Fig. 9 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0213] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0214] like Fig. 9As shown, the computer system 900 includes a central processing unit 901 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 902 (ROM) or the program loaded from the storage part 908 to the random access memory 903 (RAM). Various programs and data required for system operation are also stored in the random access memory 903. The central processing unit 901, the read-only memory 902 and the random access memory 903 are connected to each other through a bus 904. An input / output interface 905 (Input / Output interface, i.e., I / O interface) is also connected to the bus 904.
[0215] The following components are connected to the input / output interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.
[0216] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processor 901, various functions defined in the system of the present application are executed.
[0217] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0218] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0219] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0220] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0221] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0222] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A page backtracking method for interactive behavior, characterized in that: include: Obtain the target user's identity and transaction time based on the transaction data of the target network transaction that needs to be traced back. The identity is used to uniquely identify a target user who participated in the target network transaction. The transaction time includes the transaction start time and transaction end time. Obtaining a log file generated by the transaction server when executing historical network transactions, wherein the log file is used to record time series data of data communication between the transaction server and the transaction client; Extracting file segments from the log file according to the transaction time, wherein the first timestamp of the file segment is before the start time of the transaction and the last timestamp of the file segment is after the end time of the transaction; Log records matching the target user are screened from the file fragments according to the identity identifier, and interactive behaviors of the target user in executing the target network transaction are traced back according to the log records.
2. The page tracing method for interactive behavior according to claim 1, characterized in that: The log file includes multiple sub-files for storing data according to a preset time period; extracting file fragments from the log file according to the transaction time includes: Determining a time interval of the target network transaction according to the transaction time and the time period, and obtaining a target subfile corresponding to the time interval; The target sub-file is segmented according to the transaction time to obtain the file fragment where the target network transaction is located.
3. The page tracing method for interactive behavior according to claim 2, characterized in that: The target sub-file is segmented according to the transaction time to obtain the file segments where the target network transaction is located, including: Collecting transaction volume distribution data of network transactions completed within the time interval, wherein the transaction volume distribution data is used to represent the number of network transactions completed at each time point; Determining a file splitting node according to the transaction volume distribution data and the transaction time; The target sub-file is segmented according to the file segmentation node to obtain the file fragment where the target network transaction is located.
4. The page tracing method for interactive behavior according to claim 3, characterized in that: Determining a file splitting node according to the transaction volume distribution data and the transaction time includes: Obtaining a first transaction quantity based on the transaction volume distribution data and the transaction start time in the transaction time, where the first transaction quantity is the number of network transactions completed between the start time point of the time interval and the transaction start time; Obtaining a second transaction quantity based on the transaction volume distribution data and the transaction end time in the transaction time, where the second transaction quantity is the number of network transactions completed between the start time point of the time interval and the transaction end time; A file splitting node is determined according to the first transaction quantity and the second transaction quantity.
5. The page tracing method of interactive behavior according to claim 4, characterized in that: Determining a file splitting node according to the first transaction quantity and the second transaction quantity includes: Counting the total number of network transactions completed within the time interval based on the transaction volume distribution data; determining a first file splitting node according to a ratio of the first transaction quantity to the total transaction quantity; A second file splitting node is determined according to a ratio of the second transaction quantity to the total transaction quantity.
6. The page tracing method for interactive behavior according to any one of claims 1 to 5, characterized in that: Tracing back the target user's interactive behavior of executing the target network transaction according to the log record includes: Searching the log records for interaction events that match the target network transaction in order of time nodes from back to front, to obtain an interaction event list of the target network transaction; The interactive behavior of the target user in executing the target network transaction is traced back on a transaction client having a specified version according to the interactive event list.
7. The page tracing method for interactive behavior according to claim 6, characterized in that: Tracing back the target user's interactive behavior of executing the target network transaction on a transaction client having a specified version according to the interactive event list includes: In the interaction event list, the interface identifier and interface content corresponding to each interaction event are respectively obtained. The interface identifier is used to determine the interface requested to be called when the transaction client triggers the interaction event. The interface content is used to indicate the field content filled in the request field by the transaction client when calling the interface. Selecting a transaction client with a specified version according to the triggering time of the interaction event; Calling an interface on the transaction client with the specified version according to the interface identifier, and filling a request field of the interface with field content according to the interface content; Interaction pages for tracing back the target user's interaction behavior in executing the target network transaction are displayed in sequence according to the interface call result on the transaction client.
8. The page tracing method for interactive behavior according to claim 7, characterized in that: Before selecting a transaction client with a specified version according to the triggering time of the interaction event, the method further includes: In the interaction event list, comparing whether any two interaction events have the same interface identifier; When two interaction events have the same interface identifier, the interaction event with the earlier triggering time is removed from the two interaction events.
9. A page backtracking device for interactive behavior, characterized in that: include: A first acquisition module is configured to retrieve transaction data of a target network transaction as needed to obtain a target user's identity and transaction time, wherein the identity is used to uniquely identify a target user who participated in the target network transaction, and the transaction time includes a transaction start time and a transaction end time; a second acquisition module configured to acquire a log file generated by the transaction server when executing historical network transactions, wherein the log file is used to record time series data of data communication between the transaction server and the transaction client; an extraction module configured to extract file segments from the log file according to the transaction time, wherein the first timestamp of the file segment is before the start time of the transaction and the last timestamp of the file segment is after the end time of the transaction; The backtracking module is configured to filter log records matching the target user from the file fragments according to the identity identifier, and backtrack the target user's interactive behavior in executing the target network transaction according to the log records.
10. An electronic device, characterized in that: include: processor; and a memory for storing executable instructions for the processor; The processor is configured to execute the executable instructions to implement the method according to any one of claims 1 to 8.
