Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for automatically deleting repeated content in system logs on basis of Linux operating system

An operating system and system log technology, applied in hardware monitoring, program control devices, etc., can solve the problems of difficult to export log files, large log files, difficult to open and read, etc. The effect of accuracy

Inactive Publication Date: 2015-05-20
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, since the operating system will continuously write information such as the current work of the system and the feedback status of the hardware device in the / var / log / messages file during the working process, when the machine operating system or hardware device is abnormal, Records of relevant information will appear in the log, but the operating system will only faithfully record this information, that is, keep writing the same content to the log file, and will not consider the analysis of the log if too much duplicate content is written. It doesn't help, and it will cause the log file to be too large, and eventually the log file will be difficult to export, open, read, and analyze.

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
  • Method for automatically deleting repeated content in system logs on basis of Linux operating system
  • Method for automatically deleting repeated content in system logs on basis of Linux operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0020] The method of the present invention aims at the collection of server operating system logs and the processing process of reducing the volume, and prepares corresponding script files (as attached figure 1 As shown), the automatic processing of system logs can be automatically completed, and the processed files will be automatically saved in the specified directory, which is convenient for subsequent maintenance personnel to view and export.

[0021] Since an execution command is added to the crontab table of the server operating system, when the time interval defined by the system is up, it will automatically start calling the script program for automatically processing the system log, and start the processing process. ))as follows:

[0022] rootlc log]#crontab -u root -l

[0023] * * * / 1 * * / var / log / log / logmaintenance.sh

[0024] [rootlc log]#

[0025] To prepare for the start of the collection process, the script program for collecting and processing logs needs to b...

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 invention discloses a method for automatically deleting repeated content in system logs on the basis of a Linux operating system, belongs to the field of computer storage technology, and particularly relates to implementation of the function of automatically collecting information needed for machine failure exception problem analysis. According to the method, a system log collecting function is automatically triggered through a crontab tool under the Linux operating system, operation of compressing the sizes of log files is triggered automatically, and collected and processed information is automatically stored in appointed directories. Compared with the prior art, the method for automatically deleting the repeated content in the system logs on the basis of the Linux operating system has the advantages that in the aspect of usability, unattended operation can be achieved, system log information can be operated fully automatically and completely under the Linux operating system, the accuracy of failure analysis is improved, and application and popularization value is high.

Description

technical field [0001] The invention relates to the technical field of computer storage, in particular to a method for automatically deleting duplicate content in a system log based on a Linux operating system. Background technique [0002] With the development of new technologies such as cloud computing and big data, people have higher and higher requirements for the stable and reliable operation of servers and the mean time between failures (MTBF). How to effectively shorten the repair time of server faults and improve fault analysis High efficiency and accuracy is a difficult problem for every maintenance personnel. [0003] However, since the operating system will continuously write information such as the current work of the system and the feedback status of the hardware device in the / var / log / messages file during the working process, when the machine operating system or hardware device is abnormal, Records of relevant information will appear in the log, but the operat...

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
IPC IPC(8): G06F11/34G06F9/44
Inventor 刘兢任华进
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More