Log configuration method and system for CDN (Content Delivery Network) service software, equipment and storage medium
By establishing a log configuration file template database, and generating and modifying log configuration files according to classification standards, the problems of differences in log format configuration requirements and difficulty in modifying in CDN service software are solved, and configuration convenience and cost savings are achieved, and service reliability.
Patent Information
- Application Number
- CN202311142175.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, the log format configuration requirements of CDN service software vary greatly, resulting in complex configuration and difficult to manage, resulting in frequent manual configuration errors, wasting manpower and time, and difficulty in time returning guarantee services.
By establishing a log configuration file template database, designing and writing templates according to classification standards, generating target log configuration files, modifying the template database can meet different customer needs and simplifying log format configuration.
It realizes the convenience of reuse and modification of log format configuration, saves a lot of labor costs, reduces the occurrence of configuration errors, and improves the reliability of services.
Smart Images

Figure CN119166603A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology and relates to a log configuration method and system, device, and storage medium for CDN service software. Background Art
[0002] In order to ensure the quality of service, reduce the occurrence of failures and control labor costs, CDN service providers use CDN logs as one of the core of CDN services. One of the focuses of the operation and maintenance team is to configure the log format, that is, to configure logs for various services in the production environment so that the results of the configuration adjustments can meet business needs and optimal service quality cost control.
[0003] However, in the actual operation of CDN, the needs of different customers vary greatly, resulting in a complex and ever-changing business environment. Specifically, different customers require different log formats, different business domain names have different log formats, different levels of equipment have different log formats, and different integration vendors provide different log formats.
[0004] With the development of business, the types of application software used by the company are increasing. Whether it is open source or self-developed application software, there are great differences in log format configuration, including format, content, etc. The maintenance of log format configuration files has become more and more heavy and difficult to manage. Currently, the operation and maintenance personnel can only manually manage and back up the old and new log format configuration files. The above method wastes a lot of manpower and time, and manual configuration is prone to configuration confusion and cannot effectively manage log configuration. In addition, it is very easy for errors to occur, resulting in service failures, causing huge losses to the company. Due to the lack of unified versioning management, if the log format configuration is wrong, the operation and maintenance personnel need to manually find the old version of the configuration file, and then send the old version of the configuration file again. The response is slow, and it is difficult to roll back in time to ensure online services. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] In order to solve the problems existing in the related technology, the embodiments of the present invention disclose a log configuration method and system, device, and storage medium for CDN service software, which are used to solve the problems in the prior art that the software log format configuration requirements of different customers cannot be reused and it is difficult to modify the log configuration.
[0007] In some embodiments, a log configuration management method for CDN service software is provided, the method comprising: a step of establishing a template database and a step of generating a log configuration file;
[0008] The step of establishing a template database comprises:
[0009] Collect classification criteria for log profiles;
[0010] Design log configuration file templates corresponding to the classification standards of each log configuration file;
[0011] Establish a log configuration file template database;
[0012] Write log configuration file templates into the template database according to different classification standards;
[0013] The step of generating a log configuration file includes:
[0014] Get the category of the target log configuration file;
[0015] According to the classification of the target log configuration file, a corresponding target log configuration file template is selected from the log configuration file template database as the corresponding target log configuration file.
[0016] Preferably, the step of establishing a template database further includes:
[0017] Modify the log configuration file template in the template database.
[0018] Preferably, the format of the log configuration file template includes: a configuration key, a separator, a text type, and multiple variables.
[0019] Preferably, the variables include: built-in variables, static variables, common variables and function variables.
[0020] Preferably, the classification criteria include: one or more of: software name, software version number, customer manufacturer, service equipment and service domain name.
[0021] In some embodiments, a log configuration management system for CDN service software is disclosed, including: a console module for inputting a classification of a selected target log configuration file;
[0022] The back-end server system is used to collect the classification standards of log configuration files, design log configuration file templates corresponding to the classification standards of each log configuration file, establish a log configuration file template database, write the log configuration file templates into the template database according to different classification standards, obtain the classification of the target log configuration file, select the corresponding target log configuration file template in the log configuration file template database according to the classification of the target log configuration file, and use the target log configuration file template as the corresponding target log configuration file.
[0023] Preferably, the console module is also used to modify the log configuration file template in the template database.
[0024] Preferably, the console module is a human-computer interaction interface.
[0025] Preferably, the target log configuration file displayed in the console module is classified as a graphical management interface.
[0026] In some embodiments, a device is disclosed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the log configuration management method for CDN service software as described above is performed.
[0027] In some embodiments, a computer-readable storage medium is disclosed, on which a computer program is stored, and the program is executed by a processor such as the log configuration management method for CDN service software described above.
[0028] The log configuration method, system, device, and storage medium for CDN service software provided by the embodiments of the present disclosure can achieve the following technical effects:
[0029] The disclosed embodiment collects the classification standards of log configuration files, designs log configuration file templates corresponding to the classification standards of each log configuration file, establishes a log configuration file template database, writes the log configuration file templates into the template database according to different classification standards, and then selects the corresponding target log configuration file template in the log configuration file template database according to the classification of the target log configuration file as the corresponding target log configuration file. When modification is needed, the log configuration file template in the template database can be modified. In this way, the software log format configuration facing different customers can be reused, and it is easy to modify the log format configuration, saving a lot of manpower costs.
[0030] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0032] Figure 1 It is a schematic diagram of a log configuration management system for CDN service software provided by an embodiment of the present disclosure;
[0033] Figure 2It is a flow chart of a log configuration management method for CDN service software provided by an embodiment of the present disclosure;
[0034] Figure 3 It is a schematic diagram of a log configuration management device for CDN service software provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and systems can be simplified for display.
[0036] The following description and accompanying drawings fully illustrate specific embodiments of the present invention so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The examples represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. The scope of the embodiments of the present invention includes the entire scope of the claims, and all available equivalents of the claims. In this article, each embodiment may be represented individually or generally by the term "invention", which is only for convenience, and if more than one invention is disclosed in fact, it is not intended to automatically limit the scope of the application to any single invention or inventive concept. In this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, without requiring or implying any actual relationship or order between these entities or operations. Moreover, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method or device including the elements. The various embodiments herein are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the methods, products, etc. disclosed in the embodiments, since they correspond to the method part disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0037] As the business develops, the types of application software used by the company are increasing. Whether it is open source or self-developed application software, there are great differences in log format configuration, including format, content, etc. The maintenance of log format configuration files has become increasingly heavy and difficult to manage. Currently, the operation and maintenance personnel can only manually manage and back up the new and old log format configuration files. The above method wastes a lot of manpower and time, and manual configuration is prone to configuration confusion, and cannot effectively manage log configuration.
[0038] In addition, it is very easy for errors to occur, leading to service failures and causing huge losses to the company. Due to the lack of unified version management, if the log format is configured incorrectly, the operation and maintenance personnel need to manually find the old version of the configuration file and then send the old version of the configuration file again. The response is slow and it is difficult to roll back in time to ensure online services.
[0039] In order to solve the problems existing in the related technology, the embodiments of the present invention disclose a log configuration method and system, device, and storage medium for CDN service software, which are used to solve the problems in the prior art that the software log format configuration requirements of different customers cannot be reused and it is difficult to modify the log configuration.
[0040] Combination Figure 1 As shown, an embodiment of the present disclosure provides a schematic diagram of a log configuration management system for CDN service software. The log configuration management system includes:
[0041] The console module is used to input the classification of the target log configuration file;
[0042] The back-end server system is used to collect the classification standards of log configuration files, design log configuration file templates corresponding to the classification standards of each log configuration file, establish a log configuration file template database, write the log configuration file templates into the template database according to different classification standards, obtain the classification of the target log configuration file, select the corresponding target log configuration file template in the log configuration file template database according to the classification of the target log configuration file, and use the target log configuration file template as the corresponding target log configuration file.
[0043] It should be understood that the console module is connected to the back-end server system. The console module is a human-computer interaction interface, which can be used to input the configuration requirements of the customer, i.e., the classification of the target log configuration file, and can also be used to output the target log configuration file. In practical applications, the console module can be a software interface or a hardware human-computer interaction screen. The back-end server system is used to provide corresponding data according to the input and output requirements of the console module.
[0044] In a preferred embodiment, the target log configuration file displayed in the console module is classified as a graphical management interface.
[0045] In this way, various categories of target log configuration files are displayed modularly, making it easy for customers to select the corresponding category.
[0046] Combination Figure 2 As shown, the embodiment of the present disclosure provides a log configuration management method for CDN service software, including: a step of establishing a template database and a step of generating a log configuration file;
[0047] The step of establishing a template database comprises:
[0048] S210, collecting classification standards of log configuration files;
[0049] S220, designing a log configuration file template corresponding to the classification standard of each log configuration file;
[0050] S230, establishing a log configuration file template database;
[0051] S240, writing the log configuration file template into the template database according to different classification standards;
[0052] The step of generating a log configuration file includes:
[0053] S250, obtaining a classification of a target log configuration file;
[0054] S260 , according to the classification of the target log configuration file, selecting a corresponding target log configuration file template from a log configuration file template database as the corresponding target log configuration file.
[0055] It should be understood that the purpose of S210 to S240 is to establish a template database. The template database stores the log configuration file template corresponding to the classification standard of each log configuration file. The purpose of S250 to S260 is to find the corresponding target log configuration file template in the template database according to the classification of the target log configuration file of the customer as the corresponding target log configuration file.
[0056] It should be noted that the target log configuration file is the target log configuration file that the customer needs to generate.
[0057] Furthermore, the format of the log configuration file template includes: a configuration key, a separator, a text type, and a plurality of variables. The variables may be built-in variables, static variables, common variables, and function variables.
[0058] Combination Figure 3 As shown, the embodiment of the present disclosure provides a device for log configuration management of CDN service software, including a processor and a memory. Optionally, the device may also include a communication interface and a bus. Among them, the processor, the communication interface, and the memory can communicate with each other through the bus. The communication interface can be used for information transmission. The processor can call the logic instructions in the memory to execute the log configuration management method for CDN service software of the above embodiment.
[0059] An embodiment of the present disclosure provides a storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the log configuration management method for CDN service software.
[0060] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transient computer-readable storage medium. Non-transient storage media include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, and may also be a transient storage medium.
[0061] The disclosed embodiment classifies log configuration files, designs log configuration file templates corresponding to each classified log configuration file, establishes a log configuration file template database, writes the log configuration file templates into the template database according to different classification standards, and then selects the corresponding target log configuration file template in the log configuration file template database according to the classification of the target log configuration file as the corresponding target log configuration file. When modification is needed, the log configuration file template in the template database can be modified. In this way, the software log format configuration facing different customers can be reused, and it is easy to modify the log format configuration, saving a lot of manpower costs.
[0062] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0063] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, systems and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0064] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A log configuration management method for CDN service software, characterized in that: The method comprises: a step of establishing a template database and a step of generating a log configuration file; The step of establishing a template database comprises: Collect classification criteria for log profiles; Design log configuration file templates corresponding to the classification standards of each log configuration file; Establish a log configuration file template database; Write log configuration file templates into the template database according to different classification standards; The step of generating a log configuration file includes: Get the category of the target log configuration file; According to the classification of the target log configuration file, a corresponding target log configuration file template is selected from the log configuration file template database as the corresponding target log configuration file.
2. The method according to claim 1, characterized in that The steps of establishing a template database also include: Modify the log configuration file template in the template database.
3. The method according to claim 1, characterized in that: The format of the log configuration file template includes: configuration key, separator, text type, and multiple variables.
4. The method according to claim 3, characterized in that The variables include: built-in variables, static variables, common variables and function variables.
5. The method according to claim 1, characterized in that The classification criteria include: one or more of: software name, software version number, customer manufacturer, service equipment and service domain name.
6. A log configuration management system for CDN service software, characterized in that: include: The console module is a human-computer interaction interface used to input and select the classification of the target log configuration file; The back-end server system is used to collect the classification standards of log configuration files, design log configuration file templates corresponding to the classification standards of each log configuration file, establish a log configuration file template database, write the log configuration file templates into the template database according to different classification standards, obtain the classification of the target log configuration file, select the corresponding target log configuration file template in the log configuration file template database according to the classification of the target log configuration file, and use the target log configuration file template as the corresponding target log configuration file.
7. The CDN service management system according to claim 5, characterized in that: The console module is also used to modify the log configuration file template in the template database.
8. The CDN service management system according to claim 5, characterized in that: The target log configuration files displayed in the console module are categorized as a graphical management interface.
9. A device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and device for creating log template and log analysis method
CN110377576A
Online extraction method and device for system log template
CN112463933A
Log transmission method and device, CDN system and electronic equipment
CN113934683A
Log template extraction method and device, server and storage medium
CN115525617A
Log recording method and system, computer equipment and medium
CN115757054A
