Log file cleaning method and apparatus

A log file and cleaning method technology, applied in the Internet field, can solve problems such as the website cannot be used normally, affecting the reliability of the website, affecting the normal use of the website, etc.

Active Publication Date: 2016-01-06
360 TECH GRP CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When users visit the website, the website server will continuously generate log files, and as time goes by, the log files will become larger and larger, and eventually fill up the disk, affecting the normal use of the website
The R&D personnel will define the storage path of the log files during development, but in general, the R&D personnel do not save the log files in the specified directory when writing the code, but save them in any directory on the website server, resulting in log File cleaning is cumbersome and affects the reliability of the website
The existing technology does not provide an effective means to solve the problems caused by log files that the disk is filled and the website cannot be used normally

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log file cleaning method and apparatus
  • Log file cleaning method and apparatus
  • Log file cleaning method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0023] figure 1 Shows a flow chart of a log file cleaning method according to an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:

[0024] In step S100, the program text is retrieved according to the log file keywords, and one or more program codes containing the log file keywords are found from the program text.

[0025] Log files refer to the files gener...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention discloses a log file cleaning method and apparatus. The method comprises: retrieving a program text according to a log file keyword and finding out one or more program codes containing log file keywords from the program text; extracting a storage path of a log file from the one or more program codes; detecting whether the log file exists according to the storage path, and if the log file exists, regarding the log file as a to-be-cleaned log file; and cleaning the to-be-cleaned log file according to a cleaning policy. The storage path of the log file is extracted from the one or more program codes, so that the generated log file can be conveniently searched for; whether the log file exists is detected according to the storage path, and if the log file exists, the log file is regarded as the to-be-cleaned log file, so that the file can be cleaned in a targeted way; and the to-be-cleaned file is cleaned according to the cleaning policy, so that a magnetic disk can be prevented from being filled up and the reliability of a website is guaranteed.

Description

Technical field [0001] The present invention relates to the field of Internet technology, in particular to a method and device for cleaning log files. Background technique [0002] Log files refer to the files generated when accessing the server website, and are used to record operation events. When a user visits a website, the website server will continuously generate log files, and the log files will become larger and larger over time, and finally the disk will be filled up, affecting the normal use of the website. The R&D personnel will define the storage path of the log file during development, but in general, the R&D personnel do not save the log file in the specified directory when writing the code, but save it in any directory on the website server, causing the log File cleaning is cumbersome and affects the reliability of the website. The prior art does not provide an effective means to solve the problem that the disk is filled up and the website cannot be used normally...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 许斯亮孔德亮
Owner 360 TECH GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products