CN107171825A - A kind of repetition daily record filter method of terminal - Google Patents
A kind of repetition daily record filter method of terminal Download PDFInfo
- Publication number
- CN107171825A CN107171825A CN201710233039.1A CN201710233039A CN107171825A CN 107171825 A CN107171825 A CN 107171825A CN 201710233039 A CN201710233039 A CN 201710233039A CN 107171825 A CN107171825 A CN 107171825A
- Authority
- CN
- China
- Prior art keywords
- stored
- daily record
- abnormal
- identification information
- snapshot
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
- H04L43/028—Capturing of monitoring data by filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1425—Traffic logging, e.g. anomaly detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Debugging And Monitoring (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of repetition daily record filter method of terminal.Wherein, methods described includes:The record that acquisition terminal is produced in the process of running has abnormal daily record to be stored;Being extracted from daily record to be stored being capable of the abnormal identification information of unique mark;The abnormal snapshot of daily record to be stored is generated using identification information;Abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database, which whether there is, to be repeated;If in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database.By the above-mentioned means, the present invention can reduce the workload of developer, the spending of server is reduced, the efficiency of work and the stability of terminal system is improved.
Description
Technical field
The present invention relates to technical field of network security, the repetition daily record filter method of more particularly to a kind of terminal.
Background technology
Daily record is the record of the Log that we often say, typically system or some softwares to certain completed processing,
As reference during so as to abnormal generation in the future, the leak of software is solved.The presence of daily record, allow it is abnormal occur after, system and soft
The developer of part can have vital effect with quick positioning question, solution problem, daily record to maintenance system and software.
At present, although the application of abnormal log can much be captured automatically in mobile phone terminal by having had, when an anomaly occurs, can
So that abnormal related daily record preservation and upload server, then engineer can be according to the daily record of upload solution problem automatically.
But, because system is not producing daily record all the time, cause journal file very numerous and diverse, when an abnormal repetition occurs,
Using the daily record that will constantly upload repetition to server, which results in the redundancy of data, engineer can be wasted substantial amounts of
Time goes to analyze daily record.
The content of the invention
The present invention solves the technical problem of a kind of repetition daily record filter method of terminal is provided, exploitation can be reduced
The workload of person, reduces the spending of server, improves the efficiency of work and the stability of terminal system.
In order to solve the above technical problems, one aspect of the present invention is:A kind of repetition daily record of terminal is provided
Filter method, methods described includes:The record that acquisition terminal is produced in the process of running has abnormal daily record to be stored;From waiting to deposit
Store up daily record and extract the identification information for being capable of unique mark exception;The abnormal snapshot of daily record to be stored is generated using identification information;Than
The abnormal snapshot of daily record has been stored present in abnormal snapshot and database to daily record to be stored with the presence or absence of repetition;If not depositing
Repeating, then the abnormal snapshot by daily record to be stored and daily record to be stored is stored to database.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of repetition day of terminal is provided
Will filter method, methods described includes:The record that acquisition terminal is produced in the process of running has abnormal daily record to be stored;From treating
Store daily record and extract the identification information for being capable of unique mark exception;The abnormal snapshot of daily record to be stored is generated using identification information;
The abnormal snapshot of daily record to be stored is sent to server;Judge the control of abnormal snapshot feedback of the server based on daily record to be stored
System instruction is also to give up instruction for uploading instructions;If uploading instructions, then daily record to be stored is uploaded and to be stored to server
The abnormal snapshot of daily record uploads onto the server;If abandoning instruction, then daily record to be stored is not uploaded and to be stored to server
The abnormal snapshot of daily record uploads onto the server.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of repetition day of terminal is provided
Will filter method, methods described includes:The abnormal snapshot of daily record to be stored is received from terminal;Compare the abnormal fast of daily record to be stored
According to the abnormal snapshot with having stored daily record present in database with the presence or absence of repetition;If in the absence of repeating, being sent to terminal
Uploading instructions, the abnormal snapshot of daily record to be stored and daily record to be stored is uploaded with instruction terminal;Repeated if existing, to terminal
Instruction is abandoned in transmission, does not upload the abnormal snapshot of daily record to be stored and daily record to be stored with instruction terminal.
The beneficial effects of the invention are as follows:The situation of prior art is different from, the present invention first obtains terminal in the process of running
The record of generation has abnormal daily record to be stored, and the identification information for being capable of unique mark exception is extracted from daily record to be stored, enters
And utilize identification information to generate the abnormal snapshot of daily record to be stored, the abnormal snapshot of daily record to be stored is compared with existing in database
The abnormal snapshot for having stored daily record with the presence or absence of repeat, if in the absence of repeat, by daily record to be stored and daily record to be stored
Abnormal snapshot store to database, so as to reduce the spending of server, improve the efficiency of work and the stability of terminal system.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the repetition daily record filter method first embodiment of terminal of the present invention;
Fig. 2 is the schematic flow sheet of the repetition daily record filter method second embodiment of terminal of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of repetition daily record filter method the 3rd of terminal of the present invention;
Fig. 4 is the schematic flow sheet of the embodiment of repetition daily record filter method the 4th of terminal of the present invention;
Fig. 5 is the structural representation of the embodiment of terminal one of the present invention;
Fig. 6 is the structural representation of the embodiment of server one of the present invention.
Embodiment
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of the repetition daily record filter method first embodiment of terminal of the present invention.
If it is noted that there is substantially the same result, method of the invention is not limited with the flow order shown in Fig. 1.Such as Fig. 1
Shown, this method comprises the following steps:
S101:The record that acquisition terminal is produced in the process of running has abnormal daily record to be stored.
Wherein, daily record that is to say Log, typically system or some softwares to the record of certain completed processing, with
Just in the future as reference, the form that it is not fixed, typically text can be opened to check content with notepad,
Certainly other forms are likely to, it is exactly mess code directly to open.Most log can find out its effect from filename, than
Such as uninstall.log or error.log, the former is typically the record generated in software installation process certainly, so as in the future
Uninstaller can be supplied to use when unloading, the latter is typically used for recording error message in some running softwares etc.
Deng.
Wherein, terminal can with mobile phone, tablet personal computer, notebook computer, palm PC, mobile internet device (MID,
Mobile Internet Device), wearable device (intelligent watch, Intelligent bracelet) or other-end equipment.
Wherein, it is necessary first to illustrate a problem, with identical abnormal daily record to be stored, the journal file of generation has can
Can meeting difference.Because inside journal file in addition to abnormal information, being also recorded for a large amount of dynamic information, such as extremely
Time, instant process number, dynamic memory address etc., data of these changes can cause a same exception, not
The same time occurs, and the daily record of generation is also different.
Further, because terminal device is without that can carry out detecting the function of abnormal log, therefore, terminal device is wanted
Obtaining the record produced in the process of running has the information of abnormal daily record to be stored, it is necessary to register corresponding service.Specifically,
When Android (Android) facility registration after DropBox, the DropBoxManager in android system will be sent
DropBox broadcast, Android device just can obtain recording abnormal daily record to be stored.
S102:Being extracted from daily record to be stored being capable of the abnormal identification information of unique mark.
Wherein, because the journal file with identical abnormal daily record to be stored, generation is possible to meeting difference.Therefore, may be used
To extract the identification information for being capable of unique mark exception in daily record to be stored, these are capable of the abnormal identification information of unique mark not
Dynamic information including daily record.
S103:The abnormal snapshot of daily record to be stored is generated using identification information.
Wherein, identification information is simplified according to predetermined simplified rules.Specifically, first judge whether identification information wraps
Containing special symbol;If comprising special symbol, removing special symbol.Wherein, special symbol is including space etc..
Further, operation system identification information run with abnormal corresponding abnormal application bag title and terminal
The system version number of system is associated, and is used as the abnormal snapshot of daily record to be stored.Specifically, identification information is applied with abnormal
The system version number for the operating system that bag name and terminal are run is connected with "===", forms a character string type
Complete abnormal snapshot.
S104:Compare the abnormal snapshot of daily record to be stored with stored present in database daily record abnormal snapshot whether
In the presence of repetition.
Wherein, the mark letter that the abnormal snapshot of daily record includes being capable of unique mark exception has been stored present in database
The system version number for the operating system that breath, abnormal corresponding abnormal application bag name and terminal are run.Specifically, contrastively
Process that is to say the mark for being capable of unique mark exception that daily record has been stored present in contrast daily record to be stored and database
The system version number for the operating system that information, abnormal corresponding abnormal application bag name and terminal are run.
S105:If in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database.
Specifically, if the unique difference that differs only in multidate information of the daily record to be stored with having stored daily record, is
System regards daily record to be stored and has stored daily record to repeat daily record.
S106:Repeated if existing, the abnormal snapshot of daily record to be stored and daily record to be stored is not yet stored into database.
In the present embodiment, the record that first acquisition terminal is produced in the process of running has abnormal daily record to be stored, and
The identification information for being capable of unique mark exception is extracted from daily record to be stored, and then the different of daily record to be stored is generated using identification information
Chang Kuaizhao, abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database whether there is weight
It is multiple, if in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database, so as to reduce clothes
The spending of business device, improves the efficiency of work and the stability of terminal system.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of the repetition daily record filter method second embodiment of terminal of the present invention.
Present embodiment be extracted from daily record to be stored be capable of the abnormal identification information of unique mark wherein in particular embodiments,
This method comprises the following steps:
S201:Abnormal type is determined according to daily record to be stored.
Specifically, daily record to be stored determines that abnormal type can specifically be divided into the exception (Jave of application layer
Exception), exception (the Application not of the exception (Native Exception) of local layer and application without response
Responsing)。
S202:Extracting rule is determined according to abnormal type.
Specifically, the abnormal extracting rule of application layer is:The each row of abnormal information is judged twice, first determined whether
Whether started by, then judge whether to apply bag name comprising reporting an error.What it is due at beginnings is abnormal stack information, is abnormal
Occur the position of code, can be with this exception of unique mark;And after the bag name comprising the application that reports an error, some can be removed unrelated
Content, abnormal snapshot can be simplified.
Specifically, the abnormal extracting rule of local layer is:The each row of abnormal information is judged, by " #00 " " #
The row of 01 " " #02 " beginnings is extracted, and removes the symbols such as space.Due to the important abnormal letter of the abnormal type of local layer
Breath is concentrated in this three row, can using the content of this three row as abnormal snapshot main body.
Specifically, it is using the abnormal extracting rule without response:The each row of abnormal information is judged, by
The row of " executing " beginning is extracted, and removes the symbols such as space.
S203:Identification information is extracted from daily record to be stored according to extracting rule.
One of specific embodiment is that the abnormal information in daily record to be stored is progressively scanned, and judges
Whether specific markers corresponding with extracting rule are included in the abnormal information of current line, if comprising specific markers, extracting current
Capable abnormal information is used as identification information.
Specifically, the row that the exception of application layer is extracted starts comprising at and reported an error using bag name simultaneously;Local layer it is different
The row often extracted is included to be started by " #00 " " #01 " " #02 ";The row extracted using the exception without response include by
" executing " starts.
In wherein one specific embodiment, by taking Android device as an example, when the application layer of Android device is sent out
When raw abnormal, the DropBoxManager of android system can send DropBox broadcast.DropBox is broadcasted what the inside was obtained
Information and following one section of abnormal information can be obtained after being integrated.
Type:Java Exception
(JE),Time:20161008091222866,PackageName:com.dropboxtest2.tester ror,
Tag:data_app_crash,Pid:0000,
Process:com.dropboxtest2.testerror
Flags:0x38e8be46
Package:com.dropboxtest2.testerror v1(1.0)
Build:TCL/5080X/shine_lite:6.0/MRA58K/v2CA6-0:user/release-keys
java.lang.NullPointerException:Attempt to invoke virtual method'int
java.lang.String.length()'on a null object reference
at
com.dropboxtest2.testerror.MainActivity.onClick(MainActivity.java:71)
at android.view.View.performClick(View.java:5265)
at android.view.View$PerformClick.run(View.java:21534)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5774)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.ja va:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
First extract abnormal corresponding abnormal application bag entitled:com.dropboxtest2.testerror.Then sweep again
Every a line is retouched, the data for meeting the two conditions are preserved:Started by and apply bag name comprising reporting an error.This will be met
The row of two conditions, removes the symbols such as space, and the identification information of acquisition is stored in character string Logbody:
atcom.dropboxtest2.testerror.MainActivity.onClick(MainActivity.java:
71)
Then, operating system character string Logbody, abnormal corresponding abnormal application bag name and terminal run
System version number connected with "===", form the abnormal snapshot of a character string, its final abnormal snapshot results is:
TCL/5080X/shine_lite:6.0/MRA58K/v2CA6-0:User/release-keys===
Com.dropboxtest2.testerror===
atcom.dropboxtest2.testerror.MainActivity.onClick(MainActivity.java:71)。
Finally, the abnormal snapshot is compared with having stored the abnormal snapshot of daily record present in database, if comparing
As a result it is inconsistent, then database is uploaded to by the abnormal snapshot and with the daily record to be stored corresponding to the abnormal snapshot, otherwise, then
Do not upload.
In present embodiment, system determines abnormal type according to daily record to be stored, and then is determined according to abnormal type
Extracting rule, and according to extracting rule from daily record to be stored extract identification information, can rapid extraction go out can unique mark it is different
Normal identification information, reduces the workload of developer, reduces the spending of server, improves the efficiency of work.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet of the embodiment of repetition daily record filter method the 3rd of terminal of the present invention.
Present embodiment is the one of which embodiment based on terminal, and this method comprises the following steps:
S301:The record that acquisition terminal is produced in the process of running has abnormal daily record to be stored.
S302:Being extracted from daily record to be stored being capable of the abnormal identification information of unique mark.
Wherein, extract and be capable of the one of which embodiment of the abnormal identification information of unique mark and be:First according to be stored
Daily record determines abnormal type, then determines extracting rule according to abnormal type, finally according to extracting rule from day to be stored
Will extracts identification information.
Specifically, it is according to the one of which embodiment of extracting rule from daily record to be stored extraction identification information:It is first right
Whether the abnormal information in daily record to be stored is progressively scanned, then judge to include in the abnormal information of current line and advised with extracting
Then corresponding specific markers, if comprising specific markers, then the abnormal information for extracting current line is used as identification information.
S303:The abnormal snapshot of daily record to be stored is generated using identification information.
Wherein, to judge whether identification information includes special symbol, if comprising special symbol, removing special symbol.Tool
Body, special symbol is space etc..
Wherein, operating system identification information run with abnormal corresponding abnormal application bag title and terminal
System version number is associated, and is used as the abnormal snapshot of daily record to be stored.
S304:The abnormal snapshot of daily record to be stored is sent to server.
S305:Judge that the control instruction of abnormal snapshot feedback of the server based on daily record to be stored is still put for uploading instructions
Abandon instruction.
S306:If uploading instructions, then on the abnormal snapshot that daily record to be stored and daily record to be stored are uploaded to server
Reach server.
S307:If abandoning instruction, then the abnormal snapshot of daily record to be stored and daily record to be stored is not uploaded to server
Upload onto the server.
In present embodiment, first obtaining the record that produces in the process of running of terminal has an abnormal daily record to be stored, and from
The identification information for being capable of unique mark exception is extracted in daily record to be stored, and then utilizes the exception of identification information generation daily record to be stored
Snapshot, abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database whether there is weight
It is multiple, if in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database, so as to reduce clothes
The spending of business device, improves the efficiency of work and the stability of terminal system.
Referring to Fig. 4, Fig. 4 is the schematic flow sheet of the embodiment of repetition daily record filter method the 4th of terminal of the present invention.
Present embodiment is the one of which embodiment based on server, and this method comprises the following steps:
S401:The abnormal snapshot of daily record to be stored is received from terminal.
S402:Compare the abnormal snapshot of daily record to be stored with stored present in database daily record abnormal snapshot whether
In the presence of repetition.
S403:If in the absence of repeating, uploading instructions are sent to terminal, daily record to be stored is uploaded with instruction terminal and treated
Store the abnormal snapshot of daily record.
S404:Repeated if existing, sent to terminal and abandon instruction, do not uploaded daily record to be stored with instruction terminal and treat
Store the abnormal snapshot of daily record.
In present embodiment, first obtaining the record that produces in the process of running of terminal has an abnormal daily record to be stored, and from
The identification information for being capable of unique mark exception is extracted in daily record to be stored, and then utilizes the exception of identification information generation daily record to be stored
Snapshot, abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database whether there is weight
It is multiple, if in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database, so as to reduce clothes
The spending of business device, improves the efficiency of work and the stability of terminal system.
Referring to Fig. 5, Fig. 5 is the structural representation of the embodiment of terminal one of the present invention.In present embodiment, the terminal 50
For the terminal in above-mentioned embodiment, the terminal 50 include first processor 51, first memory 52, the first receiver 53 and
First transmitter 54.
First memory 52 is used for the instruction that storage program area, first processor 51 are performed and the message received
Deng.
First receiver 53 is instructed for the reception server.
First transmitter 54 is used for the abnormal snapshot for uploading daily record to be stored and daily record to be stored.
First processor 51 has abnormal daily record to be stored for obtaining the record that terminal is produced in the process of running;From treating
Store daily record and extract the identification information for being capable of unique mark exception;The abnormal snapshot of daily record to be stored is generated using identification information;
The abnormal snapshot of daily record to be stored is sent to server;Judge the control of abnormal snapshot feedback of the server based on daily record to be stored
System instruction is also to give up instruction for uploading instructions;If uploading instructions, then daily record to be stored is uploaded and to be stored to server
The abnormal snapshot of daily record uploads onto the server;If abandoning instruction, then daily record to be stored is not uploaded and to be stored to server
The abnormal snapshot of daily record uploads onto the server.
Wherein, first processor 51 is additionally operable to determine abnormal type according to daily record to be stored;It is true according to the type of exception
Determine extracting rule;Identification information is extracted from daily record to be stored according to extracting rule.
Further, first processor 51 is additionally operable to progressively scan the abnormal information in daily record to be stored;Judge
Whether specific markers corresponding with extracting rule are included in the abnormal information of current line;If comprising specific markers, extracting current
Capable abnormal information is used as identification information.
Further, first processor 51 is additionally operable to judge whether identification information includes special symbol;If including specific symbol
Number, then remove special symbol.
Further, first processor 51 be additionally operable to identification information and abnormal corresponding abnormal application bag title and
The system version number for the operating system that terminal is run is associated, and is used as the abnormal snapshot of daily record to be stored.
In present embodiment, first obtaining the record that produces in the process of running of terminal has an abnormal daily record to be stored, and from
The identification information for being capable of unique mark exception is extracted in daily record to be stored, and then utilizes the exception of identification information generation daily record to be stored
Snapshot, abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database whether there is weight
It is multiple, if in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database, so as to reduce clothes
The spending of business device, improves the efficiency of work and the stability of terminal system.
Referring to Fig. 6, Fig. 6 is the schematic flow sheet of the embodiment of server one of the present invention.In present embodiment, the terminal
60 be the server in above-mentioned embodiment, and the server 60 includes second processor 61, second memory 62, the second receiver
63 and second transmitter 64.
Second memory 62 is used for the instruction that storage program area, second processor 61 are performed and the message received
Deng.
Second receiver 63 is used for the abnormal snapshot that daily record to be stored is received from terminal.
Second transmitter 64 is used to send uploading instructions and abandons instruction.
Second processor 61 is used to compare the abnormal snapshot of daily record to be stored with having stored daily record present in database
Abnormal snapshot is with the presence or absence of repetition;If in the absence of repeating, uploading instructions are sent to terminal, day to be stored is uploaded with instruction terminal
Will and the abnormal snapshot of daily record to be stored;Repeated if existing, sent to terminal and abandon instruction, do not uploaded and treated with instruction terminal
Store the abnormal snapshot of daily record and daily record to be stored.
In present embodiment, first obtaining the record that produces in the process of running of terminal has an abnormal daily record to be stored, and from
The identification information for being capable of unique mark exception is extracted in daily record to be stored, and then utilizes the exception of identification information generation daily record to be stored
Snapshot, abnormal snapshot of the abnormal snapshot for comparing daily record to be stored with having stored daily record present in database whether there is weight
It is multiple, if in the absence of repeating, the abnormal snapshot of daily record to be stored and daily record to be stored is stored to database, so as to reduce clothes
The spending of business device, improves the efficiency of work and the stability of terminal system.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, is included within the scope of the present invention.
Claims (10)
1. a kind of repetition daily record filter method of terminal, it is characterised in that including:
Obtaining the record that the terminal produces in the process of running has abnormal daily record to be stored;
From the daily record to be stored extract can be abnormal described in unique mark identification information;
The abnormal snapshot of the daily record to be stored is generated using the identification information;
Abnormal snapshot of the abnormal snapshot for comparing the daily record to be stored with having stored daily record present in database whether there is
Repeat;
If in the absence of repeating, the abnormal snapshot of the daily record to be stored and the daily record to be stored is stored to the data
Storehouse.
2. according to the method described in claim 1, it is characterised in that described extracted from the daily record to be stored being capable of unique mark
The step of abnormal identification information, includes:
The abnormal type is determined according to the daily record to be stored;
Extracting rule is determined according to the abnormal type;
The identification information is extracted from the daily record to be stored according to the extracting rule.
3. method according to claim 2, it is characterised in that it is described according to the extracting rule from the daily record to be stored
The step of extracting the identification information includes:
Abnormal information in the daily record to be stored is progressively scanned;
Judge whether include specific markers corresponding with the extracting rule in the abnormal information of current line;
If comprising the specific markers, the abnormal information for extracting current line is used as the identification information.
4. according to the method described in claim 1, it is characterised in that described to generate the day to be stored using the identification information
The step of abnormal snapshot of will, includes:
The identification information is simplified according to predetermined simplified rules.
5. method according to claim 4, it is characterised in that it is described according to predetermined simplified rules to the identification information
The step of being simplified includes:
Judge whether the identification information includes special symbol;
If comprising the special symbol, removing the special symbol.
6. according to the method described in claim 1, it is characterised in that described to generate the day to be stored using the identification information
The step of abnormal snapshot of will, includes:
The operation system that the corresponding abnormal application bag title of the identification information and the exception and the terminal are run
The system version number of system is associated, and is used as the abnormal snapshot of the daily record to be stored.
7. a kind of repetition daily record filter method of terminal, it is characterised in that including:
Obtaining the record that the terminal produces in the process of running has abnormal daily record to be stored;
From the daily record to be stored extract can be abnormal described in unique mark identification information;
The abnormal snapshot of the daily record to be stored is generated using the identification information;
The abnormal snapshot of the daily record to be stored is sent to the server;
Judge that the control instruction of abnormal snapshot feedback of the server based on the daily record to be stored is still put for uploading instructions
Abandon instruction;
If uploading instructions, then the abnormal snapshot of the daily record to be stored and the daily record to be stored is uploaded to the server
It is uploaded to the server;
If abandoning instruction, then the exception not to the server upload daily record to be stored and the daily record to be stored is fast
According to being uploaded to the server.
8. method according to claim 7, it is characterised in that described extracted from the daily record to be stored being capable of unique mark
The step of abnormal identification information, includes:
The abnormal type is determined according to the daily record to be stored;
Extracting rule is determined according to the abnormal type;
The identification information is extracted from the daily record to be stored according to the extracting rule;
It is described to further comprise the step of extract the identification information from the daily record to be stored according to the extracting rule:
Abnormal information in the daily record to be stored is progressively scanned;
Judge whether include specific markers corresponding with the extracting rule in the abnormal information of current line;
If comprising the specific markers, the abnormal information for extracting current line is used as the identification information.
9. method according to claim 7, it is characterised in that described to generate the day to be stored using the identification information
The step of abnormal snapshot of will, includes:
Judge whether the identification information includes special symbol;
If comprising the special symbol, removing the special symbol;
The step of abnormal snapshot for utilizing the identification information to generate the daily record to be stored, includes:
The operation system that the corresponding abnormal application bag title of the identification information and the exception and the terminal are run
The system version number of system is associated, and is used as the abnormal snapshot of the daily record to be stored.
10. a kind of repetition daily record filter method of terminal, it is characterised in that including:
The abnormal snapshot of daily record to be stored is received from the terminal;
Abnormal snapshot of the abnormal snapshot for comparing the daily record to be stored with having stored daily record present in database whether there is
Repeat;
If in the absence of repeating, uploading instructions are sent to the terminal, with indicate the terminal upload the daily record to be stored with
And the abnormal snapshot of the daily record to be stored;
If exist repeat, to the terminal send abandon instruction, with indicate the terminal do not upload the daily record to be stored with
And the abnormal snapshot of the daily record to be stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233039.1A CN107171825B (en) | 2017-04-11 | 2017-04-11 | Repeated log filtering method for terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233039.1A CN107171825B (en) | 2017-04-11 | 2017-04-11 | Repeated log filtering method for terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107171825A true CN107171825A (en) | 2017-09-15 |
CN107171825B CN107171825B (en) | 2020-09-25 |
Family
ID=59849627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710233039.1A Active CN107171825B (en) | 2017-04-11 | 2017-04-11 | Repeated log filtering method for terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107171825B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446329A (en) * | 2018-02-13 | 2018-08-24 | 北京工业大数据创新中心有限公司 | Adaptive databases partition method and system towards industrial time series database |
CN108932305A (en) * | 2018-06-12 | 2018-12-04 | 北京顶象技术有限公司 | A kind of data processing method, device, electronic equipment and storage medium |
CN109101644A (en) * | 2018-08-21 | 2018-12-28 | 上海新炬网络信息技术股份有限公司 | A kind of sound state journal file scanning collecting method |
CN111190871A (en) * | 2019-12-18 | 2020-05-22 | 中移(杭州)信息技术有限公司 | Log generation method and device, computer equipment and storage medium |
CN111324482A (en) * | 2020-03-24 | 2020-06-23 | 李勉勉 | Computer application program running data fault processing system |
CN112100025A (en) * | 2020-08-25 | 2020-12-18 | 北京明略昭辉科技有限公司 | Log simplifying method and device, electronic equipment and computer readable medium |
CN112273366A (en) * | 2020-10-28 | 2021-01-29 | 玉林市农业科学院(广西农业科学院玉林分院) | Method and system for ecologically repelling birds by agricultural unmanned aerial vehicle in rice direct seeding cultivation |
CN112579611A (en) * | 2020-12-29 | 2021-03-30 | 珠海金山网络游戏科技有限公司 | Data processing method and device |
CN112685277A (en) * | 2020-12-31 | 2021-04-20 | 海光信息技术股份有限公司 | Warning information checking method and device, electronic equipment and readable storage medium |
CN112764963A (en) * | 2021-01-29 | 2021-05-07 | 恒鸿达科技有限公司 | Method, device, equipment and medium for automatically collecting abnormal log information |
CN112764962A (en) * | 2021-01-29 | 2021-05-07 | 恒鸿达科技有限公司 | Tracking method and system for application version exception recovery |
CN115454954A (en) * | 2022-08-31 | 2022-12-09 | 上海移柯通信技术股份有限公司 | Data processing method, system and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3810577B2 (en) * | 1999-03-26 | 2006-08-16 | 株式会社日立製作所 | Directory synchronization method |
CN101996233A (en) * | 2009-08-11 | 2011-03-30 | 国际商业机器公司 | Method and system for replicating deduplicated data |
CN103716174A (en) * | 2012-10-09 | 2014-04-09 | 鸿富锦精密工业(深圳)有限公司 | Test log acquisition system and method for the same |
CN105515847A (en) * | 2015-12-02 | 2016-04-20 | 深圳Tcl数字技术有限公司 | Terminal fault processing method, device and system |
CN105656699A (en) * | 2016-03-29 | 2016-06-08 | 网宿科技股份有限公司 | Alarm management method and system for content distribution network |
-
2017
- 2017-04-11 CN CN201710233039.1A patent/CN107171825B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3810577B2 (en) * | 1999-03-26 | 2006-08-16 | 株式会社日立製作所 | Directory synchronization method |
CN101996233A (en) * | 2009-08-11 | 2011-03-30 | 国际商业机器公司 | Method and system for replicating deduplicated data |
CN103716174A (en) * | 2012-10-09 | 2014-04-09 | 鸿富锦精密工业(深圳)有限公司 | Test log acquisition system and method for the same |
CN105515847A (en) * | 2015-12-02 | 2016-04-20 | 深圳Tcl数字技术有限公司 | Terminal fault processing method, device and system |
CN105656699A (en) * | 2016-03-29 | 2016-06-08 | 网宿科技股份有限公司 | Alarm management method and system for content distribution network |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446329A (en) * | 2018-02-13 | 2018-08-24 | 北京工业大数据创新中心有限公司 | Adaptive databases partition method and system towards industrial time series database |
CN108932305A (en) * | 2018-06-12 | 2018-12-04 | 北京顶象技术有限公司 | A kind of data processing method, device, electronic equipment and storage medium |
CN109101644A (en) * | 2018-08-21 | 2018-12-28 | 上海新炬网络信息技术股份有限公司 | A kind of sound state journal file scanning collecting method |
CN111190871A (en) * | 2019-12-18 | 2020-05-22 | 中移(杭州)信息技术有限公司 | Log generation method and device, computer equipment and storage medium |
CN111324482A (en) * | 2020-03-24 | 2020-06-23 | 李勉勉 | Computer application program running data fault processing system |
CN112100025A (en) * | 2020-08-25 | 2020-12-18 | 北京明略昭辉科技有限公司 | Log simplifying method and device, electronic equipment and computer readable medium |
CN112273366A (en) * | 2020-10-28 | 2021-01-29 | 玉林市农业科学院(广西农业科学院玉林分院) | Method and system for ecologically repelling birds by agricultural unmanned aerial vehicle in rice direct seeding cultivation |
CN112579611A (en) * | 2020-12-29 | 2021-03-30 | 珠海金山网络游戏科技有限公司 | Data processing method and device |
CN112579611B (en) * | 2020-12-29 | 2024-03-19 | 珠海金山数字网络科技有限公司 | Data processing method and device |
CN112685277A (en) * | 2020-12-31 | 2021-04-20 | 海光信息技术股份有限公司 | Warning information checking method and device, electronic equipment and readable storage medium |
CN112764963A (en) * | 2021-01-29 | 2021-05-07 | 恒鸿达科技有限公司 | Method, device, equipment and medium for automatically collecting abnormal log information |
CN112764962A (en) * | 2021-01-29 | 2021-05-07 | 恒鸿达科技有限公司 | Tracking method and system for application version exception recovery |
CN115454954A (en) * | 2022-08-31 | 2022-12-09 | 上海移柯通信技术股份有限公司 | Data processing method, system and device and electronic equipment |
CN115454954B (en) * | 2022-08-31 | 2023-07-25 | 上海移柯通信技术股份有限公司 | Data processing method, system and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107171825B (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107171825A (en) | A kind of repetition daily record filter method of terminal | |
CN102254111B (en) | Malicious site detection method and device | |
CN104899016B (en) | Allocating stack Relation acquisition method and device | |
CN106502646A (en) | The page info processing method and processing device of application | |
CN101202761A (en) | System of distributed resource scheduling and method thereof | |
CN107391775A (en) | A kind of general web crawlers model implementation method and system | |
CN111580926A (en) | Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium | |
CN103019874A (en) | Method and device for realizing exception handling based on data synchronization | |
CN101896889A (en) | Radio terminal, radio terminal nonvolatile memory, and diagnosis information fail-safe storage method | |
CN107357731A (en) | Process produces monitoring, analysis and the processing method of core dump problems | |
CN106326129A (en) | Program abnormity information generating method and device | |
CN101251799B (en) | Apparatus and method for implementing management | |
CN112433953A (en) | Embedded automatic testing method, device, equipment and medium based on network game client | |
CN113434217B (en) | Vulnerability scanning method, vulnerability scanning device, computer equipment and medium | |
CN115543308A (en) | Front-end page rendering control method and device, electronic equipment and storage medium | |
CN115061916A (en) | Method for automatically generating interface test case and related equipment thereof | |
CN114461531A (en) | Platform adaptability test method, device, equipment and storage medium of test case | |
CN109799981B (en) | Integrated system and method based on execution chain | |
CN111026631B (en) | Automatic interface detection method, device and server | |
CN113296913A (en) | Data processing method, device and equipment based on single cluster and storage medium | |
CN110781647A (en) | Method for realizing data format verification based on Flink | |
CN102663299B (en) | Hardware resource information security online detecting system facing to terminal computers | |
CN107239360A (en) | A kind of linux Implementation of Embedded System methods based on Godson hardware platform | |
CN110175116B (en) | Test date switching method, device and system | |
CN102945152B (en) | The apparatus for management of information of embedded system based on management information bank and method |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200907 Address after: 315000 10 / F, No. 5, Lane 999, Yangfan Road, hi tech Zone, Ningbo City, Zhejiang Province Applicant after: TCL mobile communication technology (Ningbo) Co.,Ltd. Address before: 518063 Guangdong city of Shenzhen province Nanshan District ten South Road West High Technology South Road North Tower B 16 floor TCL Applicant before: Jiekai communication (Shenzhen) Co.,Ltd. |
|
TA01 | Transfer of patent application right |