CN109240986B - Log processing method and device and storage medium - Google Patents

Log processing method and device and storage medium Download PDF

Info

Publication number
CN109240986B
CN109240986B CN201810926506.3A CN201810926506A CN109240986B CN 109240986 B CN109240986 B CN 109240986B CN 201810926506 A CN201810926506 A CN 201810926506A CN 109240986 B CN109240986 B CN 109240986B
Authority
CN
China
Prior art keywords
index
log
page
information
data information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810926506.3A
Other languages
Chinese (zh)
Other versions
CN109240986A (en
Inventor
曹瑾璟
张骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201810926506.3A priority Critical patent/CN109240986B/en
Publication of CN109240986A publication Critical patent/CN109240986A/en
Application granted granted Critical
Publication of CN109240986B publication Critical patent/CN109240986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a log processing method, a device and a storage medium, wherein the method comprises the steps of receiving a first operation on a first page, jumping to a second page, and generating first log data information according to the first operation; generating a first index according to first log data information, wherein the first log comprises the first index and the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. The invention can logically integrate the logs which exist independently, thereby realizing tracing the whole operation link of the user and being more convenient for analyzing the user behavior.

Description

Log processing method and device and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a log processing method and apparatus, and a storage medium.
Background
With the continuous development of terminal technology, the application of terminals such as mobile phones and tablet computers is more and more extensive. A user can download various application software on the terminal, and the user usually generates a corresponding log during the application software use.
At present, each time a user performs operation in application software, an independent log is generated according to the operation, so that the logs on an operation link are difficult to be associated; in order to associate the logs, operation link information is added in each log, that is, all operations of a user in a certain period of time are collected and incorporated into each log, however, the amount of information carried by each log is limited, so that each log can only carry partial information on the whole operation link and cannot carry the whole operation link information, and the partial information cannot completely describe the whole operation link. In addition, due to the increase of the operation link information, the data volume reported by each log can be remarkably increased, and in general, due to the fact that the operation link information can be repeatedly reported by a plurality of logs, the logs have redundancy.
Disclosure of Invention
The embodiment of the invention provides a log processing method, a log processing device and a log processing storage medium, which can associate logs on an operation link only according to indexes, reduce the data volume reported by the logs and avoid redundancy among the logs.
The embodiment of the invention provides a log processing method, which comprises the following steps:
receiving a first operation on a first page, jumping to a second page, and generating first log data information according to the first operation;
generating a first index according to the first log data information, wherein the first log comprises the first index and the first log data information;
receiving a second operation on a second page, and generating second log data information according to the second operation;
generating a second index according to the second log data information;
and obtaining a second log according to the second index, the first index and the second log data information.
An embodiment of the present invention further provides a log processing apparatus, including:
the first generation unit is used for receiving a first operation on a first page, jumping to a second page and generating first log data information according to the first operation;
a second generation unit configured to generate a first index from the first log data information, wherein the first log includes the first index and the first log data information;
the third generation unit is used for receiving a second operation on a second page and generating second log data information according to the second operation;
A fourth generating unit configured to generate a second index according to the second log data information;
and the obtaining unit is used for obtaining a second log according to the second index, the first index and the second log data information.
The embodiment of the present invention further provides a storage medium, in which processor executable instructions are stored, and the processor provides the log processing method as described above by executing the instructions.
Compared with the prior art, the embodiment of the invention obtains the log corresponding to the current operation of the user by loading the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user into the log data information generated by the current operation of the user, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs which exist independently are logically integrated, thereby tracing the whole operation link of the user and being more convenient for analyzing the user behavior.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic view of a scenario of a log processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a log processing method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a log processing method according to an embodiment of the present invention;
fig. 4 is an interface schematic diagram of a log processing method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of key information of a log processing method according to an embodiment of the present invention;
fig. 6 is another schematic diagram of key information of a log processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a log processing apparatus according to an embodiment of the present invention;
fig. 8 is another schematic structural diagram of a log processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a log processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present invention are described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, but on the contrary, it is to be understood that various steps and operations described hereinafter may be implemented in hardware.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present invention.
It should be noted that the operation link is a set of all operations after the user performs n operations and corresponding page jumps, for example, the user clicks the button a on the page a to enter the page B, then clicks the button B on the page B to enter the page C, then clicks the button C on the page C to enter the page D, and at this time, the operation link is: page a → button a → page B → button B → page C → button C → page D. The operation link tracing means that a log is generated in each operation of the user, and the log generated in the first operation of the user can be finally found in a certain mode according to the log generated in the last operation of the user, so that the whole operation link is obtained.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a log processing method according to an embodiment of the present invention.
The scene can comprise a log processing device, wherein the log processing device can be integrated in a mobile phone, a tablet computer or other terminals, and the log processing device can be specifically applied to application software, and is mainly used for receiving a first operation of a user on a first page of the application software, jumping to a second page, and generating first log data information according to the first operation; generating a first index according to first log data information, wherein the first log comprises the first index and the first log data information; then receiving a second operation of the user on a second page of the application software, and generating second log data information according to the second operation; generating a second index according to the second log data information; and finally, obtaining a second log according to the second index, the first index and the second log data information.
Referring to fig. 2, fig. 2 is a schematic flowchart of a log processing method according to an embodiment of the present invention, where the method includes:
in step S101, a first operation on a first page is received, a jump is made to a second page, and first log data information is generated according to the first operation.
In general, a log records what a user has done on a certain device at a certain time.
It is understood that the log processing method of the present embodiment can be applied to specific application software, such as WeChat, qq, or the like. For example, a user opens a certain application software, enters an initial page of the software, and at this time, the user clicks a certain button of the page, and then the terminal receives a first operation on the first page, and then jumps to a second page, and then the terminal generates first log data information according to the operation. It should be noted that this step may also be applied to any page in the application software, for example, when the user enters a certain page of the application software, at this time, the user clicks a certain button of the page, the terminal receives a first operation of the user on the first page, then jumps to the second page, that is, a next page entered by clicking on the page, and then the terminal receives the first operation, and then may generate the first log data information according to the first operation.
In step S102, a first index is generated from the first log data information.
Wherein, the first log comprises a first index and first log data information.
The first log data information may include: a user unique identifier, a timestamp, device information, and operation description information. After the terminal generates the first log data information, a plurality of pieces of key information can be extracted from the first log data information, for example, the key information can be a user unique identifier, a timestamp, device information, operation description information and the like; the key information is combined to generate a first index.
Wherein the first index may be generated in the following form.
For example, the operation of the user can be described by table 1, that is, the following key information is extracted from the first log data information:
TABLE 1 user's operational description
Figure BDA0001765504110000051
By combining the above key information, it can be obtained: which user what time and what is done at which device.
Then, the key information can be combined and processed to generate an index, which has uniqueness and only represents the log data information generated by the user in the operation.
Wherein the index may consist of the following formula:
The index (Di) ═ fun (U + T + a + De).
It should be noted that, as shown in table 1, since each user ID is different and each device has a Unique International Mobile Equipment Identity (IMEI) or Universal Unique Identity (UUID), the index is Unique.
It should be noted that, after the terminal generates the first index, the first index may be stored in the cache region corresponding to the second page.
In step S103, a second operation on the second page is received, and second log data information is generated according to the second operation.
The terminal enters the second page from the first page at this time, and if the user clicks a certain button of the second page at this time, the terminal jumps to the third page, receives a second operation on the second page, and then can generate second log data information according to the second operation.
In step S104, a second index is generated from the second log data information.
Wherein the second log data information may include: a user unique identifier, a timestamp, device information, and operation description information. After the terminal generates the second log data information, a plurality of pieces of key information may be extracted from the second log data information, where the key information may be: the unique identifier of the user, the timestamp, the equipment information and the operation description information; and combining the key information to generate a second index.
It should be noted that, after the terminal generates the second index, the second index may be stored in the cache region corresponding to the third page.
In step S105, a second log is obtained according to the second index, the first index, and the second log data information.
After the terminal generates the second index, the terminal may read the first index from the cache region corresponding to the second page, and then obtain the second log according to the second index, the first index, and the second log data information, that is, load the second index and the first index to the second log data information to obtain the second log. Optionally, to facilitate the log lookup, the first index and the second index may be loaded to a head position of the second log data information.
The embodiment skips to a second page by receiving a first operation on a first page, and generates first log data information according to the first operation; generating a first index according to first log data information, wherein the first log comprises the first index and the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. According to the scheme, the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user are loaded into the log data information generated by the current operation of the user to obtain the log corresponding to the current operation of the user, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs existing independently are logically integrated, the tracing of the whole operation link of the user can be realized, and the analysis of the user behavior is more convenient.
The log processing method described in the above embodiment is further described below by way of example. In this embodiment, a description will be given of a corresponding example in which the log processing method is applied to the karaoke software, from the perspective of a log processing apparatus, which may be specifically integrated in a terminal.
Referring to fig. 3, fig. 3 is another flow chart illustrating a log processing method according to an embodiment of the invention.
In step S201, a first operation on a first page is received, a jump is made to a second page, and first log data information is generated according to the first operation.
As shown in fig. 4, assume that the current time is: in 2018, 4, 15, 11, 25 minutes and 30 seconds, a user A clicks a button A on a page A of Karaoke software on a mobile phone, at the moment, the terminal receives a clicking operation on the button A of the page A, so that the page A jumps to a page B, then the terminal generates log data information 1 according to the clicking operation, and the log data information 1 can be used for describing that the user clicks the button A on the page A and jumps to the page B.
In step S202, a first index is generated from the first log data information.
Wherein, the first log comprises a first index and first log data information.
The first log data information may include: a user unique identifier, a timestamp, device information, and operation description information. After the terminal generates the log data information 1, the terminal may extract the key information shown in table 2 from the log data information 1, and then may combine and/or process the key information to generate an index, which has uniqueness and only represents the log data information 1 generated by the user a when clicking the button a, where the index of the log data information 1 is denoted by index 1.
Table 2 user a operational description
Figure BDA0001765504110000071
As can be seen from table 2, when the key information extracted from the log data information 1 includes the user ID or the user unique identifier (U), the timestamp (T), the device information (De), and the operation description information (a), an index 1 uniquely indicating the operation of the user a clicking the button a this time can be generated.
In step S203, it is detected whether third index information exists in the cache region corresponding to the first page.
In step S204, if it is detected that the third index information exists in the cache region corresponding to the first page, the third index information is read from the cache region corresponding to the first page.
In step S205, the first index and the third index information are stored in the buffer corresponding to the second page.
In step S206, the third index information is deleted from the buffer corresponding to the first page.
It should be noted that when the terminal receives the operation 1 on the page 1, it will jump to the page 2, and when the terminal receives the operation 2 on the page 2, it will jump to the page 3, and so on, and when the terminal receives the operation n-1 on the page n-1, it will jump to the page n. And each time the terminal receives the operation, generating an index according to the operation, and then storing the index in the cache corresponding to the skipped page.
For example, when the terminal receives an operation 1 on a page 1 (assuming that the page 1 is an initial page, the initial page is a first page into which application software is opened), the terminal jumps to a page 2, generates log data information 1 according to the operation 1, generates an index 1 according to the log data information 1, and stores the index 1 in a cache region corresponding to the page 2, at this time, the terminal needs to detect whether index information exists in the cache region corresponding to the page 1, and since the page 1 is the initial page, the index information does not exist in the cache region corresponding to the page 1, and then the index 1 can be stored in the cache region corresponding to the page 2; when the terminal receives an operation 2 on a page 2, jumping to the page 3, generating log data information 2 according to the operation 2, and generating an index 2 according to the log data information 2, at this time, the terminal detects whether index information exists in a cache region corresponding to the page 2, and since the index 1 is stored in the cache region corresponding to the page 2 before, the terminal can detect that the index information exists in the cache region corresponding to the page 2, namely the index 1, read the index 1, and then store both the index 1 and the index 2 in the cache region corresponding to the page 3, or only store the index 2; when the terminal receives an operation 3 on a page 3, the terminal jumps to a page 4, generates log data information 3 according to the operation 3, and generates an index 3 according to the log data information 3, and at this time, the terminal detects whether index information exists in a cache region corresponding to the page 3, and since the index 1 and the index 2 are stored in the cache region corresponding to the page 3 before, the terminal can detect that the index 1 and the index 2 exist in the cache region corresponding to the page 3, and the terminal reads the index 1 and the index 2, it is worth mentioning that the index 3 generated at this time by the terminal is necessarily stored in the cache region corresponding to the page 4, and the index 1 and the index 2 can be selected according to actual needs to be stored in the cache region corresponding to the page 4.
In addition, in the actual operation process, the page 1 may enter the page 4 through a series of operations (i.e. operating the link 1), or the page 1 may enter the page 4 through other operations (i.e. operating the link 2), so that, if the cache area of the page is not processed, due to different operations, index information on more than one operation link may be stored in the cache region corresponding to some pages, it may have index information of both the operation link 1 and the operation link 2, so that when the user is from the page 1 through the operation link 1 to the page 4, it may acquire the index information corresponding to the operation link 2, so that the whole process is careless, therefore, each time the terminal reads the index information from the cache region corresponding to a certain page, the index information in the cache region corresponding to the page can be deleted.
Wherein the third index information includes at least one third index. Based on the above description, it can be understood that the first page may be a certain page in the middle of the entire operation link, and the corresponding cache region may store the indexes generated by all previous operations, so that more than one index may be stored, only the index jumped to the first page by a certain operation may be stored, and the index generated by the operation may be stored, and the first page may also be an initial page, so that no index may exist in the cache region corresponding to the first page.
Therefore, when detecting whether the third index information exists in the cache region corresponding to the first page, the following several situations may exist.
In the first case: if it is detected that the third index information exists in the cache region corresponding to the first page, the third index information is read from the cache region corresponding to the first page, and at this time, the first log can be obtained according to the first index, the third index information and the first log data information, that is, the first index and the read third index information can be directly loaded into the first log data information to obtain the first log, that is, the third index information can be loaded into the first log data information regardless of how many indexes the third index information includes, then the first index and the third index information can be stored in the cache region corresponding to the second page, and finally the third index information can be deleted from the cache region corresponding to the first page.
In the second case: if the third index information is detected to exist in the cache region corresponding to the first page, the third index information is read from the cache region corresponding to the first page, at this time, whether the third index information comprises a plurality of indexes or not can be detected, if the third index information comprises a plurality of indexes, some indexes can be selected as required, then, a first log can be obtained according to the first index, the selected indexes and the first log data information, that is, the first index and the selected indexes are loaded into the first log data information to obtain the first log, at this time, the first index and the third index information may be stored in the cache region corresponding to the second page, or the first index and some indexes selected from the third index information may be stored in the cache region corresponding to the second page, and finally, the third index information may be deleted from the cache region corresponding to the first page.
In the third case: if it is detected that the third index information does not exist in the cache region corresponding to the first page, the first journal can be obtained according to the first index and the first journal data information, that is, the first index is directly loaded into the first journal data information to obtain the first journal, and then the first index is stored in the cache region corresponding to the second page.
In step S207, a second operation on the second page is received, and second log data information is generated according to the second operation.
As shown in fig. 4, at this time, page a has jumped to page B by clicking button a, that is, page B currently in the k song software, assuming that the current time is: 26 minutes and 30 seconds at 11 o 'clock and 15 o' clock in 4/15/2018, a user A clicks a button B on a page B of Karaoke software on a mobile phone, at the moment, the terminal receives a clicking operation on the button B of the page B, so that a page C is jumped from the page B, then the terminal generates log data information 2 according to the clicking operation, and the log data information 2 can be used for describing that the user clicks the button B on the page B and jumps to the page C.
In step S208, a second index is generated from the second log data information. The second log data information may include: a user unique identifier, a timestamp, device information, and operation description information. After the terminal generates the log data information 2, the terminal may extract the key information shown in table 3 from the log data information 2, and then may combine and/or process the key information to generate an index, where the index has uniqueness and only represents the log data information 2 generated by the user a in the click operation, and here, the index of the log data information 2 is represented by the index 2.
Table 3 user a operational description
Figure BDA0001765504110000101
As can be seen from table 3, when the information extracted from the log data information 2 includes the user ID or the user unique identifier (U), the timestamp (T), the device information (De), and the operation description information (a), an index 2 uniquely indicating the click operation of the user a can be generated.
In step S209, the first index and the third index information are read from the buffer corresponding to the second page.
In step S210, it is detected whether the third index information includes a plurality of third indexes.
In step S211, if it is detected that the third index information includes a plurality of third indexes, a predetermined number of third indexes are selected according to a predetermined rule to obtain fourth index information.
In step S212, a second log is obtained according to the second index, the first index, the fourth index information, and the second log data information.
In step S213, the first index and the third index information are deleted from the cache area corresponding to the second page.
For the first case described above, the third index information and the first index read from the cache region corresponding to the first page are already stored in the cache region corresponding to the second page, no processing has been performed on the third index information before, and when the first index information and the third index information are read from the cache region corresponding to the second page, the second log may be obtained directly according to the second index, the first index, and the third index information, that is, the second log data information, without performing any processing on the third index information, that is, directly loading the first index, the second index, and the third index information into the second log data information, so as to obtain the second log; or after the first index and the third index information are read from the cache region corresponding to the second page, detecting whether the third index information includes a plurality of third indexes, that is, detecting whether the third index information includes at least two third indexes, and if it is detected that the third index information includes at least two third indexes, selecting a preset number of the third indexes according to a preset rule to obtain fourth index information. At this time, it is assumed that the operation link includes a jump among 10 pages, the first page is an 8 th page of the 10 pages, the second page is a 9 th page obtained by performing operation jump on the 8 th page, and it is assumed that 7 indexes generated by 7 operations of the previous 8 pages are all stored in a cache of the 9 th page, and at this time, the preset rule may be: and selecting 3 indexes correspondingly generated from the 1 st operation to the 3 rd operation from the 7 indexes, combining the 3 indexes to obtain fourth index information, finally obtaining a second log according to the second index, the first index, the fourth index information and the second log data information, namely loading the first index, the second index and the fourth index information into the second log data information to obtain a second log, and finally deleting the first index and the third index information from a cache region corresponding to the second page. It should be noted that the preset rule may be set according to practical situations, and is not particularly limited herein. For example, in the example described above, the preset rule may also be: selecting 1 index correspondingly generated by the 1 st operation to obtain fourth index information; the preset rule may also be: and selecting 4 indexes correspondingly generated by the 1 st operation, the 3 rd operation, the 4 th operation and the 7 th operation to obtain fourth index information.
For the second case described above, it is assumed that the first index and some indexes selected from the third index information are stored in the buffer area corresponding to the second page, when the first index and some indexes selected from the third index information are read from the second page, the second log may be obtained directly according to the second index, the first index, some indexes selected from the third index information and the second log data information, that is, the first index, the second index and some indexes selected from the third index information are loaded into the second log data information to obtain the second log, or after the first index and some indexes selected from the third index information are read from the second page, a predetermined number of indexes are selected from the indexes according to a predetermined rule to combine into fourth index information, and then the fourth index information is obtained according to the second index, And finally, deleting the first index and the indexes selected from the third index information from the cache region corresponding to the second page.
For the third situation described above, only the first index is stored in the cache region corresponding to the second page, so that the first index can be directly read from the cache region corresponding to the second page, then the second log is obtained according to the second index, the first index and the second log data information, that is, the first index and the second index are loaded into the second log data information to obtain the second log, and finally the first index is deleted from the cache region corresponding to the second page.
In some embodiments, when it is desired to trace the entire operational link, the method may further comprise:
receiving a tracing instruction of a second log, wherein the tracing instruction is used for determining a previous log of the second log;
acquiring a first index from the second log according to the instruction;
detecting whether a first index exists in other logs except the second log;
and if the first index is detected to exist in other logs except the second log, determining that the first log is the previous log of the second log according to the first index.
When the whole operation link needs to be traced, the last log of the whole operation link can be obtained first, then the index corresponding to the latest operation is obtained from the last log, then the index corresponding to the latest operation is compared with the indexes of other logs, and the log with the same comparison is the previous log of the last log. By analogy, the last log of the current log can be obtained according to the current log each time, and the whole operation link can be traced in such a circulating way.
Hereinafter, the scheme of the present embodiment will be described with the aid of a flow of two operation links.
1. Scenario as shown in fig. 4:
assume that there are several operations after page C, so the entire operational link may be: page a → button a → page B → button B → page C → … → page N → button N → page N + 1.
(1) And clicking a button A on a page A by a user, jumping to a page B, generating log data information 1 describing the operation, and extracting key information T from the log data information 1 at the moment1、U、A1And De. These key information are then combined to generate index 1. For example, assuming that index 1 is represented by Di1, it can be combined such that Di1 ═ T (T)1+U+A1+ De), as shown in fig. 5, at this time, index 1 may be loaded into log data information 1, so as to obtain log 1, and store index 1 in the cache corresponding to page B.
(2) And clicking a button B on a page B by a user, jumping to a page C, generating log data information 2 describing the operation, and extracting key information T from the log data information 2 at the moment2、U、A2And De. These key information are then combined to generate index 2. For example, assume that the index2 is represented by Di2, and can be combined in such a way that Di2 ═ T (T) 2+U+A2+ De), then reading the index 1 from the cache region corresponding to the page B, as shown in fig. 5, at this time, the index 1 and the index 2 may be loaded into the log data information 2 to obtain the log 2, and the index 2 may be stored in the cache region corresponding to the page C, and finally the index 1 is deleted from the cache region corresponding to the page B.
(3) And by analogy, when the user clicks the button N at the page N, the user jumps to the page N +1, the operation generates log data information N for describing the operation, and at the moment, key information T can be extracted from the log Nn、U、AnAnd De. These key information are then combined to generate index n. For example, assuming that the index n is denoted by Din, it can be combined such that Din ═ Tn+U+An+ De), then reading the index N-1 from the cache region corresponding to the page N, as shown in fig. 5, at this time, loading the index N and the index N-1 into the log data information N to obtain the log N, storing the index N in the cache region corresponding to the page N +1, and finally deleting the index N-1 from the cache region corresponding to the page N.
Therefore, when data analysis is performed, if a user performs 3 operations, the index Di2 in the log 3 may be compared with indexes of other logs, and only the index Di2 that is the same as the index Di2 in the log 3 is found in the log 2 after comparison, and 1 index, that is, Di1, is found in the log 2, then the index Di1 in the log 2 may be compared with indexes of other logs, and only the index Di1 that is the same as the index Di1 in the log 2 is found in the log 1 after comparison, and the other indexes are not included in the log 1. Thus, the whole operational link can be derived as: page a → button a → page B → button B → page C → button C → page D.
By analogy, after the user performs n operations, the index Din-1 in the log n can be compared with indexes of other logs, only the index Din-1 which is the same as the log n is found in the log n-1 after the comparison, and 1 index, namely Din-2, is also found in the log n-1, so that the index Din-2 in the log n-1 can be corresponding to the indexes of other logs, only the index Din-2 which is the same as the log n-1 is found in the log n-2 after the comparison, the search is performed more than recursion continuously, and finally the log 1 is found. Thus, the whole operational link can be derived as: page a → button a → page B → button B → page C → … → page N → button N → page N + 1.
2. Scenario as shown in fig. 4:
assume that there are several operations after page C, so the entire operational link may be: page a → button a → page B → button B → page C → button C → page D … → page N → button N → page N + 1.
(1) And clicking a button A on a page A by a user, jumping to a page B, generating log data information 1 describing the operation, and extracting key information T from the log data information 1 at the moment1、U、A1And De. These key information are then combined to generate index 1. For example, assuming that index 1 is represented by Di1, it can be combined such that Di1 ═ T (T) 1+U+A1+ De), as shown in fig. 6, at this time, the index 1 may be loaded into the log data information 1, so as to obtain the log 1, and store the index 1 in the cache corresponding to the page B.
(2) And clicking a button B on a page B by a user, jumping to a page C, generating log data information 2 describing the operation, and extracting key information T from the log data information 2 at the moment2、U、A2And De. These key information are then combined to generate index 2. For example, assuming that index 2 is represented by Di2, it can be combined such that Di2 ═ T (T)2+U+A2+ De), then reading the index 1 from the cache region corresponding to the page B, as shown in fig. 6, at this time, the index 1 and the index 2 may be loaded into the log data information 2 to obtain the log 2, and the index 2 and the index 1 may be stored in the cache region corresponding to the page C, and the index 2 may be marked, it is worth mentioning that the marked index must be loaded into the next log data information, and finally the index 1 is deleted from the cache region corresponding to the page B.
(3) And clicking a button C by a user on the page C to jump to the page D, generating log data information 3 describing the operation, and sending the log data information to the userExtracting key information T from information 3 3、U、A3And De. These key information are then combined to generate index 3. For example, assuming that index 3 is represented by Di3, it can be combined such that Di3 ═ T (T)3+U+A3+ De), then reading the index 1 and the index 2 from the cache region corresponding to the page C, as shown in fig. 6, at this time, loading the index 1, the index 2, and the index 3 into the log data information 3 to obtain the log 3, storing the index 1, the index 2, and the index 3 in the cache region corresponding to the page D, marking the index 3, and finally deleting the index 1 and the index 2 from the cache region corresponding to the page C.
(4) And clicking a button D on a page D by a user to jump to a page E, generating log data information 4 describing the operation, and extracting key information T from the log data information 4 at the moment4、U、A4And De. These key information are then combined to generate index 4. For example, assuming that index 4 is represented by Di4, it can be combined such that Di4 ═ T (T)4+U+A4+ De), then reading index 1, index 2 and index 3 from the corresponding buffer of page D, as shown in fig. 6, index 1, index 2, index 3, and index 4 may be loaded into log data information 4 at this time, resulting in log 4, and may store index 1, index 2, index 3, and index 4 in the cache corresponding to page E, or may select 2 or 1 of the indexes from index 1 and index 2 according to a preset rule and load the selected index into log data information 4 to obtain log 4, for example, the preset rule may be to only reserve index 1, therefore, index 1, index 3 and index 4 can be loaded into log data information 4 to obtain log 4, or index 1, index 3 and index 4 can be stored in the corresponding cache region of page E, and marking the index 4, and finally deleting the index 1, the index 2 and the index 3 from the cache corresponding to the page D.
(5) And by analogy, when the user clicks the button N at the page N, the user jumps to the page N +1, the operation generates the log data information N for describing the operation, and at the moment, the key information T can be extracted from the log data information Nn、U、AnAnd De. Then, the key information is combined to generate an indexn is the same as the formula (I). For example, assuming that the index n is denoted by Din, it can be combined such that Din ═ Tn+U+An+ De), and then reading index information from the cache region corresponding to the page N, where the index information may include indexes correspondingly generated by all operations before the operation, where the index includes a marked index N-1, or may include only an index selected according to a preset rule during index delivery and the marked index N-1, and it may be understood that the marked index is directly reserved, and assuming that the preset rule is to reserve only the index 1 at this time, as shown in fig. 6, at this time, the index 1, the index N, and the index N-1 may be loaded into the log data information N to obtain the log N, and the index 1, the index N, and the index N-1 may be stored in the cache region corresponding to the page N +1, and finally, the index information is deleted from the cache region corresponding to the page N.
Therefore, when data analysis is performed and an operation link header needs to be searched, since the index 1 corresponding to the operation link header is loaded into each log data information in the whole log processing process to obtain each log, the log 1 can be quickly searched correspondingly without traversing one by one, thereby reducing the calculation amount and time consumption.
The embodiment skips to a second page by receiving a first operation on a first page, and generates first log data information according to the first operation; generating a first index according to the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. According to the scheme, the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user are loaded into the log data information generated by the current operation of the user to obtain the log corresponding to the current operation of the user, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs existing independently are logically integrated, the tracing of the whole operation link of the user can be realized, and the analysis of the user behavior is more convenient.
In addition, because some indexes corresponding to the operation or indexes at the head of the operation link are added into the log, the index generated corresponding to the operation at this time and the index generated corresponding to the operation at the last time are included, and thus the calculation amount and the search time of the operation tracing are reduced.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a playing apparatus for a multimedia file according to an embodiment of the present invention, where the playing apparatus for a multimedia file may include a first generating unit 301, a second generating unit 302, a third generating unit 303, a fourth generating unit 304, and an obtaining unit 305.
The first generating unit 301 is configured to receive a first operation on a first page, jump to a second page, and generate first log data information according to the first operation.
In general, a log records what a user has done on a certain device at a certain time.
It is understood that the log processing apparatus of the present embodiment can be applied in specific application software, such as WeChat, qq, or the like. For example, a user opens a certain application software, enters an initial page of the software, and at this time, the user clicks a certain button of the page, and then the terminal receives a first operation on the first page, and then jumps to a second page, and then the terminal generates first log data information according to the operation. It should be noted that this step may also be applied to any page in the application software, for example, when the user enters a certain page of the application software, at this time, the user clicks a certain button of the page, the terminal receives a first operation of the user on the first page, then jumps to the second page, that is, a next page entered by clicking on the page, and then the terminal receives the first operation, and then may generate the first log data information according to the first operation.
A second generating unit 302, configured to generate a first index according to first log data information, where the first log includes the first index and the first log data information.
The terminal can extract a plurality of pieces of key information from the first log data information after generating the first log data information; the key information is combined to generate a first index.
It should be noted that, after the terminal generates the first index, the first index may be stored in the cache region corresponding to the second page.
A third generating unit 303, configured to receive a second operation on the second page, and generate second log data information according to the second operation.
The terminal enters the second page from the first page at this time, and if the user clicks a certain button of the second page at this time, the terminal jumps to the third page, receives a second operation on the second page, and then can generate second log data information according to the second operation.
A fourth generating unit 304, configured to generate a second index according to the second log data information.
After the terminal generates the second log data information, a plurality of pieces of key information can be extracted from the second log data information; and combining the key information to generate a second index.
It should be noted that, after the terminal generates the second index, the second index may be stored in the cache region corresponding to the third page.
An obtaining unit 305, configured to obtain a second log according to the second index, the first index, and the second log data information.
After the terminal generates the second index, the terminal may read the first index from the cache region corresponding to the second page, and then obtain the second log according to the second index, the first index, and the second log data information, that is, load the first index and the second index to the second log data information, so as to obtain the second log. Optionally, to facilitate the log lookup, the first index and the second index may be loaded to a head position of the second log data information.
Referring to fig. 8, the apparatus may further include:
the first detecting unit 306 is configured to detect whether third index information exists in a cache region corresponding to the first page, where the third index information includes at least one third index.
The first reading unit 307 is configured to read the third index information from the cache region corresponding to the first page if it is detected that the third index information exists in the cache region corresponding to the first page.
The storage unit 308 is configured to store the first index and the third index information in a cache region corresponding to the second page.
The first deleting unit 309 is configured to delete the third index information from the cache area corresponding to the first page.
The second reading unit 310 is configured to read the first index and the third index information from the buffer corresponding to the second page.
The obtaining unit 305 is further configured to obtain a second log according to the second index, the first index, the third index information, and the second log data information.
The second detecting unit 311 is configured to detect whether the third index information includes a plurality of third indexes.
The selecting unit 312 is configured to select a preset number of third indexes according to a preset rule to obtain fourth index information if it is detected that the third index information includes multiple third indexes.
The obtaining unit 305 is further configured to obtain a second log according to the second index, the first index, the fourth index information, and the second log data information.
The second deleting unit 313 is configured to delete the first index and the third index information from the cache corresponding to the second page.
As shown in fig. 9, optionally, the apparatus may further include:
A receiving unit 314, configured to receive a tracing instruction for a second log, where the instruction is used to determine a previous log of the second log.
The obtaining unit 315 is configured to obtain the first index from the second log according to the instruction.
A third detecting unit 316, configured to detect whether the first index exists in other logs except the second log.
The determining unit 317 is configured to determine, if it is detected that the first index exists in other logs except the second log, that the first log is a previous log of the second log according to the first index.
The embodiment skips to a second page by receiving a first operation on a first page, and generates first log data information according to the first operation; generating a first index according to the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. According to the scheme, the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user are loaded into the log data information generated by the current operation of the user, the log corresponding to the current operation of the user is obtained, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs existing independently are logically integrated, the whole operation link of the user can be traced, and the user behavior can be more conveniently analyzed.
In addition, as shown in fig. 10, the terminal may include a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 10 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 406, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 406 and converted into audio data, which is then processed by the audio data output processor 408, and then transmitted to, for example, another terminal via the RF circuit 401, or the audio data is output to the memory 402 for further processing. The audio circuitry 406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 407, it provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the handset. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 408 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
receiving a first operation on a first page, jumping to a second page, and generating first log data information according to the first operation; generating a first index according to the first log data information, wherein the first log comprises the first index and the first log data information; receiving a second operation on a second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information.
Optionally, the processor 408 may be further configured to: detecting whether third index information exists in a cache region corresponding to the first page, wherein the third index information comprises at least one third index; if the third index information is detected to exist in the cache region corresponding to the first page, reading the third index information from the cache region corresponding to the first page; storing the first index and the third index information in a cache region corresponding to a second page; and deleting the third index information from the cache region corresponding to the first page.
Optionally, the processor 408 may be further configured to: reading the first index and the third index information from the cache region corresponding to the second page; obtaining a second log according to the second index, the first index, the third index information and the second log data information; and deleting the first index and the third index information from the cache region corresponding to the second page.
Optionally, the processor 408 may be further configured to: detecting whether the third index information contains a plurality of third indexes; if the third index information is detected to comprise a plurality of third indexes, selecting a preset number of third indexes according to a preset rule to obtain fourth index information; and obtaining a second log according to the second index, the first index, the fourth index information and the second log data information.
Optionally, the processor 408 may be further configured to: receiving a tracing instruction of a second log, wherein the tracing instruction is used for determining a previous log of the second log; acquiring a first index from the second log according to the instruction; detecting whether the first index exists in other logs except the second log; and if the first index is detected to exist in other logs except the second log, determining that the first log is the previous log of the second log according to the first index.
As can be seen from the above, in the terminal provided in this embodiment, by receiving a first operation on a first page, a jump is made to a second page, and first log data information is generated according to the first operation; generating a first index according to the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. According to the scheme, the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user are loaded into the log data information generated by the current operation of the user to obtain the log corresponding to the current operation of the user, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs existing independently are logically integrated, the tracing of the whole operation link of the user can be realized, and the analysis of the user behavior is more convenient.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the log processing method, and are not described herein again.
The log processing device provided in the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, and the like, and the log processing device and the log processing method in the above embodiments belong to the same concept, and any one of the methods provided in the log processing method embodiment may be run on the log processing device, and a specific implementation process thereof is described in the log processing method embodiment, and is not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any log processing method provided by the present invention. For example, the instructions may perform the steps of:
Receiving a first operation on a first page, jumping to a second page, and generating first log data information according to the first operation; generating a first index according to the first log data information, wherein the first log comprises the first index and the first log data information; receiving a second operation on a second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information.
As can be seen from the above, in the storage medium provided in the embodiment of the present invention, by receiving a first operation on a first page, a jump is made to a second page, and first log data information is generated according to the first operation; generating a first index according to the first log data information; receiving a second operation on the second page, and generating second log data information according to the second operation; generating a second index according to the second log data information; and obtaining a second log according to the second index, the first index and the second log data information. According to the scheme, the index generated corresponding to the current operation of the user and the index generated corresponding to the last operation of the user are loaded into the log data information generated by the current operation of the user to obtain the log corresponding to the current operation of the user, so that the log corresponding to the last operation of the user can be quickly found through the log corresponding to the current operation of the user, and the logs are associated through the index, so that the logs existing independently are logically integrated, the tracing of the whole operation link of the user can be realized, and the analysis of the user behavior is more convenient.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any log processing method provided in the embodiment of the present invention, beneficial effects that can be achieved by any log processing method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is provided for a log processing method, a log processing device, and a storage medium according to embodiments of the present invention, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A log processing method is applied to a terminal and is characterized by comprising the following steps:
Receiving a first operation on a first page, jumping to a second page, and generating first log data information according to the first operation;
generating a first index according to the first log data information, wherein the first log comprises the first index and the first log data information;
receiving a second operation on a second page, and generating second log data information according to the second operation;
generating a second index according to the second log data information;
obtaining a second log according to the second index, the first index and the second log data information;
receiving a tracing instruction of a second log, wherein the tracing instruction is used for determining a previous log of the second log;
acquiring a first index from the second log according to the instruction;
detecting whether the first index exists in other logs except the second log;
and if the first index is detected to exist in other logs except the second log, determining that the first log is the previous log of the second log according to the first index.
2. The log processing method according to claim 1, further comprising, after the step of generating a first index from the first log data information:
Detecting whether third index information exists in a cache region corresponding to the first page, wherein the third index information comprises at least one third index;
if the third index information is detected to exist in the cache region corresponding to the first page, reading the third index information from the cache region corresponding to the first page;
storing the first index and the third index information in a cache region corresponding to a second page;
and deleting the third index information from the cache region corresponding to the first page.
3. The log processing method according to claim 2, further comprising, after the step of generating a second index from the second log data information:
reading the first index and the third index information from the cache region corresponding to the second page;
the step of obtaining a second log according to the second index, the first index and the second log data information includes:
obtaining a second log according to the second index, the first index, the third index information and the second log data information;
and deleting the first index and the third index information from the cache region corresponding to the second page.
4. The log processing method according to claim 3, wherein after the step of reading the first index and the third index information from the cache corresponding to the second page, the method further comprises:
Detecting whether the third index information contains a plurality of third indexes;
if the third index information is detected to comprise a plurality of third indexes, selecting a preset number of third indexes according to a preset rule to obtain fourth index information;
the step of obtaining a second log according to the second index, the first index, the third index information and the second log data information includes:
and obtaining a second log according to the second index, the first index, the fourth index information and the second log data information.
5. A log processing device applied to a terminal is characterized by comprising:
the first generation unit is used for receiving a first operation on a first page, jumping to a second page and generating first log data information according to the first operation;
a second generation unit configured to generate a first index from the first log data information, wherein the first log includes the first index and the first log data information;
the third generation unit is used for receiving a second operation on a second page and generating second log data information according to the second operation;
a fourth generating unit configured to generate a second index according to the second log data information;
The obtaining unit is used for obtaining a second log according to the second index, the first index and the second log data information;
a receiving unit, configured to receive a tracing instruction for a second log, where the instruction is used to determine a previous log of the second log;
the acquisition unit is used for acquiring a first index from the second log according to the instruction;
a third detecting unit configured to detect whether the first index exists in a log other than the second log;
and the determining unit is used for determining that the first log is the previous log of the second log according to the first index if the first index is detected to exist in other logs except the second log.
6. The log processing apparatus of claim 5, wherein the apparatus further comprises:
the first detection unit is used for detecting whether third index information exists in a cache region corresponding to the first page, wherein the third index information comprises at least one third index;
the first reading unit is used for reading the third index information from the cache region corresponding to the first page if the third index information is detected to exist in the cache region corresponding to the first page;
The storage unit is used for storing the first index and the third index information in a cache region corresponding to a second page;
and the first deleting unit is used for deleting the third index information from the cache region corresponding to the first page.
7. The log processing apparatus of claim 6, wherein the apparatus further comprises:
the second reading unit is used for reading the first index and the third index information from the cache region corresponding to the second page;
the obtaining unit is further configured to obtain a second log according to the second index, the first index, the third index information, and the second log data information;
and the second deleting unit is used for deleting the first index and the third index information from the cache region corresponding to the second page.
8. The log processing apparatus of claim 7, wherein the apparatus further comprises:
a second detecting unit, configured to detect whether the third index information includes a plurality of third indexes;
a selecting unit, configured to select a preset number of third indexes according to a preset rule to obtain fourth index information if it is detected that the third index information includes a plurality of third indexes;
The obtaining unit is further configured to obtain a second log according to the second index, the first index, the fourth index information, and the second log data information.
9. A storage medium having stored therein processor-executable instructions, the processor providing the log processing method of any one of claims 1 to 4 by executing the instructions.
CN201810926506.3A 2018-08-15 2018-08-15 Log processing method and device and storage medium Active CN109240986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810926506.3A CN109240986B (en) 2018-08-15 2018-08-15 Log processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810926506.3A CN109240986B (en) 2018-08-15 2018-08-15 Log processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109240986A CN109240986A (en) 2019-01-18
CN109240986B true CN109240986B (en) 2021-08-31

Family

ID=65069993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810926506.3A Active CN109240986B (en) 2018-08-15 2018-08-15 Log processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109240986B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382387B (en) * 2020-03-06 2023-10-24 深圳市盟天科技有限公司 Webpage access method, device, equipment and storage medium based on applet

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302700A (en) * 2014-06-13 2016-02-03 阿里巴巴集团控股有限公司 Method and equipment for recording user operation on touch terminal
CN106484738A (en) * 2015-09-01 2017-03-08 腾讯科技(深圳)有限公司 A kind of page processing method and device
CN107102795A (en) * 2017-05-31 2017-08-29 努比亚技术有限公司 A kind of log recording method, mobile terminal and computer-readable recording medium
CN107229665A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 A kind of method for page jump and device
CN107688568A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 Acquisition method and device based on web page access behavior record
WO2018039914A1 (en) * 2016-08-30 2018-03-08 华为技术有限公司 Method for copying data, and user terminal
CN107818005A (en) * 2017-09-19 2018-03-20 五八有限公司 The page jump processing method and processing device of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731807B (en) * 2013-12-20 2018-06-05 北京风行在线技术有限公司 A kind of method and device of statistics and analysis page jump data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302700A (en) * 2014-06-13 2016-02-03 阿里巴巴集团控股有限公司 Method and equipment for recording user operation on touch terminal
CN106484738A (en) * 2015-09-01 2017-03-08 腾讯科技(深圳)有限公司 A kind of page processing method and device
CN107229665A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 A kind of method for page jump and device
CN107688568A (en) * 2016-08-03 2018-02-13 腾讯科技(深圳)有限公司 Acquisition method and device based on web page access behavior record
WO2018039914A1 (en) * 2016-08-30 2018-03-08 华为技术有限公司 Method for copying data, and user terminal
CN107102795A (en) * 2017-05-31 2017-08-29 努比亚技术有限公司 A kind of log recording method, mobile terminal and computer-readable recording medium
CN107818005A (en) * 2017-09-19 2018-03-20 五八有限公司 The page jump processing method and processing device of application program

Also Published As

Publication number Publication date
CN109240986A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106502703B (en) Function calling method and device
CN106293738B (en) Expression image updating method and device
CN104679724A (en) Page noting method and device
CN112749074B (en) Test case recommending method and device
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107317828B (en) File downloading method and device
CN105095161B (en) Method and device for displaying rich text information
CN106682189B (en) File name display method and device
CN106303616B (en) Play control method, device and terminal
CN109240986B (en) Log processing method and device and storage medium
CN105159655B (en) Behavior event playing method and device
CN105528220B (en) Method and device for loading dynamic shared object
CN110347578B (en) Application testing method and device and storage medium
CN108269223B (en) Webpage graph drawing method and terminal
CN106230919B (en) File uploading method and device
CN113065083B (en) Page processing method and device, electronic equipment and storage medium
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN107346347B (en) Webpage table display method and device
CN106657278B (en) Data transmission method and device and computer equipment
CN105468597B (en) Method and device for acquiring jump distance
CN111405649B (en) Information transmission method and device and mobile terminal
CN107066116B (en) Character string generation method, character analysis method and device

Legal Events

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