CN115408344B - Log formatting method, device, electronic equipment and storage medium - Google Patents

Log formatting method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115408344B
CN115408344B CN202211196520.5A CN202211196520A CN115408344B CN 115408344 B CN115408344 B CN 115408344B CN 202211196520 A CN202211196520 A CN 202211196520A CN 115408344 B CN115408344 B CN 115408344B
Authority
CN
China
Prior art keywords
log
file
formatting
address information
service
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.)
Active
Application number
CN202211196520.5A
Other languages
Chinese (zh)
Other versions
CN115408344A (en
Inventor
徐洪宽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202211196520.5A priority Critical patent/CN115408344B/en
Publication of CN115408344A publication Critical patent/CN115408344A/en
Application granted granted Critical
Publication of CN115408344B publication Critical patent/CN115408344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a log formatting method, a log formatting device, log formatting equipment and a storage medium, which can be applied to the technical field of computers. The method comprises the following steps: according to the log address information configured in the configuration file, acquiring a log file related to the log address information, wherein the configuration file is also configured with an output format of the log file; determining a format conversion result configured for the log address information as a target formatting service of an output format according to the log address information and the output format; scheduling the log file to a log processor corresponding to the target formatting service by using a first scheduling service; and formatting the log file by using a log processor.

Description

Log formatting method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a log formatting method, a log formatting device, an electronic device and a storage medium.
Background
Network devices, systems, and services, etc., typically generate a log-called event record, called log, at run-time. Various log files, such as application logs, security logs, system logs, service logs, protocol logs, server logs, etc., are designed in the operating system, and various types of logs are different according to the service opened by the system.
Multiple development languages are developed and used by multiple project groups in multiple projects for self-research, so that the diversity of log formats is caused, data acquisition, integration and mining analysis are inconvenient, and log contents before project log standardization are lost without corresponding formatting treatment.
Disclosure of Invention
In view of the above, the present disclosure provides a log formatting method, apparatus, electronic device, and storage medium.
According to a first aspect of the present disclosure, there is provided a log formatting method, including: according to the log address information configured in the configuration file, acquiring a log file related to the log address information, wherein the configuration file is also configured with an output format of the log file; determining a format conversion result configured for the log address information as a target formatting service of the output format according to the log address information and the output format; scheduling the log file to a log processor corresponding to the target formatting service by using a first scheduling service; and formatting the log file by using the log processor.
A second aspect of the present disclosure provides a log formatting device, including: the first acquisition module is used for acquiring a log file related to the log address information according to the log address information configured in the configuration file, wherein the configuration file is also configured with an output format of the log file; the determining module is used for determining that a format conversion result configured for the log address information is a target formatting service of the output format according to the log address information and the output format; the scheduling module is used for scheduling the log file to a log processor corresponding to the target formatting service by using a first scheduling service; and the processing module is used for formatting the log file by using the log processor.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the log formatting method described in the present disclosure.
The fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the log formatting method described in the present disclosure.
The fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the log formatting method of the present disclosure.
According to the log formatting method, the log formatting device, the electronic equipment and the storage medium, the target formatting service of which the format conversion result configured for the log address information is the output format is determined according to the log address information configured in the configuration file and the output format of the log file related to the log address information; scheduling the log file to a log processor corresponding to the target formatting service by using a first scheduling service; and formatting the log file by using a log processor. The method can realize the formatting treatment of the log file by combining the formatting service and the first scheduling service in a mode of configuring log address information, outputting format and formatting service, format the log content into a fixed format by the situation of the configuration file, at least partially solve the problem that the log format is inconvenient for data acquisition, integration and mining analysis due to diversity of the log format, and avoid the loss and discarding of useful data in the log caused by omission problem by realizing consistency of the log format, and bring convenience to later mining analysis.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a log formatting method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a log formatting method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a code design architecture diagram for implementing a log formatting method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a log formatting device according to an embodiment of the present disclosure; and
fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a log formatting method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
Each type of cloud application has a corresponding log service function and can provide a corresponding log collection client. However, log collection clients provided by various cloud applications have requirements on log formats, such as requiring that the log have a certain preset format, and no separate client is provided for log format arrangement. In addition, in the solution proposed in the market aiming at log format arrangement, compared with a plurality of components which are more complicated and dependent during operation on self-research projects, the solution brings inconvenience to later log collection, arrangement and mining analysis.
The embodiment of the disclosure provides a log formatting method, a log formatting device, electronic equipment and a storage medium. The method comprises the following steps: according to the log address information configured in the configuration file, acquiring a log file related to the log address information, wherein the configuration file is also configured with an output format of the log file; determining a format conversion result configured for the log address information as a target formatting service of an output format according to the log address information and the output format; scheduling the log file to a log processor corresponding to the target formatting service by using a first scheduling service; and formatting the log file by using a log processor.
Fig. 1 schematically illustrates an application scenario diagram of a log formatting method according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the log formatting method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the log formatting device provided by the embodiments of the present disclosure may be generally provided in the server 105. The log formatting method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the log formatting apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The log formatting method of the disclosed embodiment will be described in detail with reference to fig. 2 to 3 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flow chart of a log formatting method according to an embodiment of the present disclosure.
As shown in fig. 2, the log formatting method of this embodiment includes operations S210 to S240.
In operation S210, according to the log address information configured in the configuration file, a log file related to the log address information is obtained, and an output format of the log file is also configured in the configuration file.
According to embodiments of the present disclosure, the configuration file may include an xml (Extensible Markup Language ) file. The configuration file may be configured with configuration information such as log address information of a log file to be processed and an output format of the log file. The configuration information in the configuration file can be configured by user definition according to actual use requirements. Under the condition that the initial configuration information is configured, the user can add, delete, modify, update and the like the initial configuration information according to the actual use requirement to obtain the configuration file with the target configuration information. The configuration information in the configuration file can provide reference for the subsequent process of obtaining the log file and formatting the log file.
According to an embodiment of the present disclosure, the log address information may include at least one of: the first path information characterizing the storage location of the offline log, the second path information characterizing the generation location of the real-time log, the port information characterizing the network transmission channel of the real-time log, and the like, and may not be limited thereto. The log address information may be used to provide a reference path or reference port for the process of obtaining the log file. For example, by accessing or monitoring the path or port, an offline or real-time log file may be obtained.
According to an embodiment of the present disclosure, the output format may include at least one of: JSON (JavaScriptObject Notation, JS object profile, a lightweight data exchange format), regulatable format, etc., and may not be limited thereto. The output format may be used to provide a reference for formatting the processing results of the processing log file. For example, in the case where the output format is configured as JSON, it may be determined that the result of the formatting process for the log file is a file in JSON format, so that an appropriate formatting service may be selected accordingly.
According to embodiments of the present disclosure, log address information and output formats may be configured modularly. For example, JSON may be configured for the first log address information, JSON and regulatable format may be configured for the second log address information, and so on. The output format may also exist in the configuration file as global configuration information. For example, the output format may be configured as JSON independently of all log address information, serving as a normalized format of formatting processing results of log files corresponding to all log address information.
It should be noted that, for a plurality of items, a plurality of output formats may be designed. Accordingly, a plurality of output formats and formatting services can be configured in a configuration file in a modularized manner for each project, and a plurality of output formats and formatting services can be configured in a configuration file in a global manner for a plurality of projects.
In operation S220, a target formatting service configured for the log address information, the format conversion result of which is an output format, is determined according to the log address information and the output format.
According to embodiments of the present disclosure, formatting services may also be configured in a configuration file, depending on the output format configured in the configuration file. The formatting service may be characterized as one or more pieces of program code, or execution paths thereof, each piece of program code being operable to effect conversion of an initial format of a log file into a configured output format.
According to embodiments of the present disclosure, log address information and formatting services may be configured modularly. For example, a formatting service that converts a log file into a JSON file may be configured for a first log address information, a formatting service that converts a log file into a regulatable format file may be configured for a second log address information, and so on. The formatting service may also exist in the configuration file as global configuration information. For example, the formatting service may be configured independently of all log address information, and may include configuring a formatting service for converting a log file into at least one of a JSON format file and a regulatable format file in a global scope, serving as a formatting service corresponding to all log address information.
According to an embodiment of the present disclosure, in a case where a corresponding log file is obtained according to log address information configured in a configuration file, in a case where the log address information, an output format, and a formatting service configured corresponding to a category of the output format are configured in a modularized manner, an output format required for the log file may be first determined according to the output format configured in the modularized manner, and then, a target formatting service may be determined from among the formatting services configured in the modularized manner according to the output format required for the log file. In the case that the log address information and the output format are configured in a modularized manner, and the formatting service is configured in a global manner, the output format required by the log file may be determined according to the output format configured in a modularized manner, and then the target formatting service may be determined from the formatting service configured in a global manner in combination with the required output format.
It should be noted that, the manner of determining the target formatting service may not be limited to the above, and may have a corresponding determination manner according to differences in log address information, output format, and configuration manners of the formatting service, such as differences in modular configuration or global configuration, so long as an appropriate formatting service can be selected.
In operation S230, the log file is scheduled to the log processor corresponding to the target formatting service using the first scheduling service.
According to embodiments of the present disclosure, the first scheduling service may be characterized as a code program or scripting tool that obtains a log file and sends the log file to the processing party, or may be characterized as a code program or scripting tool that sends the obtained log file to the processing party. The log processor may be a software class processor and may include, for example, the target formatting service itself. The log processor may also be a hardware tool, for example, a hardware circuit board that may include an FPGA (field programmable gate array) with embedded target formatting service functions and other writeable programs.
In operation S240, the log file is formatted with the log processor.
According to the embodiment of the disclosure, after receiving the log file, the log processor may execute a running process to implement formatting processing on the log file.
Through the embodiment of the disclosure, the method of configuring the log address information, outputting the format and the format service can be combined with the format service and the first scheduling service to realize the format processing of the log file, the log content in a fixed format can be formatted through the situation of the configuration file, the problems of inconvenient data acquisition, integration and mining analysis caused by the diversity of the log format are at least partially solved, the consistency of the log format is realized, the loss and discarding of useful data in the log caused by the omission problem are avoided, and convenience is brought to the later mining analysis.
The method shown in fig. 2 is further described below in connection with the specific examples.
In case that the log address information includes first path information characterizing a storage location of the offline log, according to an embodiment of the present disclosure, the above-described operation S210 may include: and running the binary execution file to obtain an offline log file related to the log address information. The binary execution file comprises log address information.
According to embodiments of the present disclosure, the entire process of log formatting processing may be implemented in the form of a binary execution file. The binary execution file may be characterized in the form of a gadget that may be used to process offline log files. The binary execution file may store a storage path of the offline log file, that is, first path information. The first path information can be accessed through running the binary execution file, and the log file stored in the path can be obtained, so that the offline log file can be obtained.
In case that the log address information includes second path information characterizing a generation location of the real-time log according to an embodiment of the present disclosure, the above-described operation S210 may further include: and responding to the fact that the first daemon detects that the content of the log file corresponding to the second path information changes, and acquiring the changed log file to obtain a first real-time log file.
The entire process of log formatting processing may also be implemented in the form of daemons according to embodiments of the present disclosure. The first daemon may be characterized as a resident, running service deployed in a computer system that is operable to process log files generated in real-time. The first daemon process can detect the information change under the path corresponding to the second path information in real time, and can acquire the changed information in real time under the condition that the information under the path is changed, so that the first real-time log file can be obtained.
In case that the log address information includes port information characterizing a network transmission channel of the real-time log according to an embodiment of the present disclosure, the above-described operation S210 may further include: and responding to the detection of the port corresponding to the port information based on the second daemon to receive the new log information, and acquiring the new log information to obtain a second real-time log file.
According to embodiments of the present disclosure, the second daemon and the first daemon may be the same daemon. For example, the daemon may detect in real time the change of information under the path corresponding to the second path information and the change of information transmitted by the port corresponding to the port information. The second daemon and the first daemon may also be two daemons that are independent of each other. For example, the first daemon may detect, in real time, information change under the path corresponding to the second path information, and the second daemon may detect, in real time, information change of port transmission corresponding to the port information.
According to embodiments of the present disclosure, a second daemon may be used to process log files received over a network. The second daemon process can acquire the changed information in real time under the condition that the change of the information transmitted by the port corresponding to the port information is detected, and then a second real-time log file can be obtained.
According to an embodiment of the present disclosure, an execution manner may be further configured in the configuration file, and configuration contents for the execution manner may include at least one of a binary execution file and a daemon. For example, the execution mode of the binary execution file may be configured modularly for the log address information characterizing the offline log file, and the execution mode of the daemon may be configured modularly for the log address information characterizing the real-time log file. By configuring the execution mode, the execution carrier of each log formatting process can be determined.
It should be noted that, the binary execution file and daemon can be executed in parallel and run independently and without interference as two execution modes of log formatting. Under the condition that the logs corresponding to the log address information configured in the configuration file are all offline log files, the execution mode of the binary execution file can be configured in the configuration file in a global configuration mode. Under the condition that the logs corresponding to the log address information configured in the configuration file are all real-time log files, the execution mode of the daemon process can be configured in the configuration file in a global configuration mode.
Through the embodiment of the invention, the contents of the offline log file and the real-time log file transmitted on line can be processed in a running way through a configurable way in combination with the service deployment and the form of the gadget, so that the formatting process is realized, the loss and the discarding of data are avoided, and the convenience is brought to the later mining analysis.
According to an embodiment of the present disclosure, the above operation S220 may include: acquiring a plurality of formatting services configured in a configuration file and at least one output format configured for log address information, wherein the plurality of formatting services are configured in a serialization manner, and each formatting service is used for converting an initial format into one of the at least one output format; and determining a formatting service for converting the target initial format into any one of the at least one output format from the plurality of formatting services as a target formatting service according to the target initial format and the at least one output format of the log file.
According to embodiments of the present disclosure, at least one formatting service may be configured corresponding to each output format. The initial format may include at least one of a format of a log file, other formats different from the output format, and the like. The multiple formatting services configured in a serialization manner can convert files in multiple initial formats into files corresponding to output formats, and the serialization configuration manner can facilitate the selection of the target formatting service by the formatting process.
According to the embodiment of the disclosure, in the case of obtaining a corresponding log file according to log address information configured in a configuration file, an output format to be satisfied by the log file may be determined in combination with an output format corresponding to the log address information in the configuration file in a modularized configuration or a global configuration. Further in connection with the target initial format of the log file, a target formatting service may be determined that is capable of converting the target initial format to an output format that the log file needs to satisfy.
According to the embodiment of the disclosure, the configuration file may be further configured with log level information of log files to be filtered.
According to an embodiment of the present disclosure, the log level information of the log file to be filtered may include at least one of the following, for example: debug (debug information), info (output information), warning (warning information), error (error information), etc., and may not be limited thereto.
According to embodiments of the present disclosure, log address information and log level information of log files to be filtered out may be configured modularly. For example, debug, info may be configured for the first log address information, warn, error, etc. may be configured for the second log address information. The log level information of the log file to be filtered can also exist in the configuration file as global configuration information. For example, the log level information of the log file to be filtered may be configured as debug, info, warn, error independent of all log address information, and be used as the log level information of the log file to be filtered corresponding to all log address information.
By the embodiment of the disclosure, the log selection, namely processing, can be realized in a configurable and mode, which is favorable for extracting more useful log files, simplifies the processing process and obtains more useful log information.
According to an embodiment of the present disclosure, the configuration file may further configure output flow information, and the log formatting method may further include: obtaining a formatted file obtained after formatting the log file; acquiring at least one output stream information configured for log address information in a configuration file; and distributing the formatted file to at least one output stream corresponding to the at least one output stream information by using a second scheduling service.
According to embodiments of the present disclosure, output stream information may be used to define the output manner of the formatted file. The configuration content of the output stream information may include, for example, at least one of a floor file, a docking kafka (a distributed publish/subscribe mode-based message queue), and other secondary development possible ways, and may not be limited thereto. For example, in the case where the output stream information is configured as a floor file, the formatted file may be output in the manner of a floor file. In the case where the output stream information is configured to dock kafka, the formatted file may be output to kafka and the subsequent processing is performed based on kafka.
According to embodiments of the present disclosure, log address information and output stream information may be configured modularly. For example, a floor file may be configured as an output stream for the first log address information, a docking kafka may be configured as an output stream for the second log address information, and so on. The output stream information may also be present in the configuration file as global configuration information. For example, the output stream information may be configured to interface kafka independently of all the log address information, serving as an output manner of the formatted file resulting from the log file formatting process corresponding to all the log address information.
According to embodiments of the present disclosure, the second scheduling service may be characterized as a code program or scripting tool that obtains a formatted file and transmits the formatted file to the output stream, or may be characterized as a code program or scripting tool that transmits the obtained formatted file to the output stream.
According to the embodiment of the disclosure, after the log file is formatted based on the target formatting service to obtain the formatted file, the output stream to be transmitted to the formatted file may be determined first according to the output stream information configured for the log address information corresponding to the log file in the configuration file. The formatted file may then be distributed to the output stream using a second scheduling service.
According to an embodiment of the present disclosure, after distributing the formatted file to the output stream to be scheduled, the log formatting method may further include: and outputting the formatted file in an output mode corresponding to at least one output stream by utilizing an output service.
According to embodiments of the present disclosure, the output service may be characterized as a code program or scripting tool that obtains a formatted file and outputs the formatted file in the form of an output stream, or may be characterized as a code program or scripting tool that outputs the obtained formatted file in the form of an output stream.
According to an embodiment of the present disclosure, after the formatted file is distributed to the corresponding output stream using the second scheduling service, the formatted file may be output to the output stream using the output service, such as may be output as a floor file or in the input kafka.
Through the above embodiment of the present disclosure, in combination with the second scheduling service and the output service, the formatted file may be automatically output to a plurality of output streams, such as a file stream, a network stream, etc., based on the output stream information configured in the configuration file in advance, which is favorable for saving the formatted file in real time, facilitating subsequent data mining and analysis work, and reducing workload of research personnel.
According to an embodiment of the present disclosure, before the scheduling service for scheduling the log file and for distributing the formatted file, the formatting service for formatting the log file, and the output service for outputting the formatted file are invoked, an initialization process may be further included. The initialization process may include: and initializing the scheduling service according to the log address information and the output stream information configured in the configuration file. And initializing the formatting service according to the output format configured in the configuration file. And initializing the output service according to the output stream information configured in the configuration file.
According to the embodiment of the disclosure, according to the actual project requirement, the information of log address information, output stream information, output format and the like which are adapted to the project can be firstly configured in the configuration file. Then, the configuration file can be analyzed, and the configuration information in the configuration file can be read. After that, the above-mentioned initialization process can be performed on the relevant parameters of the scheduling service, the formatting service and the output service according to the configuration information in the configuration file, so that the above-mentioned log formatting method can be operated according to the information configured in the configuration file to complete the log formatting process for the corresponding item in the case that the log formatting process is required for the item log.
According to an embodiment of the present disclosure, the execution mode configured in the configuration file, such as the execution mode of a binary execution file, a resident process, etc., may have a corresponding command line configuration. In the initializing process, the method may further include: the command line parameters are parsed to determine whether the log formatting program to be run is a resident process type or is executed in the form of a gadget (i.e., binary execution file), so that when the formatting program is started, the log formatting process is executed in a corresponding execution mode.
According to an embodiment of the present disclosure, in the initializing process, the method may further include: the log formatting identification output record is set. Through the step, failure information can be output under the condition that the log formatting fails, and operation and maintenance processing and the like can be conveniently carried out by research personnel.
It should be noted that, in the case of reloading new configuration information in the configuration file, the log formatting program may be reloaded in an initialized manner, so as to implement a configurable and diversified log formatting processing method.
Through the embodiment of the disclosure, corresponding log formatting related information can be configured for various projects in a configurable manner based on the configuration file, and a method for supporting the formatting processing of the log files of various projects can be realized in combination with the initialization process, so that the workload of research personnel on log processing is reduced, the loss of useful information in the log can be reduced in the formatting process, and the subsequent mining analysis work is facilitated.
Fig. 3 schematically illustrates a code design architecture diagram for implementing a log formatting method according to an embodiment of the present disclosure.
As shown in fig. 3, the log formatting method can be divided into three functions, including: initialization, log processing, reloading and other functions.
According to an embodiment of the present disclosure, the initialization process may include: by parsing the command line parameters, it is determined whether the log formatter is of a resident process type or is executing in the form of a gadget. By parsing the configuration file, a scheduling service (Dispatcher), a formatting service (formatters) in which formatters can be initialized according to a plurality of format tags, and an output service (outputter) are initialized. Setting log formatting failure output records.
In accordance with embodiments of the present disclosure, a log core function may be used to implement a log process. The log processing is a core functional implementation of the log formatter and may generally include initialized Dispatcher, formaters and outputter. The Dispatcher can be used for dispatching the log files to different log processor formatters according to the log sources and distributing the formatted files obtained by processing to different log exporters according to the configuration of the output stream information of the log. Formatters can be used for serializing formatting requirements of format labels in the configuration file, and a plurality of formatters can be set according to configuration information of the format labels. The Formater can process the received log file and perform formatting operation on the log file. Output may output formatted files to multiple output streams, for example to a file stream, such as a floor file, and to a network stream, such as an access kafka, etc., as well as other secondary development.
It should be noted that, the above initialization process and the processing process of various services such as Dispatcher, formaters, outputer have been described in the foregoing embodiments, and are not repeated here.
According to an embodiment of the present disclosure, the reloading process may include: at least one of reloading new configuration information in the configuration file, and reloading the log formatting program by means of initialization, etc., may not be limited thereto.
Through the embodiment of the disclosure, a complete set of log data formatting processing scheme can be constructed, and the log files are processed through the configurable configuration files in a running way by combining with service deployment or a small tool mode, so that the loss and discarding of useful data in the log are reduced, the workload of research personnel on log processing is reduced, and convenience is brought to later mining analysis.
Based on the log formatting method, the disclosure also provides a log formatting device. The device will be described in detail below in connection with fig. 4.
Fig. 4 schematically shows a block diagram of a log formatting device according to an embodiment of the present disclosure.
As shown in fig. 4, the log formatting device 400 of this embodiment includes a first acquisition module 410, a determination module 420, a scheduling module 430, and a processing module 440.
The first obtaining module 410 is configured to obtain a log file related to the log address information according to the log address information configured in the configuration file, where an output format of the log file is further configured in the configuration file. In an embodiment, the first obtaining module 410 may be configured to perform the operation S210 described above, which is not described herein.
A determining module 420, configured to determine, according to the log address information and the output format, a format conversion result configured for the log address information as a target formatting service in the output format. In an embodiment, the determining module 420 may be configured to perform the operation S220 described above, which is not described herein.
And the scheduling module 430 is configured to schedule the log file to a log processor corresponding to the target formatting service by using a first scheduling service. In an embodiment, the scheduling module 430 may be configured to perform the operation S230 described above, which is not described herein.
And the processing module 440 is used for formatting the log file by using the log processor. In an embodiment, the processing module 440 may be configured to perform the operation S240 described above, which is not described herein.
According to an embodiment of the present disclosure, the log address information includes first path information characterizing a storage location of an offline log. The first acquisition module includes a first acquisition unit.
The first acquisition unit is used for running a binary execution file and acquiring an offline log file related to the log address information, wherein the binary execution file comprises the log address information.
According to an embodiment of the disclosure, the log address information includes second path information characterizing a generation location of the real-time log, and the first acquisition module includes a second acquisition unit.
And the second acquisition unit is used for responding to the fact that the content of the log file corresponding to the second path information is detected to change based on the first daemon, acquiring the changed log file and obtaining the first real-time log file.
According to an embodiment of the disclosure, the log address information includes port information characterizing a network transmission channel of the real-time log, and the first acquisition module includes a third acquisition unit.
And the third acquisition unit is used for acquiring the new log information to obtain a second real-time log file in response to the fact that the second daemon detects that the port corresponding to the port information receives the new log information.
According to an embodiment of the disclosure, the determining module includes a fourth obtaining unit and a determining unit.
A fourth obtaining unit, configured to obtain a plurality of formatting services configured in the configuration file and at least one output format configured for the log address information, where the plurality of formatting services are configured in a sequence, and each formatting service is configured to implement conversion of an initial format into one of the at least one output format.
And a determining unit configured to determine, as the target formatting service, a formatting service for converting the target initial format into any one of the at least one output format from among the plurality of formatting services according to the target initial format and the at least one output format of the log file.
According to an embodiment of the disclosure, the log formatting device further includes a second acquisition module, a third acquisition module, and a distribution module.
And the second acquisition module is used for acquiring the formatted file obtained after the log file is formatted.
And the third acquisition module is used for acquiring at least one output stream information configured for the log address information in the configuration file.
And the distribution module is used for distributing the formatted file to at least one output stream corresponding to the at least one output stream information by using a second scheduling service.
According to an embodiment of the present disclosure, the log formatting device further includes an output module.
And the output module is used for outputting the formatted file in an output mode corresponding to the at least one output stream by utilizing an output service.
According to an embodiment of the disclosure, the log formatting device further includes a first initialization module, a second initialization module, and a third initialization module.
And the first initialization module is used for initializing the formatting service for formatting the log file according to the output format configured in the configuration file.
And the second initialization module is used for initializing a scheduling service for scheduling the log file and distributing a formatted file according to the log address information and the output stream information configured in the configuration file, wherein the formatted file comprises a file obtained after the log file is formatted.
And the third initialization module is used for initializing output services for outputting the formatted file according to the output stream information configured in the configuration file.
According to the embodiment of the disclosure, the configuration file is further configured with log level information of log files to be filtered.
According to embodiments of the present disclosure, any of the first acquisition module 410, the determination module 420, the scheduling module 430, and the processing module 440 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first acquisition module 410, the determination module 420, the scheduling module 430, and the processing module 440 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three. Alternatively, at least one of the first acquisition module 410, the determination module 420, the scheduling module 430, and the processing module 440 may be at least partially implemented as a computer program module, which when executed, may perform the corresponding functions.
Fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a log formatting method according to an embodiment of the present disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 501 may also include on-board memory for caching purposes. The processor 501 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are stored. The processor 501, ROM 502, and RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the program may be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 500 may also include an input/output (I/O) interface 505, the input/output (I/O) interface 505 also being connected to the bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium described above carries one or more programs that, when executed, implement log formatting methods according to embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the item recommendation method provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or installed from a removable medium 511 via the communication portion 509. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (12)

1. A log formatting method, comprising:
according to the log address information configured in the configuration file, acquiring a log file related to the log address information, wherein a plurality of formatting services and at least one output format configured for the log address information are also configured in the configuration file, the plurality of formatting services are configured in a serialization manner, and each formatting service is used for converting an initial format into one of the at least one output format;
Initializing the formatting service according to the output format configured in the configuration file;
initializing a first scheduling service for scheduling the log file according to the log address information;
according to the log address information and the output format, determining that a format conversion result configured for the log address information is a target formatting service of the output format includes: determining a formatting service for converting the target initial format into any one of the at least one output format from the plurality of formatting services as the target formatting service according to the target initial format and the at least one output format of the log file;
scheduling the log file to a log processor corresponding to the target formatting service by using the first scheduling service; and
and formatting the log file by using the log processor.
2. The method of claim 1, wherein the log address information includes first path information characterizing a storage location of an offline log, and the obtaining the log file associated with the log address information according to the log address information configured in the configuration file includes:
And running a binary execution file to obtain an offline log file related to the log address information, wherein the binary execution file comprises the log address information.
3. The method of claim 1, wherein the log address information includes second path information characterizing a generation location of a real-time log, and the acquiring the log file related to the log address information according to the log address information configured in the configuration file includes:
and responding to the fact that the first daemon detects that the content of the log file corresponding to the second path information changes, obtaining the changed log file, and obtaining a first real-time log file.
4. A method according to any of claims 1-3, wherein the log address information comprises port information characterizing a network transmission channel of a real-time log, and the obtaining a log file related to the log address information according to the log address information configured in the configuration file comprises:
and responding to the detection of the new log information received by the port corresponding to the port information based on the second daemon, and obtaining the new log information to obtain a second real-time log file.
5. The method of claim 1, further comprising:
obtaining a formatted file obtained after formatting the log file;
acquiring at least one output stream information configured for the log address information in the configuration file; and
and distributing the formatted file to at least one output stream corresponding to the at least one output stream information by using a second scheduling service.
6. The method of claim 5, further comprising:
and outputting the formatted file in an output mode corresponding to the at least one output stream by utilizing an output service.
7. A method according to any one of claims 1-3, further comprising:
initializing a second scheduling service for distributing a formatted file according to the output stream information configured in the configuration file, wherein the formatted file comprises a file obtained after the log file is formatted; and
and initializing output services for outputting the formatted file according to the output stream information configured in the configuration file.
8. A method according to any of claims 1-3, wherein the configuration file is further configured with log level information of log files that need to be filtered out.
9. A log formatting device, comprising:
the first acquisition module is used for acquiring a log file related to the log address information according to the log address information configured in the configuration file, wherein a plurality of formatting services and at least one output format configured for the log address information are also configured in the configuration file, the plurality of formatting services are configured in a serialization manner, and each formatting service is used for converting an initial format into one of the at least one output format;
the device is further used for initializing the formatted service according to the output format configured in the configuration file, and initializing a first scheduling service for scheduling the log file according to the log address information;
a determining module, configured to determine, according to the log address information and the output format, a format conversion result configured for the log address information as a target formatting service in the output format, where the determining module includes: a determining unit configured to determine, as a target formatting service, a formatting service for converting the target initial format into any one of the at least one output format from among the plurality of formatting services, according to the target initial format and the at least one output format of the log file;
The scheduling module is used for scheduling the log file to a log processor corresponding to the target formatting service by utilizing the first scheduling service; and
and the processing module is used for formatting the log file by using the log processor.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
CN202211196520.5A 2022-09-29 2022-09-29 Log formatting method, device, electronic equipment and storage medium Active CN115408344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211196520.5A CN115408344B (en) 2022-09-29 2022-09-29 Log formatting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211196520.5A CN115408344B (en) 2022-09-29 2022-09-29 Log formatting method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115408344A CN115408344A (en) 2022-11-29
CN115408344B true CN115408344B (en) 2023-12-08

Family

ID=84168317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211196520.5A Active CN115408344B (en) 2022-09-29 2022-09-29 Log formatting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115408344B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764945A (en) * 2019-10-23 2020-02-07 北京博睿宏远数据科技股份有限公司 Crash log processing method, device, equipment and storage medium
CN110908967A (en) * 2019-11-13 2020-03-24 北京云途腾科技有限责任公司 Method, device, equipment and computer readable medium for storing log
CN112148674A (en) * 2020-10-12 2020-12-29 平安科技(深圳)有限公司 Log data processing method and device, computer equipment and storage medium
CN112636957A (en) * 2020-12-11 2021-04-09 微医云(杭州)控股有限公司 Early warning method and device based on log, server and storage medium
CN114356718A (en) * 2022-01-10 2022-04-15 网易(杭州)网络有限公司 Log processing method, medium, system and computing device
CN114840379A (en) * 2022-04-19 2022-08-02 中信百信银行股份有限公司 Log generation method, device, server and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9069608B2 (en) * 2013-03-06 2015-06-30 Vmware, Inc. Method and system for providing a roaming remote desktop

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764945A (en) * 2019-10-23 2020-02-07 北京博睿宏远数据科技股份有限公司 Crash log processing method, device, equipment and storage medium
CN110908967A (en) * 2019-11-13 2020-03-24 北京云途腾科技有限责任公司 Method, device, equipment and computer readable medium for storing log
CN112148674A (en) * 2020-10-12 2020-12-29 平安科技(深圳)有限公司 Log data processing method and device, computer equipment and storage medium
CN112636957A (en) * 2020-12-11 2021-04-09 微医云(杭州)控股有限公司 Early warning method and device based on log, server and storage medium
CN114356718A (en) * 2022-01-10 2022-04-15 网易(杭州)网络有限公司 Log processing method, medium, system and computing device
CN114840379A (en) * 2022-04-19 2022-08-02 中信百信银行股份有限公司 Log generation method, device, server and storage medium

Also Published As

Publication number Publication date
CN115408344A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
US7992132B2 (en) Server side application integration framework
US11294740B2 (en) Event to serverless function workflow instance mapping mechanism
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
CN115408344B (en) Log formatting method, device, electronic equipment and storage medium
CN112016285B (en) Logistics information processing method and processing system
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN110764769A (en) Method and device for processing user request
CN114490272A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113419887A (en) Method and device for processing abnormal online transaction of host
CN113032237A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113672671A (en) Method and device for realizing data processing
CN115525362B (en) Parameter changing method and device based on kernel parameter adjusting platform of operating system
CN114363172B (en) Decoupling management method, device, equipment and medium for container group
US9436523B1 (en) Holistic non-invasive evaluation of an asynchronous distributed software process
CN113067885B (en) Application system, request processing method, electronic device and storage medium
US8943517B2 (en) Generalized application message generation service
CN114202046B (en) Method, device, equipment and medium for generating two-dimension code based on SAP system
CN117667573A (en) Cluster operation and maintenance method and device based on AI language model
CN117389689A (en) Container operation and maintenance method, device, equipment, medium and program product
CN115729567A (en) Automatic deployment method and device of operation and maintenance product, electronic equipment and storage medium
CN114911858A (en) Cloud platform interface generation method and device
CN113778350A (en) Log printing method and device
CN117519722A (en) Code generation method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 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