CN109240986A - A kind of log processing method, device and storage medium - Google Patents
A kind of log processing method, device and storage medium Download PDFInfo
- Publication number
- CN109240986A CN109240986A CN201810926506.3A CN201810926506A CN109240986A CN 109240986 A CN109240986 A CN 109240986A CN 201810926506 A CN201810926506 A CN 201810926506A CN 109240986 A CN109240986 A CN 109240986A
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of log processing method, device and storage mediums, this method comprises: receiving the first operation to first page, jump to second page, and generate the first daily record data information according to the first operation;The first index is generated according to the first daily record data information, wherein the first log includes the first index and the first daily record data information;The second operation to second page is received, and the second log data information is generated according to the second operation;The second index is generated according to the second log data information;According to the second index, the first index and the second log data information, the second log is obtained.The present invention can make the log of individualism obtain integration in logic, so as to realize that the whole operation link to user is traced to the source, easily facilitate and analyze user behavior.
Description
Technical field
The present invention relates to the communications field more particularly to a kind of log processing methods, device and storage medium.
Background technique
With the continuous development of terminal technology, the terminals such as mobile phone, tablet computer using more and more extensive.User can be
Various application software are downloaded in terminal, and user is during using application software, it will usually generate corresponding day
Will.
Currently, user's every carry out once-through operation in application software, is all self-existent according to operation generation one
Log, therefore be just all difficult between the log of an operational chain road to generate association at last;In order to make to associate between log, every
In one log increase operation link information, that is to say, that by user certain time all operational sets together, by it
It is incorporated in each log, however the information content that every log carries all is limited, therefore every log can only carry
The partial information of whole operational chain road can not carry whole operation link information, and partial information can not be described completely
Whole operation link.Further, since increasing operation link information, the data volume that every log reports has significant increase,
And in general, since operation link information can be repeated to report by a plurality of log, log can have redundancy between each other.
Summary of the invention
The embodiment of the present invention provides a kind of log processing method, device and storage medium, can will only according to index
The log of one operational chain road is associated, and reduces the data volume that log reports, and also avoids generating redundancy between log.
The embodiment of the present invention provides a kind of log processing method, comprising:
The first operation to first page is received, jumps to second page, and generate first according to first operation
Will data information;
According to the first daily record data information generate first index, wherein the first log include it is described first index and
The first daily record data information;
The second operation to second page is received, and the second log data information is generated according to second operation;
The second index is generated according to the second log data information;
According to second index, first index and the second log data information, the second log is obtained.
The embodiment of the present invention also provides a kind of log processing device, comprising:
First generation unit jumps to second page for receiving to the first of first page the operation, and according to described the
One operation generates the first daily record data information;
Second generation unit, for generating the first index according to the first daily record data information, wherein the first log packet
Include first index and the first daily record data information;
Third generation unit generates second for receiving the second operation to second page, and according to second operation
Daily record data information;
4th generation unit, for generating the second index according to the second log data information;
Unit is obtained, for obtaining according to second index, first index and the second log data information
Second log.
The embodiment of the present invention also provides a kind of storage medium, is stored with processor-executable instruction, and the processor is logical
It crosses and described instruction offer such as above-mentioned log processing method is provided.
Compared with the existing technology, user by this time being operated the corresponding index generated and user's last time by the embodiment of the present invention
The corresponding index generated of operation is loaded into user and this time operates in the daily record data information generated, obtains user and this time operates correspondence
Log operate corresponding log, day so that this time operating corresponding log by user and can quickly find user's last time
It is associated between will by index, so that the log of individualism obtains integration in logic, so as to realize to user's
Whole operation link is traced to the source, and is easily facilitated and is analyzed user behavior.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made
And other beneficial effects are apparent.
Fig. 1 is the schematic diagram of a scenario of log processing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of log processing method provided in an embodiment of the present invention;
Fig. 3 is another flow diagram of log processing method provided in an embodiment of the present invention;
Fig. 4 is the interface schematic diagram of log processing method provided in an embodiment of the present invention;
Fig. 5 is the key message schematic diagram of log processing method provided in an embodiment of the present invention;
Fig. 6 is another key message schematic diagram of log processing method provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of log processing device provided in an embodiment of the present invention;
Fig. 8 is another structural schematic diagram of log processing device provided in an embodiment of the present invention;
Fig. 9 is the another structural schematic diagram of log processing device provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute
The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable
Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data
For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text
Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below
Also it may be implemented in hardware.
Term as used herein " module " can regard the software object to execute in the arithmetic system as.It is as described herein
Different components, module, engine and service can be regarded as the objective for implementation in the arithmetic system.And device as described herein and side
Method is preferably implemented in the form of software, can also be implemented on hardware certainly, within that scope of the present invention.
It should be noted that operation link be user carried out n times operation after all operations and the corresponding page jump
The set turned, such as user click button A in page A, enter page B, then click button B in page B, enter
Page C, then clicks button C in page C, enters page D, operate link at this time are as follows: page A → button A → page B
→ button B → page C → button C → page D.Operation link is traced to the source, and log can all be generated since user operates every time by referring to,
It can finally find what user's operation for the first time generated by certain mode according to the log that user's last time operation generates
Log, to obtain whole operation link.
Referring to Fig. 1, Fig. 1 is the schematic diagram of a scenario of log processing method provided by the embodiment of the present invention.
The scene may include log processing device, which can integrate in mobile phone or tablet computer
Etc. in terminals, wherein the log processing device can specifically be applied in application software, be mainly used for receiving user soft to application
First operation of the first page of part jumps to second page, and generates the first daily record data information according to the first operation;According to
First daily record data information generates the first index, wherein the first log includes the first index and the first daily record data information;Then
Second operation of the user to the second page of application software is received, and the second log data information is generated according to the second operation;Root
The second index is generated according to the second log data information;Finally according to the second index, the first index and the second log data information, obtain
To the second log.
Referring to Fig. 2, Fig. 2 is the flow diagram of log processing method provided in an embodiment of the present invention, method includes:
In step s101, the first operation to first page is received, jumps to second page, and give birth to according to the first operation
At the first daily record data information.
Wherein, the network equipment, system and service routine etc. can all generate the logout for crying log in running,
Every a line log all recites the description of date, time, user and relevant operation, it is popular for, log is exactly to record some
What user done in certain equipment in some time.
It is understood that the log processing method of the present embodiment can be applied in specific application software, as wechat,
Or qq etc..For example, user opens certain application software, into the initial page of software, at this time user to the page some
Button is clicked, then terminal is received by the first operation to first page at this time, then jumps to second page, then eventually
End generates the first daily record data information according to the operation.It is worth noting that the step can also be applied in application software
Any page on, for example, when user enters wherein some page of application software, at this point, user to the page certain
A button is clicked, and terminal is received by first operation of the user to first page at this time, then jumps to second page,
It is exactly to carry out next page of clicking operation entrance in the page, after then terminal receives first operation, so that it may root
The first daily record data information is generated according to first operation.
In step s 102, the first index is generated according to the first daily record data information.
Wherein, the first log includes the first index and the first daily record data information.
First daily record data information may include: user's unique identifier, timestamp, facility information and operation description letter
Breath.Terminal can extract a plurality of key message from the first daily record data information after generating the first daily record data information,
Such as key message can be user's unique identifier, timestamp, facility information and operation description information etc.;By these key letters
Breath is combined, and generates the first index.
Wherein it is possible to generate the first index with form below.
For example, the operation of user can be described by table 1, i.e., following crucial letter is extracted from the first daily record data information
Breath:
The operation of 1 user of table describes
Be combined to key message as above, so that it may obtain: when which user in which platform equipment has done what.
It is then possible to produce an index after above-mentioned key message is combined, is handled, which has unique
Property, there is and only represent the daily record data information that this user this time operates generation.
Wherein, index can be made of following formula:
It indexes (Di)=fun (U+T+A+De).
It is worth noting that as shown in table 1, since each User ID is different, and every equipment can all have uniquely
One international mobile equipment identification number (IMEI, International Mobile Equipment Identity) or general
Unique identifier (UUID, Universally Unique Identifier) allows for index in this way and is provided with uniqueness.
It should be noted that it is corresponding the first index can be stored in second page after terminal generates the first index
Buffer area in.
In step s 103, the second operation to second page is received, and the second daily record data is generated according to the second operation
Information.
Terminal has entered second page via first page at this time, if at this time user click second page some by
Button, jumps to the third page, and terminal receives the second operation to second page, and the then can be generated according to second operation
Two daily record data information.
In step S104, the second index is generated according to the second log data information.
Wherein, the second log data information may include: that user's unique identifier, timestamp, facility information and operation are retouched
State information.Terminal can extract a plurality of key from the second log data information after generating the second log data information
Information, wherein key message can be with are as follows: user's unique identifier, timestamp, facility information and operation description information;By these
Key message is combined, and generates the second index.
It should be noted that it is corresponding the second index can be stored in the third page after terminal generates the second index
Buffer area in.
In step s105, according to the second index, the first index and the second log data information, the second log is obtained.
Terminal can read the first index, then after the index of generation second out of second page corresponding buffer area
According to the second index, the first index and the second log data information, the second log is obtained, i.e., is added the second index, the first index
It is loaded onto the second log data information, obtains the second log.Optionally, for the ease of the lookup of log, first index and second
Index can be loaded onto the head position of the second log data information.
The present embodiment jumps to second page, and give birth to according to the first operation by receiving the first operation to first page
At the first daily record data information;The first index is generated according to the first daily record data information, wherein the first log includes the first index
And the first daily record data information;The second operation to second page is received, and the second daily record data letter is generated according to the second operation
Breath;The second index is generated according to the second log data information;According to second index, first index and the second log data information,
Obtain the second log.The program operates the rope of corresponding generation by the way that user this time to be operated to the corresponding index generated and user's last time
Draw and be loaded into user's daily record data information that this time operation generates, obtains user and this time operate corresponding log, so that passing through
User, which this time operates corresponding log and can quickly find user's last time, operate corresponding log, passes through between log and indexes
To association, so that the log of individualism obtains integration in logic, so as to realize that the whole operation link to user traces back
Source easily facilitates and analyzes user behavior.
According to the log processing method that above-described embodiment describes, citing is described further below.In the present embodiment,
Will be by taking log processing method be applied in k song software as an example, corresponding to be described from the angle of log processing device, the log
Processing unit specifically can integrate in the terminal.
Referring to Fig. 3, Fig. 3 is another flow diagram of log processing method provided in an embodiment of the present invention.
In step s 201, the first operation to first page is received, jumps to second page, and give birth to according to the first operation
At the first daily record data information.
It is assumed that current time are as follows: 25 minutes and 30 seconds 11 points of on April 15th, 2018, k song of the user A on mobile phone
The page A of software clicks button A, at this point, terminal receives the clicking operation to the button A of page A, to jump from page A
Page B is gone to, then terminal generates daily record data information 1 according to the clicking operation, which can be used for
User is described in page A, button A is clicked, jumps to page B.
In step S202, the first index is generated according to the first daily record data information.
Wherein, the first log includes the first index and the first daily record data information.
First daily record data information may include: user's unique identifier, timestamp, facility information and operation description letter
Breath.Terminal can extract crucial letter as shown in Table 2 after generating daily record data information 1 from daily record data information 1
Breath after then these key messages being combined, and/or be handled, generates an index, which has uniqueness,
Have and only represent user A and this time click the daily record data information 1 that button A operation generates, index of reference 1 indicates daily record data letter herein
The index of breath 1.
The operation of 2 user A of table describes
As can be seen from Table 2, when the key message extracted from daily record data information 1 include User ID or user only
When one identifier (U), timestamp (T), facility information (De) and operation description information (A) these types, that is, produce one only
One indicates that user A this time clicks the index 1 of button A operation.
In step S203, it whether there is third index information in the corresponding buffer area of detection first page.
In step S204, if detecting the corresponding cache bank memories of first page in third index information, from first
Third index information is read in the corresponding buffer area of the page.
In step S205, the first index is stored in the corresponding buffer area of second page with third index information.
In step S206, third index information is deleted out of first page corresponding buffer area.
It should be noted that the page 2 will be jumped to when terminal receives the operation 1 to the page 1, when receiving pair
When the operation 2 of the page 2, the page 3 will be jumped to, and so on, it, will when terminal receives the operation n-1 to page n-1
Jump to page n.And terminal often receives once-through operation, and an index will be generated according to the operation, then deposits the index
Storage is in the corresponding buffer area of that page jumped to.
For example, when terminal is received, to the page 1, (assuming that the page 1 is initial page, initial page is to open application software
Enter first page) operation 1 when, jump to the page 2, according to operation 1 generate daily record data information 1, according to log number
It is believed that breath 1 generates index 1, index 1 is stored in the corresponding buffer area of the page 2, it is corresponding to need to detect the page 1 for terminal at this time
It whether there is index information in buffer area, and since the page 1 is initial page, it is not present in the corresponding buffer area of the page 1
Then index 1 can be stored in the corresponding buffer area of the page 2 by index information;When terminal receives the operation 2 to the page 2
When, the page 3 is jumped to, daily record data information 2 is generated according to operation 2, index 2 is generated according to daily record data information 2, at this point, eventually
It whether there is index information in the end detection corresponding buffer area of the page 2, it is corresponding since index 1 is stored in the page 2 before
It in buffer area, therefore can detecte the corresponding cache bank memories of the page 2 in index information, that is, index 1, terminal reads index 1,
Then index 1 and index 2 can be stored in the corresponding buffer area of the page 3, can also only stores index 2;When terminal connects
When receiving the operation 3 to the page 3, the page 4 is jumped to, daily record data information 3 is generated according to operation 3, according to daily record data information 3
Index 3 is generated, whether there is index information in the corresponding buffer area of the page 3 of terminal detection at this time, since 1 He will be indexed before
Index 2 is stored in the corresponding buffer area of the page 3, therefore terminal can detecte the corresponding cache bank memories of the page 3 in index 1
With index 2, terminal reading index 1 and index 2, it is worth noting that, the index 3 that terminal generates at this time is that certain needs are stored in
In the corresponding buffer area of the page 4, and indexing 1 and indexing 2 can then choose whether to need to be stored in the page 4 according to actual needs
In corresponding buffer area.
In addition, in the actual operation process, page can be entered by a series of operation (i.e. operation link 1) by the page 1
Face 4 can also operate (i.e. operation link 2) by other by the page 1 and therefore not do and locate to the buffer area of the page into the page 4
If reason, due to the difference of operation, in the corresponding buffer area of some pages may storage not just operational chain road
Index information, may both exist operation link 1 index information, it is also possible to exist operation link 2 index information, in this way when
User is when entering the page 4 by operation link 1 by the page 1, it is possible that is got is the operation corresponding index of link 2 letter
Breath, so that careless mistake occurs in whole process, therefore whenever terminal reads out index information from the corresponding buffer area of some page
Later, so that it may delete index information in the corresponding buffer area of the page.
Wherein, third index information is indexed including at least one third.Based on foregoing description, we it is understood that
First page may be some page of the centre of whole operational chain road, all before may being stored in corresponding buffer area
The corresponding index generated of operation, therefore more than one indexes, it is also possible to be only stored with by operated by certain jump to this first
The page is operated the index of corresponding generation by this, it is also possible to which first page is initial page, therefore the corresponding buffer area of first page
It is interior that any index may be not present.
Therefore, when detecting in the corresponding buffer area of first page with the presence or absence of third index information, it is understood that there may be following
Several situations.
The first situation: if detecting the corresponding cache bank memories of first page in third index information, from first page
Third index information is read in the corresponding buffer area in face, it at this time can be according to the first index, third index information and the first log
Data information obtains the first log, it can the first index and the third index information read are directly loaded onto first
In daily record data information, the first log is obtained, that is to say, that, can be by it regardless of third index information includes how many indexes
It is loaded onto the first daily record data information, it is corresponding then the first index can be stored in second page with third index information
In buffer area, third index information can finally be deleted out of first page corresponding buffer area.
Second situation: if detecting the corresponding cache bank memories of first page in third index information, from first page
Third index information is read in the corresponding buffer area in face, can detecte whether third index information includes a plurality of index at this time, if
Third index information includes a plurality of index, then can according to need and choose some indexes, then can be according to the first index, selection
These indexes and the first daily record data information out obtain the first log, i.e., add the first index and these indexes selected
It is loaded onto the first daily record data information, obtains the first log, the first index and third index information can be stored in the at this time
In the corresponding buffer area of two pages, the first index and some indexes selected from third index information can also be stored in
In the corresponding buffer area of second page, third index information can finally be deleted out of first page corresponding buffer area.
The third situation: if detecting, there is no third index informations in the corresponding buffer area of first page, can root
According to the first index and the first daily record data information, the first log is obtained, i.e., the first index is directly loaded onto the first daily record data
In information, the first log is obtained, then the first index is stored in the corresponding buffer area of second page.
In step S207, the second operation to second page is received, and the second daily record data is generated according to the second operation
Information.
Page B has been jumped to as shown in figure 4, being operated by page A by click button A at this time, that is to say, that current place
In the page B of k song software, it is assumed that current time are as follows: 26 minutes and 30 seconds 11 points of on April 15th, 2018, k song of the user A on mobile phone
The page B of software clicks button B, at this point, terminal receives the clicking operation to the button B of page B, to jump from page B
Page C is gone to, then terminal generates daily record data information 2 according to the clicking operation, which can be used for
User is described in page B, button B is clicked, jumps to page C.
In step S208, the second index is generated according to the second log data information.Second log data information can wrap
It includes: user's unique identifier, timestamp, facility information and operation description information.Terminal after generating daily record data information 2,
Key message as shown in table 3 can be extracted from daily record data information 2, then these key messages can be subjected to group
After closing, and/or handling, an index is generated, which has uniqueness, has and only represents user A this time clicking operation generation
Daily record data information 2, herein index of reference 2 indicate daily record data information 2 index.
The operation of 3 user A of table describes
As can be seen from Table 3, when the information extracted from daily record data information 2 includes that User ID or user uniquely mark
When knowing symbol (U), timestamp (T), facility information (De) and operation description information (A) these types, that is, produce an only table
Show the index 2 of this clicking operation of user A.
In step S209, the first index and third index information are read out of second page corresponding buffer area.
In step S210, whether detection third index information includes a plurality of third index.
In step S211, if detecting, third index information is indexed comprising a plurality of third, is chosen according to preset rules
The third of preset quantity indexes, and obtains the 4th index information.
In step S212, according to the second index, the first index, the 4th index information and the second log data information, obtain
To the second log.
In step S213, the first index is deleted out of second page corresponding buffer area with third index information.
For the first situation being described above, the third read out of first page corresponding buffer area is indexed and is believed
Breath and first is indexed and is stored in the corresponding buffer area of second page, does not do any processing to third index information before, when
When reading the first index and third index information out of second page corresponding buffer area, third index information can not be appointed
Where reason obtains the second log directly according to the second index, the first index, third index information i.e. the second log data information,
Directly the first index, the second index and third index information are loaded onto the second log data information, obtain the second log;
It can also be after reading the first index and third index information out of second page corresponding buffer area, detection third index letter
It whether include that a plurality of third indexes in breath, that is to say, that it whether include at least two third indexes in detection third index information,
If detecting in third index information includes at least two third indexes, the third rope of preset quantity is chosen according to preset rules
Draw, obtains the 4th index information.It is assumed that this time operation link includes jumping between 10 pages, first page is this
8th page of 10 pages, second page are to carry out the 9th page that operation jumps in the 8th page, it is assumed that preceding 8
The corresponding 7 articles of indexes generated of 7 operations of a page are stored in the buffer area of the 9th page, and at this point, preset rules can
With are as follows: the 1st operation is selected from 7 articles of indexes to the corresponding 3 articles of indexes generated of the 3rd operation, then can be indexed this 3
It combines, obtains the 4th index information, it finally can be according to the second index, the first index, the 4th index information and second day
Will data information obtains the second log, i.e., the first index, the second index and the 4th index information is loaded onto the second daily record data
In information, obtain the second log, finally can by the first index with third index information out of second page corresponding buffer area
It deletes.It is worth noting that preset rules can be arranged according to the actual situation, it is not specifically limited herein.For example, being retouched above
In the example stated, preset rules can be with are as follows: selects the corresponding 1 article of index generated of the 1st operation, obtains the 4th index letter
Breath;Preset rules can be with are as follows: selects the 1st operation, the 3rd operation, the 4th operation and corresponding 4 generated of the 7th operation
Item index, obtains the 4th index information.
For the second situation being described above, it is assumed that select at this time by first index and from third index information
Some indexes are stored in the corresponding buffer area of second page, when reading the first index from second page and from third index information
In select these index when, can directly according to second index, first index, selected from third index information one
A little indexes and the second log data information, obtain the second log, i.e., by the first index, the second index and from third index information
The some indexes selected are loaded onto the second log data information, obtain the second log, can also be read from second page
First indexes and after these indexes selected in third index information, is selected from these indexes according to preset rules
The index of preset quantity is combined into the 4th index information, then according to the second index, the first index, the 4th index information and the
Two data informations obtain the second log, i.e., the first index, the second index and the 4th index information are loaded onto the second daily record data
In information, the second log is obtained, it finally can be by the first index and these indexes for being selected from third index information from the
It is deleted in the corresponding buffer area of two pages.
For the third situation being described above, it is only stored with the first index in the corresponding buffer area of second page, therefore
The first index can be read directly out of second page corresponding buffer area, then according to the second index, the first index and second
Daily record data information obtains the second log, i.e., the first index and the second index is loaded onto the second log data information, is obtained
Second log finally deletes the first index out of second page corresponding buffer area.
In some embodiments, when wanting to trace to the source whole operation link, this method can also include:
The instruction of tracing to the source to the second log is received, which is used to determine previous log of the second log;
The first index is obtained from the second log according to the instruction;
It detects in other logs in addition to the second log with the presence or absence of the first index;
If detecting, there are the first indexes in other logs in addition to the second log, determine first according to the first index
Log is previous log of the second log.
When needing to trace to the source whole operation link, the last item log of whole operation link can be first obtained, then
Obtaining its last time from the last item log operates corresponding index, then by its corresponding index of the last time operation with
The index of other logs compares, and compares the previous log that identical log is the last item log.And so on, often
A upper log for current log can be once obtained according to current log, so recycled, it can be by whole operation link
It traces to the source.
Hereinafter, aiding in illustrating the scheme of the present embodiment for the process of link is operated with two.
1, scene as shown in Figure 4:
Assuming that there are also operating several times after page C, therefore whole operation link can be with are as follows: page A → button A → page
B → button B → page C →...→ page N → button N → page N+1.
(1), user clicks button A, jumps to page B in page A, this operation generates the log number of description this time operation
It is believed that breath 1, can extract key message T from daily record data information 1 at this time1、U、A1,De.Then by these key messages into
Row combination, generates index 1.For example, it is assumed that index 1 is indicated with Di1, can combine in this way, Di1=(T1+U+A1+ De), such as Fig. 5
It is shown, index 1 can be loaded onto daily record data information 1 at this time, obtain log 1, and index 1 is stored in page B and is corresponded to
Buffer area in.
(2), user clicks button B, jumps to page C in page B, this operation generates the log number of description this time operation
It is believed that breath 2, can extract key message T from daily record data information 2 at this time2、U、A2,De.Then by these key messages into
Row combination, generates index 2.For example, it is assumed that index 2 is indicated with Di2, can combine in this way, Di2=(T2+U+A2+ De), then from
Index 1 is read in the corresponding buffer area of page B, as shown in figure 5, index 1 and index 2 can be loaded onto daily record data letter at this time
In breath 2, log 2 is obtained, and index 2 can be stored in the corresponding buffer area of page C, finally corresponds to index 1 from page B
Buffer area in delete.
(3), and so on, user clicks button N, jumps to page N+1 in page N, this operation generates description this time
The daily record data information n of operation, can extract key message T from log n at this timen、U、An,De.Then these keys are believed
Breath is combined, and generates index n.For example, it is assumed that index n is indicated with Din, can combine in this way, Din=(Tn+U+An+ De), so
Index n-1 is read out of page N corresponding buffer area afterwards, as shown in figure 5, index n and index n-1 can be loaded the Summer Solstice or the Winter Solstice at this time
In will data information n, log n is obtained, and index n can be stored in the corresponding buffer area of page N+1, will finally index n-
1 deletes out of page N corresponding buffer area.
Therefore, when carrying out data analysis, if user carried out 3 times operation, can by log 3 index Di2 with
The index of other logs compares, and only finding in log 2 after comparison has index Di2 identical with log 3, and searches
It further include 1 index into log 2, i.e. Di1 can then carry out the index of index Di1 and other logs in log 2 pair
Than only finding in log 1 after comparison has index Di1 identical with log 2, and in log 1 no longer includes other indexes.
Therefore it can be concluded that whole operation link are as follows: page A → button A → page B → button B → page C → button C → page D.
And so on, after user has carried out n times operation, then Din-1 and other logs can will be indexed in log n
Index compares, and only finding in log n-1 after comparison has index Din-1 identical with log n, and finds log
It further include 1 index in n-1, i.e. Din-2 can then carry out the index of index Din-2 and other logs in log n-1 pair
It answers, only finding in log n-2 after comparison has index Din-2 identical with log n-1, more than continuous recurrence searches, most
Log 1 is found eventually.Therefore it can be concluded that whole operation link are as follows: page A → button A → page B → button B → page C
→...→ page N → button N → page N+1.
2, scene as shown in Figure 4:
Assuming that there are also operating several times after page C, therefore whole operation link can be with are as follows: page A → button A → page
B → button B → page C → button C → page D ... → page N → button N → page N+1.
(1), user clicks button A, jumps to page B in page A, this operation generates the log number of description this time operation
It is believed that breath 1, can extract key message T from daily record data information 1 at this time1、U、A1,De.Then by these key messages into
Row combination, generates index 1.For example, it is assumed that index 1 is indicated with Di1, can combine in this way, Di1=(T1+U+A1+ De), such as Fig. 6
It is shown, index 1 can be loaded onto daily record data information 1 at this time, obtain log 1, and index 1 is stored in page B and is corresponded to
Buffer area in.
(2), user clicks button B, jumps to page C in page B, this operation generates the log number of description this time operation
It is believed that breath 2, can extract key message T from daily record data information 2 at this time2、U、A2,De.Then by these key messages into
Row combination, generates index 2.For example, it is assumed that index 2 is indicated with Di2, can combine in this way, Di2=(T2+U+A2+ De), then from
Index 1 is read in the corresponding buffer area of page B, as shown in fig. 6, index 1 and index 2 can be loaded onto daily record data letter at this time
In breath 2, log 2 is obtained, and index 2 and can will index 1 and be stored in the corresponding buffer area of page C, and index 2 can be done
It marks out, it is worth noting that, the index being marked has to be loaded onto next daily record data information, will finally index 1
It is deleted out of page B corresponding buffer area.
(3), user clicks button C, jumps to page D in page C, this operation generates the log number of description this time operation
It is believed that breath 3, can extract key message T from daily record data information 3 at this time3、U、A3,De.Then by these key messages into
Row combination, generates index 3.For example, it is assumed that index 3 is indicated with Di3, can combine in this way, Di3=(T3+U+A3+ De), then from
Index 1 and index 2 are read in the corresponding buffer area of page C, as shown in fig. 6, index 1, index 2 and index 3 can be added at this time
It is loaded onto daily record data information 3, obtains log 3, and index 1, index 2 and index 3 can be stored in the corresponding caching of page D
It in area, and makes a mark to index 3, finally index 1 and 2 will be indexed deleted out of page C corresponding buffer area.
(4), user clicks button D, jumps to page E in page D, this operation generates the log number of description this time operation
It is believed that breath 4, can extract key message T from daily record data information 4 at this time4、U、A4,De.Then by these key messages into
Row combination, generates index 4.For example, it is assumed that index 4 is indicated with Di4, can combine in this way, Di4=(T4+U+A4+ De), then from
Index 1, index 2 and index 3 are read in the corresponding buffer area of page D, as shown in fig. 6, at this time can be by index 1, index 2, rope
Draw 3 and index 4 and be loaded onto daily record data information 4, obtains log 4, and index 1, index 2, index 3 and index 4 can be deposited
Storage can also choose wherein 2 or 1 bar rope from index 1, index 2 according to preset rules in the corresponding buffer area of page E
Draw and be loaded onto daily record data information 4, obtain log 4, such as preset rules can be only to reserve index in 1, therefore it can be with
Index 1, index 3 and index 4 are loaded onto daily record data information 4, log 4 is obtained, it can also be by index 1, index 3 and index
4 are stored in the corresponding buffer area of page E, and make a mark to index 4, will finally index 1, index 2 and index 3 from page D
It is deleted in corresponding buffer area.
(5), and so on, user clicks button N, jumps to page N+1 in page N, this operation generates description this time
The daily record data information N of operation can extract key message T from daily record data information N at this timen、U、An,De.Then by this
A little key messages are combined, and generate index n.For example, it is assumed that index n is indicated with Din, can combine in this way, Din=(Tn+U+
An+ De), index information then is read out of page N corresponding buffer area, before which may include operation herein
All corresponding indexes generated of operation, including a labeled index n-1, during index transmitting can also only be included in
The index and labeled index n-1 chosen according to preset rules, it is to be understood that labeled index is directly to retain
, it is assumed that preset rules are only to reserve index 1 at this time, as shown in fig. 6, index 1, index n and index n-1 can be added at this time
It is loaded onto daily record data information N, obtains log N, and it is corresponding index 1, index n and index n-1 can be stored in page N+1
In buffer area, finally index information is deleted out of page N corresponding buffer area.
Therefore, when carrying out data analysis, if desired when search operation link stem, due to entirely to the processing of log
In the process, all the corresponding index 1 of operation link stem is loaded onto each daily record data information, obtains each log, because
This can not need to traverse one by one, can correspond to quickly and find log 1, to reduce calculation amount and time loss.
The present embodiment jumps to second page, and give birth to according to the first operation by receiving the first operation to first page
At the first daily record data information;The first index is generated according to the first daily record data information;The second operation to second page is received,
And the second log data information is generated according to the second operation;The second index is generated according to the second log data information;According to second
Index, the first index and the second log data information, obtain the second log.User by this time being operated corresponding generate by the program
Index and user's last time operate the index of corresponding generation and be loaded into user and this time operate in the daily record data information of generation, obtain
User this time operates corresponding log, so that user's last time can quickly be found by this time operating corresponding log by user
Corresponding log is operated, is associated between log by index, so that the log of individualism obtains integration in logic, thus
It may be implemented to trace to the source to the whole operation link of user, easily facilitate and user behavior is analyzed.
Further, since joined the index that the corresponding index of some operations either operates link stem in log, no
It only include the index of the corresponding index generation corresponding with last time operation generated of this operation, to reduce the calculating that operation is traced to the source
Amount and lookup time.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of the playing device of multimedia file provided in an embodiment of the present invention,
Described in multimedia file playing device may include the first generation unit 301, the second generation unit 302, third generate it is single
First 303, the 4th generation unit 304 and obtain unit 305.
Wherein, the first generation unit 301 jumps to second page, and root for receiving the first operation to first page
The first daily record data information is generated according to the first operation.
Wherein, the network equipment, system and service routine etc. can all generate the logout for crying log in running,
Every a line log all recites the description of date, time, user and relevant operation, it is popular for, log is exactly to record some
What user done in certain equipment in some time.
It is understood that the log processing device of the present embodiment can be applied in specific application software, as wechat,
Or qq etc..For example, user opens certain application software, into the initial page of software, at this time user to the page some
Button is clicked, then terminal is received by the first operation to first page at this time, then jumps to second page, then eventually
End generates the first daily record data information according to the operation.It is worth noting that the step can also be applied in application software
Any page on, for example, when user enters wherein some page of application software, at this point, user to the page certain
A button is clicked, and terminal is received by first operation of the user to first page at this time, then jumps to second page,
It is exactly to carry out next page of clicking operation entrance in the page, after then terminal receives first operation, so that it may root
The first daily record data information is generated according to first operation.
Second generation unit 302, for generating the first index according to the first daily record data information, wherein the first log packet
Include first index and the first daily record data information.
Terminal can extract a plurality of key from the first daily record data information after generating the first daily record data information
Information;These key messages are combined, the first index is generated.
It should be noted that it is corresponding the first index can be stored in second page after terminal generates the first index
Buffer area in.
Third generation unit 303 generates second day for receiving the second operation to second page, and according to the second operation
Will data information.
Terminal has entered second page via first page at this time, if at this time user click second page some by
Button, jumps to the third page, and terminal receives the second operation to second page, and the then can be generated according to second operation
Two daily record data information.
4th generation unit 304, for generating the second index according to the second log data information.
Terminal can extract a plurality of key from the second log data information after generating the second log data information
Information;These key messages are combined, the second index is generated.
It should be noted that it is corresponding the second index can be stored in the third page after terminal generates the second index
Buffer area in.
Unit 305 is obtained, is used for according to second index, first index and the second log data information,
Obtain the second log.
Terminal can read the first index, then after the index of generation second out of second page corresponding buffer area
According to second index, first index and the second log data information, obtain the second log, i.e., by first index and second index plus
It is loaded onto the second log data information, obtains the second log.Optionally, for the ease of the lookup of log, first index and second
Index can be loaded onto the head position of the second log data information.
Also referring to Fig. 8, optionally, device further include:
First detection unit 306 whether there is third index information for detecting in the corresponding buffer area of first page, the
Three index informations are indexed including at least one third.
First reading unit 307, if for detect the corresponding cache bank memories of first page in third index information,
Third index information is read out of first page corresponding buffer area.
Storage unit 308, for the first index to be stored in the corresponding buffer area of second page with third index information.
First deletes unit 309, for deleting third index information out of first page corresponding buffer area.
Second reading unit 310, for reading the first index and third index letter out of second page corresponding buffer area
Breath.
It is described to obtain unit 305, it is also used to according to second index, first index, the third index information
And the second log data information, obtain the second log.
Second detection unit 311, for detecting whether third index information includes a plurality of third index.
Selection unit 312, if being selected for detecting that third index information is indexed comprising a plurality of third according to preset rules
It takes the third of preset quantity to index, obtains the 4th index information.
It is described to obtain unit 305, it is also used to according to second index, first index, the 4th index information
And the second log data information, obtain the second log.
Second deletes unit 313, for by the first index with third index information out of second page corresponding buffer area
It deletes.
As shown in figure 9, optional, device can also include:
Receiving unit 314, for receiving the instruction of tracing to the source to the second log, described instruction is for determining described second
Previous log of log.
Acquiring unit 315, for obtaining the first index from second log according to described instruction.
Third detection unit 316, for detecting in other logs in addition to second log with the presence or absence of described the
One index.
Determination unit 317, if there are first ropes in other logs in addition to second log for detecting
Draw, then indexes previous log for determining that the first log is second log according to described first.
The present embodiment jumps to second page, and give birth to according to the first operation by receiving the first operation to first page
At the first daily record data information;The first index is generated according to the first daily record data information;The second operation to second page is received,
And the second log data information is generated according to the second operation;The second index is generated according to the second log data information;According to second
Index, the first index and the second log data information, obtain the second log.User by this time being operated corresponding generate by the program
Index and user's last time operate the index of corresponding generation and be loaded into user and this time operate in the daily record data information of generation, obtain
User this time operates corresponding log and quickly find user's last time by user's this time corresponding log of operation
Corresponding log is operated, is associated between log by index, so that the log of individualism obtains integration in logic, thus
It may be implemented to trace to the source to the whole operation link of user, easily facilitate and user behavior is analyzed.
In addition, the embodiment of the present invention also provides a kind of terminal, as shown in Figure 10, the terminal may include radio frequency (RF,
Radio Frequency) circuit 401, the memory 402, defeated that includes one or more computer readable storage medium
Enter unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity)
The components such as module 407, the processor 408 for including one or more than one processing core and power supply 409.This field skill
Art personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Figure 10, may include than illustrate it is more or
Less component perhaps combines certain components or different component layouts.Wherein:
RF circuit 401 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 408 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier
(LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 401 can also by wireless communication with network and its
He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storing software program and module, and processor 408 is stored in memory 402 by operation
Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal
(such as audio data, phone directory etc.) etc..In addition, memory 402 may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 402 can also include Memory Controller, to provide processor 408 and input unit 403 to memory 402
Access.
Input unit 403 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or
Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula
It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can reception processing
Order that device 408 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other are defeated
Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One of mark, operating stick etc. are a variety of.
Display unit 404 can be used for showing information input by user or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display
Unit 404 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to
Device 408 is followed by subsequent processing device 408 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event
Visual output.Although touch sensitive surface and display panel are to realize input and defeated as two independent components in Figure 10
Enter function, but in some embodiments it is possible to touch sensitive surface and display panel is integrated and realizes and outputs and inputs function.
Terminal may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear
Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions
Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 406, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can
By the electric signal after the audio data received conversion, it is transferred to loudspeaker, voice signal output is converted to by loudspeaker;It is another
The voice signal of collection is converted to electric signal by aspect, microphone, is converted to audio data after being received by voicefrequency circuit 406, then
After the processing of audio data output processor 408, it is sent to such as another terminal through RF circuit 401, or by audio data
Output is further processed to memory 402.Voicefrequency circuit 406 is also possible that earphone jack, with provide peripheral hardware earphone with
The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 407
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 10 is shown
WiFi module 407, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 408 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 402, and call and be stored in memory 402
Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 408 can wrap
Include one or more processing cores;Preferably, processor 408 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Terminal further includes the power supply 409 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 408 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.Power supply 409 can also include one or more direct current or AC power source, recharging system, power failure inspection
The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation
In example, the processor 408 in terminal can be corresponding by the process of one or more application program according to following instruction
Executable file is loaded into memory 402, and the application program being stored in memory 402 is run by processor 408, from
And realize various functions:
The first operation to first page is received, jumps to second page, and generate first according to first operation
Will data information;The first index is generated according to the first daily record data information, wherein the first log includes first index
And the first daily record data information;The second operation to second page is received, and second day is generated according to second operation
Will data information;The second index is generated according to the second log data information;According to second index, first index
And the second log data information, obtain the second log.
Optionally, the processor 408 can be also used for: whether there is third in the corresponding buffer area of detection first page
Index information, the third index information are indexed including at least one third;If detecting in the corresponding buffer area of first page
There are third index informations, then the third index information is read out of first page corresponding buffer area;By first rope
Draw and is stored in the corresponding buffer area of second page with third index information;The third index information is corresponding from first page
Buffer area in delete.
Optionally, the processor 408 can be also used for: out of second page corresponding buffer area read first index and
Third index information;According to second index, first index, the third index information and second daily record data
Information obtains the second log;First index is deleted out of second page corresponding buffer area with third index information.
Optionally, the processor 408 can be also used for: detect whether the third index information includes a plurality of third rope
Draw;If detecting, the third index information is indexed comprising a plurality of third, and the third of preset quantity is chosen according to preset rules
Index, obtains the 4th index information;According to second index, first index, the 4th index information and described the
Two daily record data information, obtain the second log.
Optionally, the processor 408 can be also used for: receive the instruction of tracing to the source to the second log, described instruction is used for
Determine previous log of second log;The first index is obtained from second log according to described instruction;Detection removes
With the presence or absence of first index in other logs other than second log;If detecting in addition to second log
There are first indexes in other logs, then index according to described first and determine that the first log is the previous of second log
Log.
It can be seen from the above, in terminal provided in this embodiment, by receiving the first operation to first page, the is jumped to
Two pages, and the first daily record data information is generated according to the first operation;The first index is generated according to the first daily record data information;It connects
The second operation to second page is received, and the second log data information is generated according to the second operation;Believed according to the second daily record data
Breath generates the second index;According to the second index, the first index and the second log data information, the second log is obtained.The program is logical
It crosses and the index that user's this time operation corresponds to the index of generation and user's last time operates corresponding generation is loaded into this operation of user
It in the daily record data information of generation, obtains user and this time operates corresponding log, so that this time operating corresponding day by user
Will can quickly find user's last time and operate corresponding log, be associated between log by index, so that individualism
Log obtain integration in logic, so as to realize that the whole operation link to user is traced to the source, easily facilitate to user's row
To be analyzed.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the detailed description above with respect to log processing method, details are not described herein again.
The log processing device provided in an embodiment of the present invention is for example computer, tablet computer, has touch function
Mobile phone etc., the log processing method in the log processing device and foregoing embodiments belongs to same design, in the day
Either offer method, specific implementation process in the log processing method embodiment can be run in will processing unit to be detailed in
The log processing method embodiment, details are not described herein again.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with
It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one
In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed
Device is loaded, to execute the step in any log processing method provided by the embodiment of the present invention.For example, the instruction can
To execute following steps:
The first operation to first page is received, jumps to second page, and generate first according to first operation
Will data information;The first index is generated according to the first daily record data information, wherein the first log includes first index
And the first daily record data information;The second operation to second page is received, and second day is generated according to second operation
Will data information;The second index is generated according to the second log data information;According to second index, first index
And the second log data information, obtain the second log.
It can be seen from the above, in storage medium provided in an embodiment of the present invention, by receiving the first operation to first page,
Second page is jumped to, and the first daily record data information is generated according to the first operation;The is generated according to the first daily record data information
One index;The second operation to second page is received, and the second log data information is generated according to the second operation;According to second day
Will data information generates the second index;According to the second index, the first index and the second log data information, the second log is obtained.
The program is loaded into user by the index that index and user's last time that user is this time operated to corresponding generation operate corresponding generation
It in the daily record data information that this time operation generates, obtains user and this time operates corresponding log, so that this time being operated by user
Corresponding log can quickly find user's last time and operate corresponding log, be associated between log by index, so that
The log of individualism obtains integration in logic, so as to realize that the whole operation link to user is traced to the source, easily facilitates
User behavior is analyzed.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory
Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute at any log provided by the embodiment of the present invention
Step in reason method, it is thereby achieved that achieved by any log processing method provided by the embodiment of the present invention
Beneficial effect is detailed in the embodiment of front, and details are not described herein.
It is provided for the embodiments of the invention a kind of log processing method, device and storage medium above and has carried out detailed Jie
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation of the present invention.
Claims (11)
1. a kind of log processing method characterized by comprising
The first operation to first page is received, jumps to second page, and the first log number is generated according to first operation
It is believed that breath;
According to the first daily record data information generate first index, wherein the first log include it is described first index and it is described
First daily record data information;
The second operation to second page is received, and the second log data information is generated according to second operation;
The second index is generated according to the second log data information;
According to second index, first index and the second log data information, the second log is obtained.
2. log processing method according to claim 1, which is characterized in that described according to the first daily record data information
After the step of generating the first index, further includes:
Detecting whether there is third index information in the corresponding buffer area of first page, the third index information includes at least one
Third index;
If detecting the corresponding cache bank memories of first page in third index information, out of first page corresponding buffer area
Read the third index information;
First index is stored in the corresponding buffer area of second page with third index information;
The third index information is deleted out of first page corresponding buffer area.
3. log processing method according to claim 2, which is characterized in that described according to the second log data information
After the step of generating the second index, further includes:
The first index and third index information are read out of second page corresponding buffer area;
It is described according to it is described second index, it is described first index and the second log data information, obtain the step of the second log
Suddenly include:
According to second index, first index, the third index information and the second log data information, obtain
Second log;
First index is deleted out of second page corresponding buffer area with third index information.
4. log processing method according to claim 3, which is characterized in that described out of second page corresponding buffer area
After the step of reading the first index and third index information, further includes:
Detect whether the third index information includes a plurality of third index;
If detecting, the third index information is indexed comprising a plurality of third, and the third of preset quantity is chosen according to preset rules
Index, obtains the 4th index information;
It is described according to second index, first index, the third index information and the second log data information,
The step of obtaining the second log include:
According to second index, first index, the 4th index information and the second log data information, obtain
Second log.
5. log processing method according to claim 1, which is characterized in that the method also includes:
The instruction of tracing to the source to the second log is received, described instruction is used to determine previous log of second log;
The first index is obtained from second log according to described instruction;
It detects in other logs in addition to second log with the presence or absence of first index;
If detecting, there are first indexes in other logs in addition to second log, according to first index
Determine that the first log is previous log of second log.
6. a kind of log processing device characterized by comprising
First generation unit jumps to second page, and according to first behaviour for receiving the first operation to first page
Make to generate the first daily record data information;
Second generation unit, for generating the first index according to the first daily record data information, wherein the first log includes institute
State the first index and the first daily record data information;
Third generation unit generates the second log for receiving the second operation to second page, and according to second operation
Data information;
4th generation unit, for generating the second index according to the second log data information;
Unit is obtained, for obtaining second according to second index, first index and the second log data information
Log.
7. log processing device according to claim 6, which is characterized in that described device further include:
First detection unit, for detecting in the corresponding buffer area of first page with the presence or absence of third index information, the third
Index information is indexed including at least one third;
First reading unit, if for detecting the corresponding cache bank memories of first page in third index information, from first
The third index information is read in the corresponding buffer area of the page;
Storage unit, for first index to be stored in the corresponding buffer area of second page with third index information;
First deletes unit, for deleting the third index information out of first page corresponding buffer area.
8. log processing device according to claim 7, which is characterized in that described device further include:
Second reading unit, for reading the first index and third index information out of second page corresponding buffer area;
It is described to obtain unit, it is also used to according to second index, first index, the third index information and described the
Two daily record data information, obtain the second log;
Second deletes unit, for deleting first index out of second page corresponding buffer area with third index information
It removes.
9. log processing device according to claim 8, which is characterized in that described device further include:
Second detection unit, for detecting whether the third index information includes a plurality of third index;
Selection unit, if being chosen for detecting that the third index information is indexed comprising a plurality of third according to preset rules
The third of preset quantity indexes, and obtains the 4th index information;
It is described to obtain unit, it is also used to according to second index, first index, the 4th index information and described the
Two daily record data information, obtain the second log.
10. log processing device according to claim 6, which is characterized in that described device further include:
Receiving unit, for receiving the instruction of tracing to the source to the second log, described instruction is for determining the previous of second log
Log;
Acquiring unit, for obtaining the first index from second log according to described instruction;
Third detection unit, for detecting in other logs in addition to second log with the presence or absence of first index;
Determination unit, if there are first index, roots in other logs in addition to second log for detecting
Previous log for determining that the first log is second log is indexed according to described first.
11. a kind of storage medium, is stored with processor-executable instruction, which is provided such as by executing described instruction
Log processing method described in any one of claims 1 to 5.
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 true CN109240986A (en) | 2019-01-18 |
CN109240986B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111382387A (en) * | 2020-03-06 | 2020-07-07 | 深圳市盟天科技有限公司 | Webpage access method, device, equipment and storage medium based on small program |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731807A (en) * | 2013-12-20 | 2015-06-24 | 北京风行在线技术有限公司 | Method and device for computing and analyzing page skip data |
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 |
-
2018
- 2018-08-15 CN CN201810926506.3A patent/CN109240986B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731807A (en) * | 2013-12-20 | 2015-06-24 | 北京风行在线技术有限公司 | Method and device for computing and analyzing page skip data |
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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111382387A (en) * | 2020-03-06 | 2020-07-07 | 深圳市盟天科技有限公司 | Webpage access method, device, equipment and storage medium based on small program |
CN111382387B (en) * | 2020-03-06 | 2023-10-24 | 深圳市盟天科技有限公司 | Webpage access method, device, equipment and storage medium based on applet |
Also Published As
Publication number | Publication date |
---|---|
CN109240986B (en) | 2021-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412093B (en) | A kind of method for uploading of data, apparatus and system | |
CN107863095A (en) | Acoustic signal processing method, device and storage medium | |
CN106126174B (en) | A kind of control method and electronic equipment of scene audio | |
CN104516887B (en) | A kind of web data searching method, device and system | |
CN104239535A (en) | Method and system for matching pictures with characters, server and terminal | |
CN107356261B (en) | Air navigation aid and Related product | |
CN107276602B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN103501485B (en) | Push the method, apparatus and terminal device of application | |
CN104346367B (en) | A kind of method and apparatus of data integration | |
CN103678502B (en) | Information collection method and device | |
CN112148579B (en) | User interface testing method and device | |
CN106293901A (en) | The process management method of a kind of terminal applies and device | |
CN104298686B (en) | The method and apparatus for modifying server profile | |
CN108156508A (en) | Method, apparatus, mobile terminal, server and the system of barrage information processing | |
CN104239343A (en) | User input information processing method and device | |
CN110210605A (en) | Hardware operator matching process and Related product | |
CN104699501B (en) | A kind of method and device for running application program | |
CN107436948A (en) | File search method, device and terminal | |
CN109215130A (en) | A kind of product repairing method and system based on augmented reality | |
CN104063400B (en) | Data search method and data search device | |
CN104965831B (en) | A kind of network address error correction method, server, terminal and system | |
CN107219951A (en) | Touch screen control method, device, storage medium and terminal device | |
CN103607377B (en) | Information sharing method, Apparatus and system | |
CN106534528A (en) | Processing method and device of text information and mobile terminal | |
CN104281610B (en) | The method and apparatus for filtering microblogging |
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 |