CN105224583A - The method for cleaning of journal file and device - Google Patents
The method for cleaning of journal file and device Download PDFInfo
- Publication number
- CN105224583A CN105224583A CN201410315725.XA CN201410315725A CN105224583A CN 105224583 A CN105224583 A CN 105224583A CN 201410315725 A CN201410315725 A CN 201410315725A CN 105224583 A CN105224583 A CN 105224583A
- Authority
- CN
- China
- Prior art keywords
- journal file
- file
- clearance
- store path
- journal
- 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
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of method for cleaning and device of journal file.Wherein method comprises: according to journal file key search program documentaion, finds out one or more program code comprising journal file key word from program documentaion; The store path of journal file is extracted from one or more program code; According to store path detect journal file whether exist, if exist, then using journal file as journal file for clearance; According to Prune Policies, journal file for clearance is cleared up.Easy-to-look-up generated journal file is carried out by the store path extracting journal file from one or more program code, detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance is cleared up, disk can be prevented to be filled, to ensure the reliability of website.
Description
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method for cleaning and device of journal file.
Background technology
The file that journal file generates when referring to access services device website, for recording log file or the file set of Action Events.During user's access websites, Website server ceaselessly can generate journal file, and As time goes on journal file can be increasing, finally filled up by disk, affects the normal use of website.Research staff can define the store path of journal file when developing, but generally, research staff is not under journal file is saved in assigned catalogue when writing code, but under being kept at the optional position catalogue on Website server, cause journal file to clear up loaded down with trivial details, affect the reliability of website.Prior art does not provide a kind of effective means, the problem that the disk solved caused by journal file is filled, website can not normally use.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method for cleaning of journal file solved the problem at least in part and the cleaning plant of corresponding journal file.
According to an aspect of the present invention, provide a kind of method for cleaning of journal file, it comprises:
According to journal file key search program documentaion, from program documentaion, find out one or more program code comprising described journal file key word;
The store path of journal file is extracted from described one or more program code;
Detect described journal file according to described store path whether to exist, if exist, then using described journal file as journal file for clearance;
According to Prune Policies, described journal file for clearance is cleared up.
According to a further aspect in the invention, provide a kind of cleaning plant of journal file, it comprises:
Retrieval module, is suitable for according to journal file key search program documentaion;
Search module, be suitable for finding out from program documentaion one or more program code comprising described journal file key word;
Extraction module, is suitable for the store path extracting journal file from described one or more program code;
Whether detection module, be suitable for detecting described journal file according to described store path and exist, if exist, then using described journal file as journal file for clearance;
Cleaning module, is suitable for clearing up described journal file for clearance according to Prune Policies.
According to scheme provided by the invention, according to journal file key search program documentaion, one or more program code comprising journal file key word is found out from program documentaion, the store path of journal file is extracted from one or more program code, detect journal file according to store path whether to exist, if exist, then using journal file as journal file for clearance, according to Prune Policies, journal file for clearance is cleared up.Easy-to-look-up generated journal file is carried out by the store path extracting journal file from one or more program code, detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance is cleared up, disk can be prevented to be filled, to affect the reliability of website.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the method for cleaning of journal file according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of the method for cleaning of journal file in accordance with another embodiment of the present invention;
Fig. 3 shows the process flow diagram of the method for cleaning of journal file in accordance with another embodiment of the present invention;
Fig. 4 shows the structured flowchart of the cleaning plant of journal file according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the process flow diagram of the method for cleaning of journal file according to an embodiment of the invention.As shown in Figure 1, the method comprises the following steps:
Step S100, according to journal file key search program documentaion, finds out one or more program code comprising journal file key word from program documentaion.
The file that journal file generates when referring to access services device website, for recording log file or the file set of Action Events.Program documentaion refers to that research staff develops the text comprising program code write.Research staff can write the program code of journal file store path in R&D process according to predefined journal file key word.
Step S110, extracts the store path of journal file from one or more program code.
The store path of journal file is extracted from one or more program code comprising journal file key word.
Step S120, according to store path detect journal file whether exist, if exist, then using journal file as journal file for clearance.
Although research staff has write the store path of journal file when developing, but owing to writing error or program runs the reason such as wrong, do not have the journal file that real preservation generates to some extent under causing some store path, therefore whether the embodiment of the present invention exists journal file under needing to detect store path.Particularly, detect journal file according to the store path that obtains in step S110 and whether exist, if exist, then using journal file as journal file for clearance.
Step S130, clears up journal file for clearance according to Prune Policies.
The journal file for clearance determined in step S120 is cleared up.
According to the method that the above embodiment of the present invention provides, according to journal file key search program documentaion, one or more program code comprising journal file key word is found out from program documentaion, the store path of journal file is extracted from one or more program code, detect journal file according to store path whether to exist, if exist, then using journal file as journal file for clearance, according to Prune Policies, journal file for clearance is cleared up.Easy-to-look-up generated journal file is carried out by the store path extracting journal file from one or more program code, detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance is cleared up, disk can be prevented to be filled, to affect the reliability of website.
Fig. 2 shows the process flow diagram of the method for cleaning of journal file in accordance with another embodiment of the present invention.As shown in Figure 2, the method comprises the following steps:
Step S200, according to journal file key search program documentaion, finds out one or more program code comprising journal file key word from program documentaion.
The file that journal file generates when referring to access services device website, for recording log file or the file set of Action Events.Program documentaion refers to that research staff develops the text comprising program code write.Research staff can write the program code of journal file store path in R&D process according to predefined journal file key word.Therefore need first to analyze program documentaion, know the journal file key word that research staff is used when writing code, be such as key search program documentaion with log according to journal file key word, from program documentaion, find out one or more program code comprising log keyword.
In this step, journal file key word suitably can be arranged according to actual conditions by those skilled in the art, and being not limited in is Log, and can also be the key words such as error_log, uninstall_log, the embodiment of the present invention be restricted journal file key word.
Step S210, extracts the store path of journal file from one or more program code.
The store path of journal file is extracted from one or more program code comprising journal file key word.
Step S220, obtains the store path of journal file in the Development Framework predefine location lookup of program documentaion.
Development Framework refers to people's some general character according to exploitation, for certain application and development, takes out a set of relatively reasonable effective development technique and method, and research provides developing instrument with matching.Development Framework defines complete codes and standards, provide various expansion modules required in application and development, application developer only need according to oneself need carry out easy configuration and some exploitation, just can call Development Framework module and complete integration and required function is provided.For performance history, not only increase product quality like this, reduce cost, shorten the development time, also make exploitation do lighter and lighter, benefit is become better and better, thus forms a kind of optimum circulation.Conventional Development Framework has PHP Development Framework.PHP Development Framework (PHPDevelopmentFramework) is exactly a kind of framework for PHP exploitation.It can simplify and accelerate the exploitation of PHP, can also be that program code and file increase structure, thus impel PHP developer compile out more readability, be more readily understood and the code of more easy care.Finally, PHP developer also just can more effectively develop PHP program and project by means of framework.
Research staff can carry out the store path of predefine journal file by exploitation framework, that is Development Framework has defined the storage rule of some journal files, wherein, the storage rule of journal file can for comprising the key word of journal file in the store path of journal file, therefore in this step, only need according to the store path of the Development Framework predefine location lookup journal file of program documentaion, such as, has code < write in the Development Framework predefine position of program documentaion? phppath=" E: temp c.log "; >, can according to the store path path=of this codelookup journal file " E: temp c.log ".In addition, do not do concrete restriction to the storage rule of journal file in the present embodiment at this, those skilled in the art can define the storage rule of journal file according to actual needs.
After the store path obtaining journal file, obtained store path is gathered.
Whether step S230, detect journal file according to store path and exist, if exist, then performs step S240; If do not exist, then method terminates.
Although research staff has write the store path of journal file when developing, but owing to writing error or program runs the reason such as wrong, do not have the journal file that real preservation generates to some extent under causing some store path, therefore whether the embodiment of the present invention exists journal file under needing to detect store path.Particularly, detect journal file according to the store path obtained in step S210 and step S220 whether to exist.
Step S240, using journal file as journal file for clearance.
Detect there is journal file under store path when, using journal file as journal file for clearance.
Step S250, clears up journal file for clearance according to Prune Policies.
Prune Policies in this step can be preserved for deleting journal file or journal file being moved to far-end server, but is not limited thereto, and those skilled in the art can clear up according to actual conditions.
Particularly, be described in detail for above-mentioned two kinds of method for cleaning:
Method one:
First, the size of journal file for clearance is analyzed.
First the size of journal file for clearance was analyzed before cleaning journal file for clearance, such as, utilize file size analysis software to analyze, better to control the size of journal file.
Then, according to the size of journal file for clearance, multiple sub-journal file is cut into journal file for clearance, by partly or entirely deleting in multiple sub-journal file.
Size according to journal file for clearance is cut journal file for clearance, such as only retain one hour or intraday journal file, or namely to carry out etc. the number cutting of size by number cutting according to the size of journal file for clearance, partly or entirely carry out delete processing in the multiple sub-journal file after cutting.
Method two:
First, the size of journal file for clearance is analyzed.
The size that this step analyzes journal file for clearance with step in said method one is similar, does not repeat them here.
According to the size of journal file for clearance, multiple sub-journal file is cut into journal file for clearance, the far-end server that partly or entirely moves in multiple sub-journal file is preserved.
Cut principle in the Principles and measurements one in this step, journal file for clearance cut similar, do not repeat them here.Be with the difference in method one, this step is carried out preservation and be instead of in method one with by the far-end server that partly or entirely moves in multiple sub-journal file and partly or entirely delete in multiple sub-journal file.
In addition, do not do concrete restriction to the sequencing obtaining the method for the store path of journal file described in the present embodiment at this, those skilled in the art can adopt following steps to obtain the store path of journal file according to actual needs:
The store path of journal file is obtained in the Development Framework predefine location lookup of program documentaion.
According to journal file key search program documentaion, from program documentaion, find out one or more program code comprising journal file key word.
The store path of journal file is extracted from one or more program code.
Illustrate, research staff has carried out following coding for the store path of journal file:
After the program documentaion obtaining research staff, first program documentaion is analyzed, obtaining research staff's journal file key word used when writing code is log, error, uninstall, according to journal file key search program documentaion, from program documentaion, find out the one or more program code * log*path=" E: temp 1.log " comprising journal file key word; * error*path=" E: temp a "; * uninstall*path=" E: temp 2.txt ".The store path extracting journal file from said procedure code is respectively " E: temp 1.log ", " E: temp a ", " E: temp 2.txt ".Analysis learns that research staff employs php Development Framework when writing code, this Development Framework predefines the store path of journal file, and the store path that therefore can obtain journal file in the Development Framework predefine location lookup of program documentaion is: " E: temp c.log ".To detect under this path whether log file according to store path obtained above, all record journal file under above-mentioned store path after testing, wherein, journal file is respectively 1.log, a, 2.txt, c.log, then it can be used as journal file for clearance.Analyze the size of each journal file for clearance, know that their size is respectively: 10G, 500M, 1G, 100M.Analyzing the size obtaining journal file 1.log for clearance is 10G, this band cleaning journal file is cut and only retains intraday journal file, obtain two its sizes of sub-journal file after cutting and be respectively 1.2G, 8.8G, wherein intraday log file size is 1.2G, then delete the sub-journal file that size is 8.8G, complete the cleaning to journal file.
According to the method that the above embodiment of the present invention provides, utilize according to journal file key search program documentaion, from program documentaion, find out one or more program code comprising journal file key word, from one or more program code, extract the store path of journal file; These the two kinds of methods of store path obtaining journal file in the Development Framework predefine location lookup of program documentaion search the store path of journal file, improve search efficiency, and overcome and use single method to search the defect having omission.Detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance be cleared up, disk can be prevented to be filled, to ensure the reliability of website.
Fig. 3 shows the process flow diagram of the method for cleaning of journal file in accordance with another embodiment of the present invention.As shown in Figure 3, the method comprises the following steps:
Step S300, according to journal file key search program documentaion, finds out one or more program code comprising journal file key word from program documentaion.
Step S310, extracts the store path of journal file from one or more program code.
Step S320, obtains the store path of journal file in the Development Framework predefine location lookup of program documentaion.
Wherein, the step S300-step S320 in embodiment illustrated in fig. 3 and embodiment illustrated in fig. 2 in step S200-step S220 similar, do not repeat them here.
Step S330, after file timing has upgraded, has obtained the file index list after upgrading, the store path of every bar file index include file in file index list.
File index refers to the index of all files relevant with website.After server software receives local order, server software regularly such as can upgrade the All Files on it in units of one day, then generated a DB file.After file timing has upgraded, can obtain the file index list after renewal, the store path of every bar file index include file in file index list, wherein, this file index is kept in the DB file that server carries.For journal file log, error_log, uninstall_log, file index list can be:
logpath=“E:\temp\1.log”;
error_logpath=“E:\temp\a”;
uninstall_logpath=“E:\temp\2.txt”
Step S340, the file index list after upgrading according to journal file key search, finds out one or more file index comprising journal file key word.
Whether comprising journal file key word to detect file index list, needing the file index list after upgrading according to journal file key search, and finding out one or more file index comprising journal file key word.
Step S350, extracts the store path of journal file from one or more file index.
The store path of journal file is extracted from one or more file comprising journal file key word.
Whether step S360, detect journal file according to store path and exist, if exist, then performs step S370; If do not exist, then method terminates.
Step S370, using journal file as journal file for clearance.
Step S380, clears up journal file for clearance according to Prune Policies.
Wherein, the step S360-step S380 in embodiment illustrated in fig. 3 and embodiment illustrated in fig. 2 in step S230-step S250 similar, do not repeat them here.
In addition, do not do concrete restriction to the sequencing obtaining three kinds of methods of the store path of journal file described in the present embodiment at this, those skilled in the art can adjust the order of three kinds of methods according to actual needs.
According to the method that the above embodiment of the present invention provides, utilize according to journal file key search program documentaion, from program documentaion, find out one or more program code comprising journal file key word, from one or more program code, extract the store path of journal file; These the two kinds of methods of store path obtaining journal file in the Development Framework predefine location lookup of program documentaion search the store path of journal file; After file timing has upgraded, obtain the file index list after upgrading, the store path of every bar file index include file in file index list, file index list after upgrading according to journal file key search, find out one or more file index comprising journal file key word, from one or more file index, extract the store path of journal file, improve search efficiency, and overcome the defect of searching and having omission.Detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance be cleared up, disk can be prevented to be filled, to ensure the reliability of website.
The present invention can also only utilize according to journal file key search program documentaion, finds out one or more program code comprising journal file key word, extract the store path of journal file from one or more program code from program documentaion; After file timing has upgraded, obtain the file index list after upgrading, the store path of every bar file index include file in file index list, file index list after upgrading according to journal file key search, find out one or more file index comprising journal file key word, these the two kinds of methods of store path extracting journal file from one or more file index obtain the store path of journal file, do not repeat them here.
Fig. 4 shows the structured flowchart of the cleaning plant of journal file according to an embodiment of the invention.As shown in Figure 4, this device comprises: retrieval module 400, search module 410, extraction module 420, detection module 430, cleaning module 440.
Retrieval module 400, is suitable for according to journal file key search program documentaion.
Search module 410, be suitable for finding out from program documentaion one or more program code comprising journal file key word.
Extraction module 420, is suitable for the store path extracting journal file from one or more program code.
Detection module 430, be suitable for according to store path detect journal file whether exist, if exist, then using journal file as journal file for clearance.
Cleaning module 440, is suitable for clearing up journal file for clearance according to Prune Policies.
Journal file cleaning plant also comprises: the first acquisition module 450, is suitable for the store path obtaining journal file in the Development Framework predefine location lookup of program documentaion.
Journal file cleaning plant also comprises: the second acquisition module 460, is suitable for, after file timing has upgraded, obtaining the file index list after upgrading, the store path of every bar file index include file in file index list.
File index list after retrieval module 400 upgrades according to journal file key search further.
Search module 410 and be further adapted for one or more file index finding out and comprise journal file key word.
Extraction module 420 is further adapted for the store path extracting journal file from one or more file index.
Cleaning module 440 comprises further: analytic unit 470, is suitable for the size analyzing journal file for clearance.
Cutter unit 480, is suitable for the size according to journal file for clearance, is cut into multiple sub-journal file to journal file for clearance.
Delete cells 490, is suitable for partly or entirely deleting in multiple sub-journal file.
Storage unit 500, is suitable for the far-end server that partly or entirely moves in multiple sub-journal file to preserve.
According to the device that the above embodiment of the present invention provides, according to journal file key search program documentaion, one or more program code comprising journal file key word is found out from program documentaion, the store path of journal file is extracted from one or more program code, detect journal file according to store path whether to exist, if exist, then using journal file as journal file for clearance, according to Prune Policies, journal file for clearance is cleared up.Easy-to-look-up generated journal file is carried out by the store path extracting journal file from one or more program code, detect journal file according to store path whether to exist, in case of presence using journal file as journal file for clearance, can clear up file targetedly, according to Prune Policies, journal file for clearance is cleared up, disk can be prevented to be filled, to ensure the reliability of website.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the cleaning equipment of the journal file of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Claims (10)
1. a method for cleaning for journal file, it comprises:
According to journal file key search program documentaion, from program documentaion, find out one or more program code comprising described journal file key word;
The store path of journal file is extracted from described one or more program code;
Detect described journal file according to described store path whether to exist, if exist, then using described journal file as journal file for clearance;
According to Prune Policies, described journal file for clearance is cleared up.
2. method according to claim 1, wherein, described method also comprises: the store path obtaining journal file in the Development Framework predefine location lookup of described program documentaion.
3. method according to claim 1 and 2, wherein, described method also comprises:
After file timing has upgraded, obtain the file index list after upgrading, the store path of every bar file index include file in described file index list;
File index list after upgrading according to journal file key search, finds out one or more file index comprising described journal file key word;
The store path of journal file is extracted from described one or more file index.
4. the method according to any one of claim 1-3, wherein, described cleaning described journal file for clearance according to Prune Policies comprises further:
Analyze the size of described journal file for clearance;
According to the size of described journal file for clearance, multiple sub-journal file is cut into described journal file for clearance, by partly or entirely deleting in multiple sub-journal file.
5. the method according to any one of claim 1-3, wherein, described cleaning described journal file for clearance according to Prune Policies comprises further:
Analyze the size of described journal file for clearance;
According to the size of described journal file for clearance, multiple sub-journal file is cut into described journal file for clearance, the far-end server that partly or entirely moves in multiple sub-journal file is preserved.
6. a cleaning plant for journal file, it comprises:
Retrieval module, is suitable for according to journal file key search program documentaion;
Search module, be suitable for finding out from program documentaion one or more program code comprising described journal file key word;
Extraction module, is suitable for the store path extracting journal file from described one or more program code;
Whether detection module, be suitable for detecting described journal file according to described store path and exist, if exist, then using described journal file as journal file for clearance;
Cleaning module, is suitable for clearing up described journal file for clearance according to Prune Policies.
7. device according to claim 6, wherein, also comprises:
First acquisition module, is suitable for the store path obtaining journal file in the Development Framework predefine location lookup of described program documentaion.
8. the device according to claim 6 or 7, wherein, also comprises:
Second acquisition module, is suitable for, after file timing has upgraded, obtaining the file index list after upgrading, the store path of every bar file index include file in described file index list;
File index list after described retrieval module upgrades according to journal file key search further;
Described module of searching is further adapted for one or more file index finding out and comprise described journal file key word;
Described extraction module is further adapted for the store path extracting journal file from described one or more file index.
9. the device according to any one of claim 6-8, wherein, described cleaning module comprises further:
Analytic unit, is suitable for the size analyzing described journal file for clearance;
Cutter unit, is suitable for the size according to described journal file for clearance, is cut into multiple sub-journal file to described journal file for clearance;
Delete cells, is suitable for partly or entirely deleting in multiple sub-journal file.
10. the device according to any one of claim 6-8, wherein, described cleaning module comprises further:
Analytic unit, is suitable for the size analyzing described journal file for clearance;
Cutter unit, is suitable for the size according to described journal file for clearance, is cut into multiple sub-journal file to described journal file for clearance;
Storage unit, is suitable for the far-end server that partly or entirely moves in multiple sub-journal file to preserve.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315725.XA CN105224583B (en) | 2014-07-03 | 2014-07-03 | Method and device for cleaning log files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410315725.XA CN105224583B (en) | 2014-07-03 | 2014-07-03 | Method and device for cleaning log files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105224583A true CN105224583A (en) | 2016-01-06 |
CN105224583B CN105224583B (en) | 2020-06-26 |
Family
ID=54993552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410315725.XA Active CN105224583B (en) | 2014-07-03 | 2014-07-03 | Method and device for cleaning log files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224583B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107819616A (en) * | 2017-10-30 | 2018-03-20 | 杭州安恒信息技术有限公司 | Automatically extract the method, apparatus and system of daily record |
CN109542655A (en) * | 2017-09-21 | 2019-03-29 | 北京金山安全软件有限公司 | Method and device for analyzing mistaken deletion reason, server and readable storage medium |
CN110502486A (en) * | 2019-08-21 | 2019-11-26 | 中国工商银行股份有限公司 | Log processing method, device, electronic equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916164A (en) * | 2010-08-11 | 2010-12-15 | 中兴通讯股份有限公司 | Mobile terminal and file browsing method implemented by same |
CN101969386A (en) * | 2010-11-09 | 2011-02-09 | 道有道(北京)科技有限公司 | Log acquisition device and log acquisition method |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
CN103685400A (en) * | 2012-09-17 | 2014-03-26 | 联想(北京)有限公司 | Information processing method, server and electronic equipment |
-
2014
- 2014-07-03 CN CN201410315725.XA patent/CN105224583B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916164A (en) * | 2010-08-11 | 2010-12-15 | 中兴通讯股份有限公司 | Mobile terminal and file browsing method implemented by same |
CN101969386A (en) * | 2010-11-09 | 2011-02-09 | 道有道(北京)科技有限公司 | Log acquisition device and log acquisition method |
CN102654872A (en) * | 2011-03-03 | 2012-09-05 | 腾讯科技(深圳)有限公司 | Method and device for cleaning junk files generated by application programs |
CN103685400A (en) * | 2012-09-17 | 2014-03-26 | 联想(北京)有限公司 | Information processing method, server and electronic equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542655A (en) * | 2017-09-21 | 2019-03-29 | 北京金山安全软件有限公司 | Method and device for analyzing mistaken deletion reason, server and readable storage medium |
CN109542655B (en) * | 2017-09-21 | 2022-04-22 | 北京金山安全软件有限公司 | Method and device for analyzing mistaken deletion reason, server and readable storage medium |
CN107819616A (en) * | 2017-10-30 | 2018-03-20 | 杭州安恒信息技术有限公司 | Automatically extract the method, apparatus and system of daily record |
CN110502486A (en) * | 2019-08-21 | 2019-11-26 | 中国工商银行股份有限公司 | Log processing method, device, electronic equipment and computer readable storage medium |
CN110502486B (en) * | 2019-08-21 | 2022-01-11 | 中国工商银行股份有限公司 | Log processing method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105224583B (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9665467B2 (en) | Error and solution tracking in a software development environment | |
US9251157B2 (en) | Enterprise node rank engine | |
US8281399B1 (en) | Systems and methods for using property tables to perform non-iterative malware scans | |
US20120072988A1 (en) | Detection of global metamorphic malware variants using control and data flow analysis | |
CN102867144B (en) | A kind of for detecting the method and apparatus with dump virus | |
CN103632100A (en) | Method and device for detecting website bugs | |
CN103150506A (en) | Method and device for detecting rogue program | |
CN111367595B (en) | Data processing method, program running method, device and processing equipment | |
CN104462985A (en) | Detecting method and device of bat loopholes | |
US20210264029A1 (en) | Method and apparatus for analyzing malicious code | |
CN103631603A (en) | Software cleaning method and system | |
US10437986B2 (en) | Distance and method of indexing sandbox logs for mapping program behavior | |
CN104933044A (en) | Application uninstalling reason classification method and classification apparatus | |
CN103559447A (en) | Detection method, detection device and detection system based on virus sample characteristics | |
CN103617390A (en) | Malicious webpage judgment method, device and system | |
CN105224583A (en) | The method for cleaning of journal file and device | |
CN102929732B (en) | Method and device for calling file by application program and client-side equipment | |
CN102929733B (en) | Method and device for processing error files and client-side equipment | |
CN102930209B (en) | The document handling method of movable storage device and document handling apparatus | |
US11061704B2 (en) | Lightweight and precise value profiling | |
CN108132971B (en) | Analysis method and device for database fragment files | |
CN102945346B (en) | A kind of method for enumerating system process and device | |
KR20210110074A (en) | Method and apparatus for analysing function of malicious code | |
TWI764491B (en) | Text information automatically mining method and system | |
US20230153226A1 (en) | System and Method for Identifying Performance Bottlenecks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220819 Address after: No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science and Technology Park, High-tech Zone, Binhai New District, Tianjin 300000 Patentee after: 3600 Technology Group Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |