Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and apparatus for modifying a log configuration file

A configuration file and log technology, applied in the server field, can solve problems such as log server exception, log configuration file damage, and log service not running normally.

Active Publication Date: 2018-12-28
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the system suddenly crashes or loses power when modifying the log configuration file, the log configuration file being modified may be irreversibly damaged, which will cause the log service (alarm service and logging service) to fail to operate normally, and may even cause the log server to be abnormal

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
  • A method and apparatus for modifying a log configuration file
  • A method and apparatus for modifying a log configuration file
  • A method and apparatus for modifying a log configuration file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] The embodiment of the invention discloses a method, device, device and readable storage medium for modifying a log configuration file, so as to ensure the security of the log configuration file when modifying the log configuration file.

[0042] see figure 1 , a method for modifying a log configuration file provided by an embodiment of the present invention includes:

[0043] S101. Receive a command to modify the log configuration file;

[0044] Speci...

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 modifying a log configuration file, which comprises the following steps: when a command for modifying the log configuration file is received, the log configurationfile is backed up to obtain a backup log configuration file, and a file lock is established for the backup log configuration file; when the command for modifying the log configuration file is received, the log configuration file is backed up. Modify the backup log configuration file according to the command, obtain the target log configuration file, and release the file lock; Replace the log configuration file with the target log configuration file and complete the modification of the log configuration file. When the log configuration file is modified by the method, the original log configuration file will not be damaged when the system suddenly crashes or is powered down, so as to ensure the security of the log configuration file and the normal operation of the alarm service and the logrecording service. Accordingly, the apparatus, the device and the readable storage medium for modifying the log configuration file disclosed by the present invention also have the technical effects mentioned above.

Description

technical field [0001] The present invention relates to the technical field of servers, and more specifically, relates to a method, device, equipment and readable storage medium for modifying log configuration files. Background technique [0002] In a server cluster, the cluster log is generally recorded by the log server. Wherein, the log server, as an information recording center in the network, can record log information, fault alarm information and other relevant information in the network. [0003] When the log server records fault alarm information, it generally records according to the log configuration file (syslog.conf). Among them, the log configuration file records information such as server IP configuration, server port setting, reporting log type, and sending alarm level configuration, so that the log server can record log information, fault alarm information, and other related information according to the log configuration file. [0004] At present, when the ...

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): H04L12/24G06F17/30
CPCH04L41/069H04L41/084
Inventor 靳先奇乔英良颜伟
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD