Log data processing method and device, terminal and computer readable storage medium
By performing radix mapping and time merging on the target raw log, the problem of the target raw log occupying a large amount of disk space is solved, and effective storage space saving is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HONGTENG INTELLIGENT TECH CO LTD
- Filing Date
- 2024-11-05
- Publication Date
- 2026-05-08
AI Technical Summary
The raw logs of targets that change significantly over a long period of time require a large amount of disk space to store.
By obtaining the target original log and its log operation type generated by the target object, the target stored log is determined, and the operation time information is processed by radix mapping. Time merging processing is performed using the time merging code in the target stored log to store the log information of the target original log.
It effectively saves disk storage space and solves the problem of the target raw log storage occupying a large amount of disk space.
Smart Images

Figure CN121996629A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a log data processing method, apparatus, terminal, and computer-readable storage medium. Background Technology
[0002] With the rapid development of computer technology, applications on the terminal generate a large number of specific target raw logs during operation. The target raw data of the same category are basically the same except for the time dimension. However, storing a large number of target raw logs often takes up a lot of disk space. Summary of the Invention
[0003] This application provides a log data processing method, apparatus, terminal, and computer-readable storage medium, which can solve the technical problem that storing target raw logs that vary a lot over a long period of time often requires a large amount of disk space.
[0004] In a first aspect, embodiments of this application provide a log data processing method, the method comprising:
[0005] Obtain the target raw log generated by the target object and the log operation type of the target raw log;
[0006] Determine the target storage log that is associated with the target object and the log operation type, obtain the operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain time data to be merged;
[0007] The time-merging encoding in the target storage log is used to perform time-merging processing on the time-to-merge data in order to store the log information of the target original log.
[0008] Optionally, the step of performing target base mapping processing on the operation time information to obtain time-to-be-merged data includes:
[0009] The year, month, and date information are determined based on the operation time information;
[0010] The year information is processed by a first-ary mapping to obtain year information data to be merged; the month information is processed by a second-ary mapping to obtain month information data to be merged; the date information is processed by a third-ary mapping to obtain date information data to be merged.
[0011] The year information data to be merged, the month information data to be merged, and the date information data to be merged are concatenated to obtain the time data to be merged.
[0012] Optionally, the step of performing a first-base mapping process on the year information to obtain year information to be merged includes:
[0013] A 4×N-bit first binary code is determined. The first binary code is then processed by encoding separation according to the encoding order to obtain four binary code segments ordered sequentially in the first binary code. Wherein, N is a positive integer greater than or equal to 9, the total number of bits in the binary code segment is N, and the code on each bit in the binary code segment is 0.
[0014] Determine the four year bit information that are sequentially ordered in the year information, and determine the matching binary code segments and year bit information based on the sorting order of the binary code segments and the sorting order of the year bit information;
[0015] Based on the numerical value of the year bit information, the first target encoding position is determined, and the encoding of the first target encoding position in the binary encoding segment matched with the year bit information is assigned a value of 1. The year information data to be merged is determined using each binary encoding segment after the assignment.
[0016] Optionally, the step of performing binary mapping processing on the monthly information to obtain the monthly information to be merged data includes:
[0017] Determine an M-bit second binary code; wherein M is a positive integer greater than or equal to 12, and the code on each bit of the second binary code is 0;
[0018] Based on the numerical value of the monthly information, the second target encoding position is determined, and the encoding of the second target encoding position in the second binary code is assigned a value of 1. The monthly information data to be merged is determined using the assigned second binary code.
[0019] Optionally, the date information is subjected to ternary mapping processing to obtain date information to be merged data, including:
[0020] Obtain the total number of days in the month corresponding to the monthly information, determine the target value corresponding to the total number of days in the month, and generate a third binary code for the target value, wherein the code on each bit of the third binary code is 0;
[0021] The third target encoding position is determined based on the numerical value of the date information. The encoding of the third target encoding position in the third binary encoding is assigned a value of 1. The date information to be merged is determined using the assigned third binary encoding.
[0022] Optionally, the step of using the time merge encoding in the target storage log to perform time merging processing on the time-to-merge data includes:
[0023] The time-merged encoding in the target storage log is converted to binary to obtain the time-merged binary encoding.
[0024] Based on the time data to be merged, the time merging binary code is updated to obtain the target time merging binary code.
[0025] The target time-merged binary code is converted to decimal to obtain the target time-merged decimal code, which is then used as the time-merged code.
[0026] Optionally, the time-merged binary encoding includes year information merged encoding segments, month information merged encoding segments, date information merged encoding segments, and associated information merged encoding segments; the step of updating the time-merged binary encoding based on the time data to be merged to obtain the target time-merged binary encoding includes:
[0027] Based on the year information to be merged data, determine the first coding position in the year information merging coding segment, and update the coding of the first coding position; based on the month information to be merged data, determine the second coding position in the month information merging coding segment, and update the coding of the second coding position; based on the date information to be merged data, determine the third coding position in the date information merging coding segment, and update the coding of the third coding position.
[0028] Encoding position association processing is performed on the first encoding position, the second encoding position, and the third encoding position to obtain encoding position association information. The association information is then updated and the encoding segments are merged based on the encoding position association information.
[0029] The target time merged binary code is determined based on the updated year information merged code segment, month information merged code segment, date information merged code segment, and associated information merged code segment.
[0030] Optionally, the method further includes:
[0031] Determine the information query instruction for the target stored log, and obtain the reference operation time information corresponding to the information query instruction;
[0032] The reference operation time information is matched based on the target storage log. If the matching result is a failure, the information query instruction fails; if the matching result is a success, the information query instruction succeeds.
[0033] Secondly, embodiments of this application provide a log data processing apparatus, the apparatus comprising:
[0034] The acquisition module is adapted to acquire the target raw log generated by the target object and the log operation type of the target raw log;
[0035] The determination module is adapted to determine the target storage log that is commonly associated with the target object and the log operation type, obtain operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain time-to-be-merged data;
[0036] The storage module is adapted to perform time merging processing on the time-to-merge data using the time merging encoding in the target storage log, so as to store the log information of the target original log.
[0037] Thirdly, embodiments of this application provide a terminal, the terminal comprising:
[0038] Processor; and
[0039] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the method according to any one of the preceding descriptions.
[0040] Fourthly, embodiments of this application provide a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, which, when executed by a processor, implement the method described in any one of the above-described methods.
[0041] The beneficial effects of the technical solution provided in this application include at least the following: by obtaining the target original log generated by the target object and the log operation type of the target original log, the target storage log associated with the target original log is determined, that is, the target storage log that is jointly associated with the target object and the log operation type. Then, the operation time information is obtained from the target original log, and the operation time information is processed by target base mapping to obtain the time data to be merged. Since the target object and the target original log are the same, the time merging code in the target storage log is used to perform time merging processing on the time data to be merged, which actually realizes the merging and storage of the target original log by the target storage log, thereby avoiding each operation time information corresponding to a target original log, effectively saving disk storage space, and solving the technical problem that storing a large number of target original logs with changes in a large time dimension often occupies a large amount of disk space. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 An exemplary system architecture diagram of a log data processing method provided in this application embodiment;
[0044] Figure 2 A flowchart illustrating a log data processing method provided in an embodiment of this application;
[0045] Figure 3 This application provides a flowchart illustrating a process for determining time-bound data to be merged.
[0046] Figure 4 This application provides a schematic diagram of a process for determining annual information data to be merged in an embodiment of the present application.
[0047] Figure 5 This application provides a schematic diagram of a process for determining monthly information data to be merged, as illustrated in an embodiment of the present application.
[0048] Figure 6 This application provides a schematic diagram of a process for determining date information to be merged in an embodiment of the present application.
[0049] Figure 7 This application provides a schematic diagram of a time merging process according to an embodiment of the present application.
[0050] Figure 8 A flowchart illustrating the process of determining a target time-merged binary code, provided for an embodiment of this application;
[0051] Figure 9 This is a schematic diagram of the structure of a log data processing device provided in an embodiment of this application;
[0052] Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0053] To make the features and advantages of the embodiments of this application more apparent and understandable, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the embodiments of this application.
[0054] In related technologies, it is often necessary to rely on application-generated statistical reports to monitor the application's operation and status. When performing data statistics, it is usually necessary to traverse this data to perform deduplication and aggregation operations to obtain the final statistical results. The data source for these reports is specific target raw logs generated by the application. These specific target raw logs are typically large in volume and uniformly formatted. Target raw data of the same category are essentially identical except for variations in the time dimension. Examples include browser client device login logs (only one log entry is retained for the first login per day) and user behavior operation logs; aside from differences in the time the logs are generated, the content is basically the same. Their storage often consumes a significant amount of disk or database space.
[0055] To address the technical problems existing in related technologies, this application provides a log data processing method. This method first obtains the target original log generated by the target object and the log operation type of the target original log. Then, it determines the target storage log that is jointly associated with the target object and the log operation type, obtains the operation time information from the target original log, and performs target base mapping processing on the operation time information to obtain time-merged data. Finally, it uses the time merging encoding in the target storage log to perform time merging processing on the time-merged data to store the log information of the target original log. This solves the technical problem that storing a large number of target original logs with variations in the time dimension often occupies a large amount of disk space.
[0056] Please see Figure 1 , Figure 1 This is an exemplary system architecture diagram of a log data processing method provided in an embodiment of this application.
[0057] like Figure 1As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 serves as the medium for providing a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.
[0058] Terminal 101 can interact with server 103 via network 102 to receive messages from or send messages to server 103. Alternatively, terminal 101 can interact with server 103 via network 102 to receive messages or data sent to server 103 by other users. Terminal 101 can be hardware or software. When terminal 101 is hardware, it can be various terminals, including but not limited to smartwatches, smartphones, tablets, laptops, and desktop computers. When terminal 101 is software, it can be installed in the terminals listed above, and can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0059] Server 103 can be a business server providing various services. It should be noted that server 103 can be either hardware or software. When server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 103 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0060] In this embodiment, terminal 101 can obtain the target original log generated by the target object and the log operation type of the target original log; then, determine the target storage log that is jointly associated with the target object and the log operation type, obtain the operation time information from the target original log, perform target base mapping processing on the operation time information to obtain time data to be merged; finally, use the time merging code in the target storage log to perform time merging processing on the time data to be merged in order to store the log information of the target original log.
[0061] It should be understood that Figure 1 The number of terminals, networks, and servers shown is merely illustrative; any number of terminals, networks, and servers can be used as needed. Of course, the system architecture provided in this application may not include servers; that is, servers are optional in the system architecture provided in this application.
[0062] Please see Figure 2 , Figure 2 This is a flowchart illustrating a log data processing method provided in an embodiment of this application. The execution entity in this embodiment can be a terminal executing the log data processing method, a processor within the terminal executing the log data processing method, or a log data processing service within the terminal executing the log data processing method. For ease of description, the following example uses a processor within the terminal as the execution entity to illustrate the specific execution process of the log data processing method.
[0063] like Figure 2 As shown, log data processing methods include:
[0064] S202: Obtain the target raw log generated by the target object and the log operation type of the target raw log.
[0065] The target raw log records information about the target operations corresponding to the target object in the time dimension. Target objects include, but are not limited to, software applications and hardware devices. The target operations corresponding to the target object can be operations for which only the first execution time of each day is retained. For example, when calculating login days, the first login time of each day can be recorded in the target raw log, and then the statistics can be performed using the target raw log. Similarly, when calculating system startup days, the first system startup time of each day can be recorded in the target raw log, and then the statistics can be performed using the target raw log. The log operation type in the target raw log can be understood as the operation type of the target operation recorded in the target raw log, such as login type, system startup type, etc.
[0066] After generating the target raw log for the target object, the target raw log is retrieved. Once the target raw log is determined, the target operations within it are obtained. Then, the target operations in the target raw log are queried in the target operation-log operation type mapping database to determine the log operation type of the target raw log. Alternatively, the target raw log can be input into a log operation type determination model, and model processing can be performed on the target raw log based on the log operation type determination model to output the log operation type of the target raw log.
[0067] S204: Determine the target storage log that is associated with both the target object and the log operation type, obtain the operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain the time data to be merged.
[0068] Specifically, the target storage log is used to store log information from the target original log it is associated with. More specifically, the target storage log stores operation time information from the target original log it is associated with.
[0069] The related target raw logs and target stored logs are associated with the same target object and log operation type. For example, the target object information and log operation type are the same in the related target raw logs and target stored logs. The target object information includes, but is not limited to, device ID (identity document), operating system, device version, etc., and the log operation type is such as login type, boot type, etc. For example, the device ID can be 9cf7bc42; the operating system can be Win10,64; and the device version can be V13.1.2001.1.
[0070] Therefore, the target storage log associated with the target original log can be found from the log storage database based on the target object and log operation type corresponding to the target original log. After determining the target storage log, the operation time information in the target original log is read. After obtaining the operation time information, the operation time information is processed by target radix mapping to obtain the time data to be merged. Here, the target radix mapping is not a simple binary conversion, but is used to map the operation time information to the corresponding binary code based on preset rules, thereby obtaining the time data to be merged in binary code representation.
[0071] For example, a mapping function can be constructed based on preset rules, and then the operation time information can be input into the mapping function. The mapping function can be used to perform calculations on the operation time information, and then output the time data to be merged in binary encoding.
[0072] S206: Use the time merge encoding in the target storage log to perform time merge processing on the time-to-merge data in order to store the log information of the target original log.
[0073] Among them, after determining the time data to be merged, the time merging code in the target storage log is determined. The time merging code records one or more operation time information.
[0074] The time-merged encoding in the target storage log is converted to binary to obtain the time-merged binary encoding. Then, the time-merged binary encoding is used to merge the time data to be merged. After the time-merged binary encoding and the time data to be merged are merged, the target time-merged binary encoding is obtained. The target time-merged binary encoding is converted to decimal to obtain the target time-merged decimal encoding. Finally, the target time-merged decimal encoding is used as the time-merged encoding in the target storage log, thereby realizing the storage of log information in the target original log by the target storage log.
[0075] In the embodiments provided in this application, the target original log generated by the target object and the log operation type of the target original log are obtained to determine the target storage log associated with the target original log, that is, the target storage log that is jointly associated with the target object and the log operation type. Then, the operation time information is obtained from the target original log, and the operation time information is processed by target base mapping to obtain the time data to be merged. Since the target object and the target original log are the same, the time merging code in the target storage log is used to perform time merging processing on the time data to be merged. This actually realizes the merging and storage of the target original log by the target storage log, thereby avoiding each operation time information corresponding to a target original log, effectively saving disk storage space, and solving the technical problem that storing a large number of target original logs with changes in a large time dimension often occupies a large amount of disk space.
[0076] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating a process for determining time-bound data to be merged, as provided in an embodiment of this application. Figure 3 As shown, in S204, the operation time information is processed by target base mapping to obtain time data to be merged, including:
[0077] S302: Determine year, month, and date information based on operation time information.
[0078] The operation time information includes year, month, and date information. The year information is used to record the Gregorian calendar year corresponding to the target operation, such as 2023; the month information is used to record the month information corresponding to the target operation, such as December; and the date information is used to record the date within the corresponding month, such as the 21st.
[0079] S304: Perform first-ary mapping processing on the year information to obtain the year information data to be merged.
[0080] Specifically, the year information is processed using a first-ary mapping according to the corresponding mapping rules to generate year information data to be merged. In other words, the year information can be mapped to the corresponding binary code to obtain the year information data to be merged.
[0081] S306: Perform binary mapping processing on the monthly information to obtain the monthly information data to be merged.
[0082] Specifically, the monthly information is processed using binary mapping according to the corresponding mapping rules to generate the monthly information data to be merged. In other words, the monthly information can be mapped to the corresponding binary code to obtain the monthly information data to be merged.
[0083] S308: Perform ternary mapping processing on the date information to obtain the date information to be merged data.
[0084] Specifically, date information is mapped to ternary representation according to the corresponding mapping rules to generate date information data to be merged. Specifically, date information can be mapped to its corresponding binary code to obtain the date information data to be merged. It should be noted that steps S304, S306, and S308 can be performed simultaneously, thereby shortening the data processing time.
[0085] S310: Perform data concatenation processing on the year information data to be merged, the month information data to be merged, and the date information data to be merged to obtain the time data to be merged.
[0086] In this process, after determining the year information data to be merged, the month information data to be merged, and the date information data to be merged, the binary codes corresponding to the year information data to be merged, the month information data to be merged, and the date information data to be merged can be concatenated sequentially to determine the time information data to be merged.
[0087] In the embodiments provided in this application, the year information, month information, and date information corresponding to the year information, month information, and date information to be merged are determined respectively. Then, the year information to be merged, month information to be merged, and date information to be merged are processed by data splicing to determine the time information to be merged, so that the time information to be merged can represent the operation time information from the three levels of year, month, and day.
[0088] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating a process for determining yearly information data to be merged, provided as an embodiment of this application. For example... Figure 4 As shown, in S304, the year information is processed using a first-ary mapping to obtain the year information data to be merged, including:
[0089] S402: Determine the first binary code of 4×N bits, and perform encoding separation processing on the first binary code according to the encoding order to obtain four binary code segments ordered sequentially in the first binary code; where N is a positive integer greater than or equal to 9, the total number of bits of the binary code segment is N, and the code on each encoding bit in the binary code segment is 0.
[0090] The first binary code, consisting of 4×N bits, is divided into four equal parts according to the encoding order, resulting in four sequentially ordered binary code segments. The total number of bits in each binary code segment is N, where N≥9. In each binary code segment of the first binary code, the code on each bit is 0.
[0091] Each binary code segment can be used to represent a year bit in the year information; that is, a year bit can be represented based on an N-bit binary code segment. For example, N can be 9, and when the i-th bit in the binary code segment is 1 from smallest to largest, it indicates that the corresponding year bit is i.
[0092] S404: Determine the four year bits in the year information in sequence, and determine the matching binary code segments and year bits based on the sorting order of the binary code segments and the sorting order of the year bits.
[0093] Specifically, after determining the four sequentially arranged binary code segments and the four sequentially ordered year bit information, the sorting order of each binary code segment and the sorting order of each year bit information are determined, and binary code segments and year bit information with the same sorting order are used as mutually matched binary code segments.
[0094] For example, binary code segments with the first sorting order and year information are used as corresponding matching binary code segments, binary code segments with the second sorting order and year information are used as corresponding matching binary code segments, binary code segments with the third sorting order and year information are used as corresponding matching binary code segments, and binary code segments with the fourth sorting order and year information are used as corresponding matching binary code segments.
[0095] S406: Determine the first target encoding position based on the numerical value of the year bit information, assign the encoding value of the first target encoding position in the binary encoding segment that matches the year bit information to be merged to 1, and use the assigned binary encoding segments to determine the year information data to be merged.
[0096] When the value of the year information is Y, the first target encoding position is Y. Then, the encoding of the Yth position in the binary encoding segment matching the year information is assigned a value of 1. At this time, the encoding values of other positions in the binary encoding segment matching the year information are all 0. After assigning values to each binary encoding segment, the assigned binary encoding segments are spliced together to obtain the year information to be merged data.
[0097] For example, when N is 9, in the binary code segment and year information where the sorting order is first, the year information is 2, and the corresponding assigned binary code segment is 000000010; in the binary code segment and year information where the sorting order is second, the year information is 0, and the corresponding assigned binary code segment is 000000000; in the binary code segment and year information where the sorting order is third, the year information is 2, and the corresponding assigned binary code segment is 000000010; in the binary code segment and year information where the sorting order is fourth, the year information is 3, and the corresponding assigned binary code segment is 000000100. Then, the assigned binary code segments are concatenated to obtain the year information to be merged, such as 00000001000000000000000001000000100.
[0098] In the embodiments provided in this application, the assigned binary code segments are used to represent the corresponding year bit information, and then the year information is represented by the four assigned binary code segments in the first binary code.
[0099] Please see Figure 5 , Figure 5 This is a schematic diagram illustrating a process for determining monthly information data to be merged, provided as an embodiment of this application. Figure 5 As shown, in S306, the monthly information undergoes binary mapping processing to obtain the monthly information data to be merged, including:
[0100] S502: Determine the second binary code of M bits; where M is a positive integer greater than or equal to 12, and the code of each bit in the second binary code is 0.
[0101] In this second binary code, the total number of bits is M, and each bit in the second binary code is 0. For example, M can be 12.
[0102] S504: Determine the second target encoding position based on the numerical value of the monthly information, assign the value of the second target encoding position in the second binary encoding to 1, and use the assigned value of the second binary encoding to determine the monthly information data to be merged.
[0103] When the value of the monthly information is X, the second target encoding position is X. Then, the encoding of the Xth position in the second binary encoding is assigned a value of 1, and the monthly information to be merged data is obtained using the assigned second binary encoding.
[0104] For example, when M is 12 and X is 12, the second binary code after assignment is 100000000000.
[0105] In the embodiments provided in this application, an M-bit second binary code is determined, the value of the month information is used to assign a value to the second binary code, and then the assigned second binary code is used to represent the month information data to be merged.
[0106] Please see Figure 6 , Figure 6 This is a schematic diagram illustrating a process for determining date information to be merged, provided as an embodiment of this application. For example... Figure 6 As shown, in S308, the date information is processed by a ternary mapping to obtain the date information to be merged data, including:
[0107] S602: Obtain the total number of days in the month corresponding to the monthly information, determine the target value corresponding to the total number of days in the month, and generate the third binary code of the target value bits, where the code of each bit in the third binary code is 0.
[0108] After determining the month information, the total number of days in the corresponding month is retrieved. The total number of days in the month can be 28, 29, 30, or 31. Then, a target value is determined based on the total number of days in the month; similarly, the target value can also be 28, 29, 30, or 31. Based on the target value, the total number of bits in the third binary code is determined, and then the third binary code for the target value bits is generated, where each bit in the third binary code is 0.
[0109] S604: Determine the third target encoding position based on the numerical value of the date information, assign the value of the third target encoding position in the third binary encoding to 1, and use the assigned third binary encoding to determine the date information to be merged data.
[0110] Specifically, when the date information value is D, the third target encoding position is determined to be D. At this time, the D-th position in the third binary encoding is assigned a value of 1, and all other positions in the third binary encoding after the assignment are 0. Then, the date information to be merged is obtained using the third binary encoding after the assignment.
[0111] For example, when the total number of days in a month is 31 and D is 2, the date information to be merged can be 000000000000000000000000000010.
[0112] In the embodiments provided in this application, the third binary code of the target value bit is determined by using the total number of days in the month corresponding to the month information. Then, the value of the date information is used to assign a value to the third binary code, thereby using the assigned third binary code to determine the date information to be merged data to represent the date information.
[0113] Please see Figure 7 , Figure 7This is a schematic diagram illustrating a time merging process provided in an embodiment of this application. Figure 7 As shown, S206 utilizes the time merging encoding in the target storage log to perform time merging processing on the time-to-merge data, including:
[0114] S702: Perform binary conversion on the time-merged encoding in the target storage log to obtain the time-merged binary encoding.
[0115] The time-merged encoding in the target storage log can be a decimal encoding, thus storing more binary information. A binary conversion process is performed on the time-merged encoding in the target storage log to determine the corresponding time-merged binary encoding.
[0116] S704: Based on the time data to be merged, perform information update processing on the time merging binary code to obtain the target time merging binary code.
[0117] Specifically, when updating the time-merged binary code using the time-to-merge data, if it is determined that the information corresponding to the time-to-merge data does not exist in the time-merged binary code, the information is added to the time-merged binary code using the time-to-merge data; if it is determined that the information corresponding to the time-to-merge data exists in the time-merged binary code, the time-merged binary code is not processed.
[0118] S706: Perform decimal conversion on the target time merged binary code to obtain the target time merged decimal code, and use the target time merged decimal code as the time merge code.
[0119] In order to store the information corresponding to the target time merge binary code based on the smaller bit code, the target time merge binary code is converted to decimal, so as to obtain the time merge code represented by the target time merge decimal code.
[0120] In the embodiments provided in this application, the time merging code in the target storage log is converted into a binary code to obtain a time merging binary code. Then, the time merging binary code is used to merge the time data to be merged, thereby determining the target time merging binary code containing operation time information. Finally, in order to store the information corresponding to the target time merging binary code based on a smaller bit code, the target time merging binary code is converted into a decimal code to obtain a time merging code represented by the target time merging decimal code.
[0121] Please see Figure 8 , Figure 8This is a schematic diagram illustrating a process for determining a target time-merged binary code, as provided in an embodiment of this application. Figure 8 As shown, the time-merged binary code includes year information merged coding segments, month information merged coding segments, date information merged coding segments, and associated information merged coding segments; in S704, the time-merged binary code is updated based on the time data to be merged to obtain the target time-merged binary code, including:
[0122] S802: Determine the first coding position in the annual information merging coding segment based on the annual information data to be merged, and update the coding of the first coding position.
[0123] The encoding length and structure of the annual information merging encoding segment and the annual information data to be merged are the same. When the annual information data to be merged includes four binary encoding segments that have been assigned values, the number of first encoding bits can be four, with each first encoding bit corresponding to a bit encoded as "1" in an assigned binary encoding segment. Simultaneously, the encoding segment corresponding to the first encoding bit in the annual information merging encoding segment is determined, and the first encoding bit of the corresponding encoding segment in the annual information merging encoding segment is assigned the value "1".
[0124] For example, in the embodiment corresponding to S406, when the annual information to be merged is 000000010000000000000000010000000100, the corresponding first coding positions are 2, 0, 2, and 3 respectively. At this time, based on the first coding positions 2, 0, 2, and 3, the corresponding coding positions of the corresponding coding segments in the annual information merging coding segment are assigned the value 1. Of course, when the coding corresponding to the first coding position is originally 1, this coding does not need to be processed.
[0125] S804: Determine the second coding position in the monthly information merging coding segment based on the monthly information data to be merged, and update the coding of the second coding position.
[0126] The encoding length and encoding structure of the monthly information merging encoding segment and the monthly information data to be merged are the same. The second encoding position in the monthly information merging encoding segment is determined based on the position of the encoding "1" in the monthly information data to be merged. After determining the second encoding position, the encoding value of the second encoding position in the monthly information merging encoding segment is assigned to "1".
[0127] For example, in the embodiment corresponding to S504, the monthly information to be merged data is 1000000000000. At this time, the second encoding position is 12. Based on the second encoding position 12, the encoding of the 12th position in the monthly information merging encoding segment is assigned a value of 1. Of course, when the encoding corresponding to the second encoding position is originally 1, the encoding can be left unprocessed.
[0128] S806: Determine the third coding position in the date information merging coding segment based on the date information to be merged data, and update the coding of the third coding position.
[0129] The date information to be merged and the date information merged coding segment have the same coding length and coding structure. Based on the position of "1" in the date information to be merged, the third coding position in the date information merge coding is determined. After determining the third coding position, the value of the third coding position in the date information merge coding is assigned to "1".
[0130] For example, in the embodiment corresponding to S604, the date information to be merged can be 0000000000000000000000000000010. In this case, the third encoding bit is 2. Based on the third encoding bit 2, the encoding of the second bit in the date information merging encoding segment is assigned the value 1. Of course, if the encoding corresponding to the third encoding bit was originally 1, then this encoding does not need to be processed. It should be noted that steps S802, S804, and S806 can be executed synchronously to shorten the data processing time. When the date information merging encoding segment is 1111111111111111111111111111111, the operation time corresponding to the target operation for each day of the month is recorded.
[0131] S808: Perform coding position association processing on the first coding position, the second coding position, and the third coding position to obtain coding position association information, and update the association information and merge the coding segments based on the coding position association information.
[0132] In order to associate the year, month and date information in the operation time information after determining the first, second and third coding positions, the coding positions of the first, second and third coding positions can be associated to determine the coding position association information. Then, the coding position association information is represented by binary code. After that, the binary code is merged by merging the association information coding segment, and then the association information merging coding segment is updated.
[0133] S810: Determine the target time merged binary code based on the updated year information merged coding segment, month information merged coding segment, date information merged coding segment, and associated information merged coding segment.
[0134] Specifically, the year information merged coding segment, month information merged coding segment, date information merged coding segment, and associated information merged coding segment are sequentially concatenated to obtain the target time merged binary code.
[0135] In the embodiments provided in this application, the time-merging binary code is updated by using the time-to-merge data to obtain the target time-merging binary code. Here, the target time-merging binary code can record the operation time information corresponding to each day of the year, that is, it can record the data of 365 or 366 days in a year, so that the data that originally required 365 or 366 log records can now be stored through a single target storage log, thereby saving disk storage space.
[0136] In the embodiments provided in this application, information queries can also be performed on the target storage log, specifically:
[0137] Determine the information query command for the target stored log, and obtain the reference operation time information corresponding to the information query command;
[0138] The operation time is matched against the reference operation time information based on the target storage log. If the matching result is a failure, the information query command fails; if the matching result is a success, the information query command succeeds.
[0139] Specifically, based on the user's query operation on the target storage log or the terminal's automatic query request on the target storage log, an information query instruction for the target storage log is generated, and the information query instruction is processed by data parsing to determine the reference operation time information used by the information query instruction to query.
[0140] The yearly, monthly, date, and associated information merged coding segments corresponding to the target stored log are determined. Then, the reference operation time information is matched against the yearly, monthly, date, and associated information merged coding segments respectively. If all matches are successful, the information query command is successful; if at least one match fails, the information query command fails.
[0141] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a log data processing device provided in an embodiment of this application. Figure 9 As shown, the log data processing device 900 includes:
[0142] The acquisition module 910 is suitable for acquiring the target raw log generated by the target object and the log operation type of the target raw log;
[0143] The determination module 920 is suitable for determining the target storage log that is jointly associated with the target object and the log operation type, obtaining the operation time information from the target original log, and performing target base mapping processing on the operation time information to obtain the time data to be merged;
[0144] Storage module 930 is adapted to perform time merging processing on time-to-merge data using time merging encoding in the target storage log, so as to store the log information of the target original log.
[0145] Optionally, the determining module 920 includes:
[0146] The determination unit is suitable for determining year, month, and date information based on operation time information;
[0147] The annual information data to be merged determination unit is suitable for performing first-ary mapping processing on annual information to obtain annual information data to be merged.
[0148] The monthly information data to be merged determination unit is suitable for performing binary mapping processing on the monthly information to obtain the monthly information data to be merged.
[0149] The date information data to be merged determination unit is suitable for performing ternary mapping processing on date information to obtain date information data to be merged;
[0150] The splicing unit is suitable for splicing yearly, monthly, and date information data to be merged to obtain time-based data to be merged.
[0151] Optionally, the annual information data to be merged determination unit includes:
[0152] The first determining subunit is suitable for determining a 4×N-bit first binary code, performing encoding separation processing on the first binary code according to the encoding order, and obtaining four binary code segments ordered sequentially in the first binary code; where N is a positive integer greater than or equal to 9, the total number of bits in the binary code segment is N, and the code on each encoding bit in the binary code segment is 0;
[0153] The second determining subunit is suitable for determining the four year bit information that are sequentially ordered in the year information. Based on the sorting order of the binary code segments and the sorting order of the year bit information, it determines the matching binary code segments and year bit information.
[0154] The third determining subunit is suitable for determining the first target coding position based on the numerical value of the year bit information, assigning the coding value of the first target coding position in the binary coding segment matching the year bit information to 1, and using the assigned binary coding segments to determine the year information to be merged data.
[0155] Optionally, the monthly information data to be merged determination unit includes:
[0156] The second binary code determining subunit is suitable for determining the M-bit second binary code; where M is a positive integer greater than or equal to 12, and the code on each bit in the second binary code is 0;
[0157] The monthly information data to be merged is determined by a sub-unit, which is suitable for determining the second target encoding position based on the numerical value of the monthly information. The encoding of the second target encoding position in the second binary encoding is assigned a value of 1, and the monthly information data to be merged is determined by the assigned second binary encoding.
[0158] Optionally, the date information data to be merged determination unit includes:
[0159] The sub-unit is used to obtain the total number of days in the month corresponding to the monthly information, determine the target value corresponding to the total number of days in the month, and generate the third binary code of the target value bit, in which the code of each bit in the third binary code is 0;
[0160] The date information data to be merged is determined by the sub-unit, which is suitable for determining the third target code position based on the numerical value of the date information. The code of the third target code position in the third binary code is assigned a value of 1, and the date information data to be merged is determined by the assigned third binary code.
[0161] Optionally, the storage module 930 includes:
[0162] The conversion unit is suitable for performing binary conversion processing on the time-merged encoding in the target storage log to obtain the time-merged binary encoding.
[0163] The update unit is suitable for updating the time-merged binary code based on the time-to-merge data to obtain the target time-merged binary code;
[0164] The time merging encoding determination unit is suitable for performing decimal conversion processing on the target time merging binary encoding to obtain the target time merging decimal encoding, and using the target time merging decimal encoding as the time merging encoding.
[0165] Optionally, the time-merged binary encoding includes year information merged encoding segments, month information merged encoding segments, date information merged encoding segments, and associated information merged encoding segments; the update unit includes:
[0166] The first update subunit is adapted to determine the first coding position in the annual information merging coding segment based on the annual information data to be merged, and to update the coding of the first coding position.
[0167] The second update subunit is adapted to determine the second coding position in the monthly information merging coding segment based on the monthly information data to be merged, and to update the coding of the second coding position;
[0168] The third update subunit is adapted to determine the third coding position in the date information merging coding segment based on the date information to be merged data, and to update the coding of the third coding position;
[0169] The association subunit is suitable for performing code position association processing on the first code position, the second code position, and the third code position to obtain code position association information, and updating the association information and merging the code segments based on the code position association information;
[0170] The target time merged binary code determination subunit is suitable for determining the target time merged binary code based on the updated year information merged code segment, month information merged code segment, date information merged code segment and associated information merged code segment.
[0171] Optionally, the log data processing device 900 further includes:
[0172] The information query instruction determination module is suitable for determining the information query instruction for the target stored log and obtaining the reference operation time information corresponding to the information query instruction.
[0173] The matching module is suitable for performing operation time matching processing on reference operation time information based on the target storage log. When the matching result is a failure, the information query command fails; when the matching result is a success, the information query command succeeds.
[0174] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Figure 10 As shown, terminal 1000 may include: at least one processor 1001, at least one network interface 1004, user interface 1003, memory 1005, and at least one communication bus 1002.
[0175] The communication bus 1002 is used to realize the connection and communication between these components.
[0176] The user interface 1003 may include a display screen and a camera. Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0177] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0178] The processor 1001 may include one or more processing cores. The processor 1001 connects to various parts within the terminal 1000 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and by calling data stored in the memory 1005. Optionally, the processor 1001 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1001 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1001 and may be implemented as a separate chip.
[0179] The memory 1005 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 1005 may include a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 10 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a log data processing program.
[0180] exist Figure 10In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 1001 can be used to call the log data processing program stored in the memory 1005 and specifically perform the following operations:
[0181] Obtain the target raw log generated by the target object and the log operation type of the target raw log;
[0182] Identify the target storage log that is associated with both the target object and the log operation type, obtain the operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain the time data to be merged;
[0183] The time-merge encoding in the target storage log is used to perform time-merge processing on the time-to-merge data in order to store the log information of the target original log.
[0184] Optionally, when processor 1001 performs target base mapping processing on the operation time information to obtain time data to be merged, it specifically executes:
[0185] The year, month, and date information are determined based on the operation time information;
[0186] The year information is processed using a first-ary mapping to obtain the year information data to be merged; the month information is processed using a second-ary mapping to obtain the month information data to be merged; and the date information is processed using a third-ary mapping to obtain the date information data to be merged.
[0187] Data concatenation is performed on the yearly, monthly, and date data to be merged to obtain the time-based data to be merged.
[0188] Optionally, when processor 1001 performs first-ary mapping processing on the year information to obtain the year information to be merged, it specifically executes:
[0189] A 4×N-bit first binary code is determined. The first binary code is then processed by encoding separation according to the encoding order to obtain four binary code segments ordered sequentially in the first binary code. Here, N is a positive integer greater than or equal to 9, the total number of bits in the binary code segment is N, and the code on each bit in the binary code segment is 0.
[0190] Determine the four year bits in the year information in sequence, and determine the matching binary code segments and year bits based on the sorting order of the binary code segments and the sorting order of the year bits.
[0191] The first target encoding position is determined based on the numerical value of the year bit information. The encoding of the first target encoding position in the binary encoding segment that matches the year bit information is assigned a value of 1. The year information data to be merged is determined using each binary encoding segment after the assignment.
[0192] Optionally, when processor 1001 performs binary mapping processing on the monthly information to obtain the monthly information data to be merged, it specifically executes:
[0193] Determine the second binary code with M bits; where M is a positive integer greater than or equal to 12, and the code of each bit in the second binary code is 0;
[0194] The second target encoding position is determined based on the numerical value of the monthly information. The encoding of the second target encoding position in the second binary code is assigned a value of 1. The monthly information data to be merged is determined using the assigned second binary code.
[0195] Optionally, when processor 1001 performs triary mapping processing on the date information to obtain the date information to be merged, it specifically executes:
[0196] Obtain the total number of days in the month corresponding to the monthly information, determine the target value corresponding to the total number of days in the month, and generate the third binary code of the target value. The code of each bit in the third binary code is 0.
[0197] The third target encoding position is determined based on the numerical value of the date information. The encoding of the third target encoding position in the third binary code is assigned a value of 1. The date information to be merged is determined using the assigned third binary code.
[0198] Optionally, when processor 1001 performs time merging processing on the time-to-merge data using the time merging code in the target storage log, it specifically executes:
[0199] Perform binary conversion on the time-merged encoding in the target storage log to obtain the time-merged binary encoding;
[0200] Based on the time-to-be-merged data, the time-merged binary code is updated to obtain the target time-merged binary code.
[0201] The target time merged binary code is converted to decimal to obtain the target time merged decimal code, which is then used as the time merged code.
[0202] Optionally, the time-merged binary code includes year information merged coding segments, month information merged coding segments, date information merged coding segments, and associated information merged coding segments; when the processor 1001 performs information update processing on the time-merged binary code based on the time data to be merged to obtain the target time-merged binary code, the specific execution is as follows:
[0203] Based on the year information to be merged data, determine the first coding position in the year information merging coding segment and update the coding of the first coding position; based on the month information to be merged data, determine the second coding position in the month information merging coding segment and update the coding of the second coding position; based on the date information to be merged data, determine the third coding position in the date information merging coding segment and update the coding of the third coding position.
[0204] The first, second, and third coding positions are correlated to obtain coding position correlation information. The correlation information is then updated and the coding segments are merged based on the coding position correlation information.
[0205] The target time merged binary code is determined based on the updated year information merged code segment, month information merged code segment, date information merged code segment, and associated information merged code segment.
[0206] Alternatively, the processor 1001 is also adapted to perform:
[0207] Determine the information query command for the target stored log, and obtain the reference operation time information corresponding to the information query command;
[0208] The operation time is matched against the reference operation time information based on the target storage log. If the matching result is a failure, the information query command fails; if the matching result is a success, the information query command succeeds.
[0209] This application also provides a computer-readable storage medium that stores one or more programs, which, when executed by a processor, implement any of the methods described above.
[0210] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0211] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0212] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0213] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0214] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments of this application.
[0215] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0216] The above is a description of a log data processing method, apparatus, terminal, and computer-readable storage medium provided in the embodiments of this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this application.
Claims
1. A log data processing method, wherein, The method includes: Obtain the target raw log generated by the target object and the log operation type of the target raw log; Determine the target storage log that is associated with the target object and the log operation type, obtain the operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain time data to be merged; The time-merging encoding in the target storage log is used to perform time-merging processing on the time-to-merge data in order to store the log information of the target original log.
2. The method according to claim 1, wherein, The step of performing target base mapping processing on the operation time information to obtain time-to-be-merged data includes: The year, month, and date information are determined based on the operation time information; The year information is processed by a first-ary mapping to obtain year information data to be merged; the month information is processed by a second-ary mapping to obtain month information data to be merged; the date information is processed by a third-ary mapping to obtain date information data to be merged. The year information data to be merged, the month information data to be merged, and the date information data to be merged are concatenated to obtain the time data to be merged.
3. The method according to claim 2, wherein, The first-ary mapping process of the year information to obtain the year information to be merged includes: A 4×N-bit first binary code is determined. The first binary code is then processed by encoding separation according to the encoding order to obtain four binary code segments ordered sequentially in the first binary code. Wherein, N is a positive integer greater than or equal to 9, the total number of bits in the binary code segment is N, and the code on each bit in the binary code segment is 0. Determine the four year bit information that are sequentially ordered in the year information, and determine the matching binary code segments and year bit information based on the sorting order of the binary code segments and the sorting order of the year bit information; Based on the numerical value of the year bit information, the first target encoding position is determined, and the encoding of the first target encoding position in the binary encoding segment matched with the year bit information is assigned a value of 1. The year information data to be merged is determined using each binary encoding segment after the assignment.
4. The method according to claim 2, wherein, The step of performing binary mapping processing on the monthly information to obtain the monthly information to be merged data includes: Determine an M-bit second binary code; wherein M is a positive integer greater than or equal to 12, and the code on each bit of the second binary code is 0; Based on the numerical value of the monthly information, the second target encoding position is determined, and the encoding of the second target encoding position in the second binary code is assigned a value of 1. The monthly information data to be merged is determined using the assigned second binary code.
5. The method according to claim 2, wherein, The date information is processed by performing a ternary mapping to obtain date information data to be merged, including: Obtain the total number of days in the month corresponding to the monthly information, determine the target value corresponding to the total number of days in the month, and generate a third binary code for the target value, wherein the code on each bit of the third binary code is 0; The third target encoding position is determined based on the numerical value of the date information. The encoding of the third target encoding position in the third binary encoding is assigned a value of 1. The date information to be merged is determined using the assigned third binary encoding.
6. The method according to claim 2, wherein, The step of performing time merging processing on the time-to-merge data using the time merging code in the target storage log includes: The time-merged encoding in the target storage log is converted to binary to obtain the time-merged binary encoding. Based on the time data to be merged, the time merging binary code is updated to obtain the target time merging binary code. The target time-merged binary code is converted to decimal to obtain the target time-merged decimal code, which is then used as the time-merged code.
7. The method according to claim 6, wherein, The time-merged binary code includes year information merged code segments, month information merged code segments, date information merged code segments, and associated information merged code segments; the step of updating the time-merged binary code based on the time data to be merged to obtain the target time-merged binary code includes: Based on the year information to be merged data, determine the first coding position in the year information merging coding segment, and update the coding of the first coding position; based on the month information to be merged data, determine the second coding position in the month information merging coding segment, and update the coding of the second coding position; based on the date information to be merged data, determine the third coding position in the date information merging coding segment, and update the coding of the third coding position. Encoding position association processing is performed on the first encoding position, the second encoding position, and the third encoding position to obtain encoding position association information. The association information is then updated and the encoding segments are merged based on the encoding position association information. The target time merged binary code is determined based on the updated year information merged code segment, month information merged code segment, date information merged code segment, and associated information merged code segment.
8. A log data processing apparatus, wherein, The device includes: The acquisition module is adapted to acquire the target raw log generated by the target object and the log operation type of the target raw log; The determination module is adapted to determine the target storage log that is commonly associated with the target object and the log operation type, obtain operation time information from the target original log, and perform target base mapping processing on the operation time information to obtain time-to-be-merged data; The storage module is adapted to perform time merging processing on the time-to-merge data using the time merging encoding in the target storage log, so as to store the log information of the target original log.
9. A terminal, wherein, The terminal includes: Processor; and A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein, The computer-readable storage medium stores one or more programs that, when executed by a processor, implement the method of any one of claims 1 to 7.