CN115905152A - System operation and maintenance operation log processing method, device, equipment and storage medium - Google Patents

System operation and maintenance operation log processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115905152A
CN115905152A CN202211520065.XA CN202211520065A CN115905152A CN 115905152 A CN115905152 A CN 115905152A CN 202211520065 A CN202211520065 A CN 202211520065A CN 115905152 A CN115905152 A CN 115905152A
Authority
CN
China
Prior art keywords
log
maintenance
processing
operation log
maintenance operation
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.)
Pending
Application number
CN202211520065.XA
Other languages
Chinese (zh)
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.)
Shenzhen Sinosun Technology Co ltd
Original Assignee
Shenzhen Sinosun Technology 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 Shenzhen Sinosun Technology Co ltd filed Critical Shenzhen Sinosun Technology Co ltd
Priority to CN202211520065.XA priority Critical patent/CN115905152A/en
Publication of CN115905152A publication Critical patent/CN115905152A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for processing a system operation and maintenance operation log, terminal equipment and a computer readable storage medium, wherein the method is applied to an operation and maintenance operation log processing system which comprises a gateway, a log collector, a log filter and a log memory; the method comprises the steps of obtaining operation logs from a gateway through a log collector; filtering each operation log through a log filter to obtain each first operation and maintenance operation log in each operation log; converting and matching each first operation and maintenance operation log through a log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log; and storing each second operation and maintenance operation log through a log memory, and providing a log query interface for a user to query each second operation and maintenance operation log. The invention realizes that the operation log of the system operation and maintenance is directly obtained from the gateway, thereby simplifying the log collection step and reducing the calculation amount of the log.

Description

System operation and maintenance operation log processing method, device, equipment and storage medium
Technical Field
The invention belongs to the technical field of log processing, and particularly relates to a method and a device for processing a system operation and maintenance operation log, terminal equipment and a computer readable storage medium.
Background
With the rapid development of science and technology, log data has become a valuable information treasure house, and log processing technology has also been widely applied in various industries.
At present, an operation log of a system is mainly applied to record the operation of an operator or an operation and maintenance worker of the system on the system, such as adding a system configuration, modifying menu options in a page, and the like, and the log is different from a common service log, is not used for judging whether the system is abnormal, but is used for recording the use of the system for subsequent examination or operation backtracking. However, the conventional method for collecting the operation log requires the collection of the operation log from the server, and has problems of complicated operation steps and large log calculation amount.
Disclosure of Invention
The invention mainly aims to provide a method and a device for processing a system operation and maintenance operation log, a terminal device and a computer readable storage medium. The method aims to realize that the operation log of the system operation and maintenance is directly obtained from the gateway, thereby simplifying the log collection step and reducing the calculation amount of the log.
In order to achieve the above object, the present invention provides a method for processing a system operation and maintenance operation log, where the method for processing the system operation and maintenance operation log is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system includes a gateway, a log collector, a log filter, and a log memory;
the processing method of the system operation and maintenance operation log comprises the following steps:
obtaining each operation log from the gateway through the log collector;
filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
converting and matching each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
and storing each second operation and maintenance operation log through the log storage, and providing a log query interface for a user to query each second operation and maintenance operation log.
Optionally, before the step of obtaining the operation logs from the gateway through the log collector, the method further includes:
reading a URL (uni form resource locator) corresponding to an access request passing through a gateway through the gateway, and judging whether the URL is an operation resource or not;
and when the URL is an operation resource, recording an operation log corresponding to the URL through the gateway.
Optionally, the step of recording, by the gateway, the operation log corresponding to the URL includes:
determining operator information, access time and an access address of the URL corresponding to the URL through the gateway;
and determining an operation log corresponding to the URL through the gateway according to the operator information, the access time and the access address, and recording the operation log.
Optionally, the step of filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log includes:
responding to a log filtering configuration request through the log filter to generate a log filtering rule;
and filtering each operation log through the log filter based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
Optionally, the step of performing conversion matching on each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log includes:
converting and matching the URL in the first operation and maintenance operation log through the log filter based on a URL matching rule to obtain a target URL which is in a tree structure and can be read by a user;
and determining the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log through the log filter.
Optionally, the step of providing a log query interface for a user to query each second operation and maintenance operation log includes:
and responding to a query request received by a log query interface through the log memory so as to determine a target operation and maintenance operation log in each stored second operation and maintenance operation log according to the query request.
Optionally, the operation and maintenance operation log processing system further includes a log display, and after the step of determining a target operation and maintenance operation log in each of the stored second operation and maintenance operation logs according to the query request, the method further includes:
and reading the target operation and maintenance operation log from the log storage through the log display, and displaying the target operation and maintenance log on a log query interface.
In addition, in order to achieve the above object, the present invention further provides a processing apparatus for a system operation and maintenance operation log, where the processing method for the system operation and maintenance operation log is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system includes a gateway, a log collector, a log filter, and a log memory;
the processing device of the system operation and maintenance operation log comprises:
the log acquisition module is used for acquiring each operation log from the gateway through the log collector;
the log filtering module is used for filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
the conversion matching module is used for performing conversion matching on each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
and the storage module is used for storing each second operation and maintenance operation log through the log storage and providing a log query interface for a user to query each second operation and maintenance operation log.
In addition, to achieve the above object, the present invention also provides a terminal device, including: the system operation and maintenance operation log processing method comprises a memory, a processor and a processing program of the system operation and maintenance operation log stored on the memory and capable of running on the processor, wherein when the processing program of the system operation and maintenance operation log of the terminal equipment is executed by the processor, the steps of the system operation and maintenance operation log processing method are realized.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, where a processing program of the system operation and maintenance operation log is stored, and when the processing program of the system operation and maintenance operation log is executed by a processor, the steps of the processing method of the system operation and maintenance operation log as described above are implemented.
The embodiment of the invention provides a method, a device, a terminal device and a computer readable storage medium for processing a system operation and maintenance operation log, wherein the method is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system comprises a gateway, a log collector, a log filter and a log memory; the method comprises the steps of obtaining operation logs from a gateway through a log collector; filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log; converting and matching each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log; and storing each second operation and maintenance operation log through the log storage, and providing a log query interface for a user to query each second operation and maintenance operation log.
The method and the device for processing the operation logs acquire the operation logs from a gateway through a log collector of an operation and maintenance operation log processing system, filter the operation logs through a log filter of the operation and maintenance operation log processing system to obtain first operation and maintenance operation logs in the operation logs, perform conversion matching processing on the first operation and maintenance operation logs to obtain second operation and maintenance operation logs corresponding to the first operation and maintenance operation logs respectively, and finally store the second operation and maintenance operation logs through a log memory of the operation and maintenance operation log processing system and provide a log query interface for a user to query and retrieve the second operation and maintenance operation logs. Therefore, the invention realizes that the operation log of the system operation and maintenance is directly obtained from the gateway, thereby simplifying the log collection step and reducing the calculation amount of the log.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for processing an operation log of a system according to the present invention;
fig. 3 is a schematic view illustrating an operation log processing flow according to an embodiment of the method for processing the operation and maintenance operation log of the system of the present invention;
fig. 4 is a functional block diagram of an embodiment of a processing apparatus for system operation and maintenance operation logs according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
The terminal equipment of the embodiment of the invention can be terminal equipment which is applied to the technical field of log processing and is integrated with an operation and maintenance operation log processing system. In addition, the operation and maintenance operation log processing system comprises a gateway, a log collector, a log filter and a log storage. Specifically, the terminal device may be a smartphone, a PC (personal Computer), a tablet Computer, a portable Computer, or the like.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a display screen (DiSp l ay), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a non-vol at i e memory, such as a magnetic disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a processing program of a system operation and maintenance operation log.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and communicating data with the background server; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; the processor 1001 may be configured to call a processing program of the system operation and maintenance operation log stored in the memory 1005, and perform the following operations:
obtaining each operation log from the gateway through the log collector;
filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
converting and matching each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
and storing each second operation and maintenance operation log through the log storage, and providing a log query interface for a user to query each second operation and maintenance operation log.
Optionally, the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation logs stored in the memory 1005, and before the step of obtaining each operation log from the gateway through the log collector, further perform the following operations:
reading a URL corresponding to an access request passing through a gateway through the gateway, and judging whether the URL is an operation resource;
and when the URL is an operation resource, recording an operation log corresponding to the URL through the gateway.
Optionally, the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation log stored in the memory 1005, and perform the following operations:
determining operator information, access time and an access address of the URL corresponding to the URL through the gateway;
and determining an operation log corresponding to the URL through the gateway according to the operator information, the access time and the access address, and recording the operation log.
Optionally, the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation log stored in the memory 1005, and perform the following operations:
responding to a log filtering configuration request through the log filter to generate a log filtering rule;
and filtering each operation log through the log filter based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
Optionally, the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation log stored in the memory 1005, and perform the following operations:
converting and matching the URL in the first operation and maintenance operation log through the log filter based on a URL matching rule to obtain a target URL which is in a tree structure and can be read by a user;
and determining the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log through the log filter.
Optionally, the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation log stored in the memory 1005, and perform the following operations:
and responding to a query request received by a log query interface through the log memory so as to determine a target operation and maintenance operation log in each stored second operation and maintenance operation log according to the query request.
Optionally, the operation and maintenance operation log processing system further includes a log display, and the processor 1001 may be further configured to call a processing program of the system operation and maintenance operation logs stored in the memory 1005, and after the step of determining a target operation and maintenance operation log in each of the stored second operation and maintenance operation logs according to the query request, further perform the following operations:
and reading the target operation and maintenance operation log from the log storage through the log display, and displaying the target operation and maintenance log on a log query interface.
Based on the terminal device, embodiments of the processing method for the operation and maintenance operation log of the system are provided.
At present, the operation log of the system is mainly applied to record the operation of an operator or operation and maintenance personnel of the system on the system, such as adding a system configuration, modifying menu options in a page, and the like, and the log is distinguished from a common service log, and is not used for judging whether the system is abnormal or not, but is used for recording the use of the system for subsequent examination or operation backtracking. However, the conventional method for collecting the operation log requires collection of the operation log from the server, and has problems of complicated operation steps and large log calculation amount.
Aiming at the phenomenon, the invention provides a method for processing a system operation and maintenance operation log. The processing method of the operation and maintenance operation log of the system is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system comprises a gateway, a log collector, a log filter and a log memory.
The method for processing the operation logs of the system obtains the operation logs from the gateway through a log collector of the operation log processing system, then filters the operation logs through a log filter of the operation log processing system to obtain first operation logs in the operation logs, performs conversion matching processing on the first operation logs to obtain second operation logs corresponding to the first operation logs, and finally stores the second operation logs through a log memory of the operation log processing system and provides a log query interface for a user to query and retrieve the second operation logs. Therefore, the invention realizes that the operation log of the system operation and maintenance is directly obtained from the gateway, thereby simplifying the log collection step and reducing the calculation amount of the log.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for processing a system operation and maintenance operation log according to a first embodiment of the present invention. It should be noted that although a logical order is shown in the flowchart, in some cases, the processing method of the operation and maintenance oplog of the system of the present invention may perform the steps shown or described in a different order from the order shown.
For ease of description, the operation and maintenance oplog processing system will be referred to as the processing system.
In a first embodiment of the method for processing the operation and maintenance operation log of the system of the present invention, the method for processing the operation and maintenance operation log of the system of the present invention includes:
step S10: obtaining each operation log from the gateway through the log collector;
in this embodiment, the processing system obtains each operation log from the gateway through the log collector.
Illustratively, the processing system obtains the pre-recorded operation log from a log file of the gateway through a log collector.
Step S20: filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
in this embodiment, the processing system filters each operation log acquired by the log collector through the log filter to obtain each first operation and maintenance operation log in each operation log.
Illustratively, the processing system sends each acquired operation log to a log filter through a log collector, and the log filter performs filtering processing on each received operation log to determine a plurality of operation and maintenance operation logs in each operation log, that is, a first operation and maintenance operation log.
Step S30, converting and matching each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
in this embodiment, the processing system performs conversion matching processing on the first operation and maintenance operation logs through the log filter to obtain second operation and maintenance operation logs corresponding to the first operation and maintenance operation logs respectively.
Exemplarily, the processing system performs conversion matching processing on a first operation and maintenance operation log obtained by filtering a plurality of operation and maintenance logs through a log filter, and takes the first operation and maintenance operation log after the conversion processing as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log.
Step S40, storing each second operation and maintenance operation log through the log memory, and providing a log query interface for a user to query each second operation and maintenance operation log.
In this embodiment, the processing system stores each second operation and maintenance operation log through the log memory, and provides a log query interface for a user to perform a search query on each second operation and maintenance operation log.
Illustratively, the processing system sends each second operation and maintenance operation log to the log memory through the log filter, and the log memory stores each received second operation and maintenance operation log and provides a log query interface to receive a log query request from a user, so as to perform a search query on each second operation and maintenance operation log.
Further, in a possible embodiment of the method for processing the operation and maintenance operation logs of the system according to the present invention, in the step S40, "providing a log query interface for a user to query each of the second operation and maintenance operation logs" may include:
step S401, responding to a query request received by the log query interface through the log memory, to determine a target operation and maintenance operation log in each of the stored second operation and maintenance operation logs according to the query request.
In this embodiment, the processing system responds to the log query request received by the log query interface through the log memory, so as to determine, according to the log query request, an operation and maintenance operation log that meets the query condition of this time, that is, a target operation and maintenance operation log, in each second operation and maintenance operation log stored in the log memory.
For example, the processing system receives a log query request through a log query interface of the log memory, and it should be noted that the log query request may be query content of any information in the corresponding operation log, specifically, a user inputs a time period at a retrieval place, the log query interface receives the log query request including the time period, and then the log memory determines, according to the time period information included in the log query request, the operation and maintenance operation log in the time period in each second operation and maintenance operation log, that is, the target operation and maintenance operation log.
Further, in a possible embodiment, the operation log processing system further includes a log display, and the operation log processing method of the system according to the present invention, after step S401, may further include:
and step A, reading the target operation and maintenance operation log from the log storage through the log display, and displaying the target operation and maintenance log on a log query interface.
In this embodiment, the processing system reads the target operation and maintenance operation log from the log memory through the log display, and displays the target operation and maintenance operation log on the log query interface for the user to view.
Illustratively, the processing system reads the target operation and maintenance operation logs in the time period in the log query request queried by the user from the log storage through the log display, and then displays the target operation and maintenance operation logs in the time period on the log query interface for the operation and maintenance personnel or the clients to view.
In this embodiment, in the method for processing the operation and maintenance operation logs of the system of the present invention, the processing system obtains each operation log from the gateway through the log collector; the processing system filters each operation log obtained by the log collector through a log filter to obtain each first operation and maintenance operation log in each operation log; the processing system performs conversion matching processing on the first operation and maintenance operation logs through a log filter to obtain second operation and maintenance operation logs corresponding to the first operation and maintenance operation logs respectively; the processing system stores the second operation and maintenance operation logs through the log storage, and provides a log query interface for a user to retrieve and query the second operation and maintenance operation logs; the processing system responds to the log query request received by the log query interface through the log memory, and determines an operation and maintenance operation log which meets the query condition at this time, namely a target operation and maintenance operation log, in each second operation and maintenance operation log stored in the log memory according to the log query request; and the processing system reads the target operation and maintenance operation log from the log storage through the log display, and displays the target operation and maintenance log on a log query interface for a user to check.
Therefore, in the embodiment of the present invention, each operation log is obtained from the gateway through the log collector of the operation and maintenance operation log processing system, then each operation log is filtered through the log filter of the operation and maintenance operation log processing system, so as to obtain the first operation and maintenance operation logs in each operation log, and each first operation and maintenance operation log is subjected to conversion matching processing, so as to obtain the second operation and maintenance operation logs corresponding to each first operation and maintenance operation log, and finally, each second operation and maintenance operation log is stored through the log memory of the operation and maintenance operation log processing system, and a log query interface is provided for a user to query and retrieve each second operation and maintenance operation log. Therefore, the invention realizes that the operation log of the system operation and maintenance is directly obtained from the gateway, thereby simplifying the log collection step and reducing the calculation amount of the log.
Further, based on the above first embodiment of the method for processing the operation and maintenance operation log of the system of the present invention, a second embodiment of the method for processing the operation and maintenance operation log of the system of the present invention is provided.
In this embodiment, the dust removal control system further comprises a dock central control in which the ship loader is located, and the ship loader and the belt scale are respectively in communication connection with the dock central control;
before step S10, the method for processing the operation and maintenance operation log of the system of the present invention may further include:
step B, reading a URL corresponding to the access request passing through the gateway, and judging whether the URL is an operation resource;
and step C, when the URL is an operation resource, recording an operation log corresponding to the URL through the gateway.
In this embodiment, the processing system reads, through the gateway, a URL corresponding to an access request passing through the gateway, determines whether the URL is an operation resource, and records, through the gateway, an operation log corresponding to the URL when the URL is an operation resource.
Illustratively, an operation and maintenance person or an operator accesses the application system through the gateway, reads the URL through the gateway, determines whether the read URL belongs to the operated resource, and stores an operation log corresponding to the URL when the gateway determines that the URL belongs to the operated resource.
Further, in a possible embodiment, in step C, the step of "recording the operation log corresponding to the URL through the gateway" may include:
step C01, determining operator information, access time and an access address of the URL corresponding to the URL through the gateway;
and step C02, determining an operation log corresponding to the URL through the gateway according to the operator information, the access time and the access address, and recording the operation log.
In this embodiment, the processing system determines, through the gateway, the operator information, the access time, and the access address of the URL corresponding to the URL, determines, through the gateway, an operation log corresponding to the URL according to the operator information, the access time, and the access address of the URL, and records the operation log.
Illustratively, a user uses a client, such as a web access system background, which requests to first record, through a gateway, an ip (internet protocol) address of an operator, a name of the operator, and a user id of the operator, i.e., operator information, wherein, through a jwt (json web token), the user id of the operator is read out and an access time, an URL address of the access, is recorded in a log file, operation I on.
In this embodiment, the processing method of the operation and maintenance operation log of the system of the present invention reads, through the gateway, the URL corresponding to the access request passing through the gateway by the processing system, determines whether the URL is an operation resource, and records, through the gateway, the operation log corresponding to the URL when the URL is an operation resource; the processing system determines operator information, access time and an access address of the URL corresponding to the URL through the gateway, determines an operation log corresponding to the URL according to the operator information, the access time and the access address of the URL through the gateway, and records the operation log.
In this way, by judging all the URLs at the gateway, the URL belonging to the operation is determined, and the access address of the URL and the operator information and the access time of the access request acquired from the gateway are recorded at the gateway in the form of operation logs, so that a subsequent log collector can directly acquire the operation logs from the gateway.
Further, based on the first embodiment and/or the second embodiment of the method for processing the operation and maintenance operation log of the system of the present invention, a third embodiment of the method for processing the operation and maintenance operation log of the system of the present invention is provided.
In this embodiment, in the method for processing the operation and maintenance operation log of the system according to the present invention, the step S20 may include:
step S201, responding to a log filtering configuration request through the log filter, and generating a log filtering rule;
step S202, filtering each operation log through the log filter based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
In this embodiment, the processing system responds to the log filtering configuration request through the log filter to generate a log filtering rule, and filters each operation log collected by the log collector based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
Illustratively, the operation and maintenance personnel or the clients configure log filtering rules according to actual requirements, the log filter responds to all configuration requests to generate corresponding log filtering rules, and then the log filter filters out required operation log information according to the log filtering rules: t imesmamp (time), operator id (operator id), operator name (operator name), operator from (ip source), ur l (access address), and the specific program codes are as follows:
p l atform_operat ion_front_temp l ate.json:|-
{
"order":0,
"i ndex_patterns":[
"operat ion-*"
],
"a l iases":{
"operat ion":{}
},
"mappi ngs":{
"doc":{
"_source":{
"enab l ed":true
},
"propert i es":{
"vers ion":{
"type":"keyword"
},
"id":{
"type":"keyword"
},
"t imestamp":{
"type":"date",
"format":"str i ct_date_opt i ona l_t ime||yyyy-MM-dd HH:mm:ss.SSSZ||yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_mi l l i s"
},
"c l usterName":{
"type":"keyword"
},
"operator I d":{
"type":"text",
"f i e l ds":{
"keyword":{
"type":"keyword",
"i gnore_above":256
}
}
},
"operatorName":{
"type":"text",
"f i e l ds":{
"keyword":{
"type":"keyword",
"i gnore_above":256
}
}
},
"operatorFrom":{
"type":"keyword"
},
"ur i":{
"type":"text",
"f i e l ds":{
"keyword":{
"type":"keyword",
"i gnore_above":256
}
}
},
"type":{
"type":"text",
"f i e l ds":{
"keyword":{
"type":"keyword",
"i gnore_above":256
}
}
}
}
}
},
"sett i ngs":{
"refresh_i nterva l":"5s",
"number_of_shards":3,
"number_of_rep l i cas":1
}
}
further, in a possible embodiment, the step S30 may include:
step S301, converting and matching the URL in the first operation and maintenance operation log through the log filter based on a URL matching rule to obtain a target URL which is in a tree structure and can be read by a user;
step S302, determining, by the log filter, the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log.
In this embodiment, the processing system performs conversion matching on the URL in the first operation and maintenance operation log based on the URL matching rule through the log filter to obtain a target URL which is in a tree structure and is readable by the user, and then determines the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log.
Illustratively, the URLs in the first operation and maintenance operation logs filtered by the log filter are subjected to conversion matching, specifically, the URLs are translated into readable information for a user according to URL matching rules, then the information in the URLs is matched into a tree structure, and target URLs which are in the tree structure and readable for the user are obtained, that is, the URLs in each first operation and maintenance log are subjected to conversion matching, so that a target URL corresponding to each URL is obtained, and the operation and maintenance operation log containing the target URL is called as a second operation and maintenance operation log.
Wherein, the program code for realizing the conversion matching step is as follows:
operat i on_front_trans l ate.ym l:
"operation I onb I zuser/mps/updateApp I nfo": application management/application operation/editing application "
"operation I onb I zuser/mps/de l eteApp I nfo": application management/application operation/delete application "
Illustratively, as shown in fig. 3, a processing procedure of the operation and maintenance operation log of the system of the present invention includes that, firstly, an operation and maintenance person or the operation person accesses the application system through the gateway, the gateway reads the URL corresponding to the access request, when the URL is an operation resource, the access operation of the user is stored in the form of the operation log, then the log collector periodically obtains each operation log from the gateway, and sends the obtained operation log to the log filter, the log filter performs filtering conversion and matching on each operation log, so as to obtain the filtered operation log, the operation log is stored by the log storage, and a query interface is provided for the page, the log display reads a target operation log queried by the user from the log storage, and displays the target operation log on the log query interface for the user to view.
In this embodiment, the processing method of the operation and maintenance operation log of the system of the present invention responds to the log filtering configuration request through the log filter by the processing system to generate the log filtering rule, and filters each operation log collected by the log collector based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log; and the processing system performs conversion matching on the URL in the first operation and maintenance operation log through a log filter based on a URL matching rule to obtain a target URL which is in a tree structure and is readable by a user, and then determines the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log.
Therefore, the operation logs acquired at the gateway are subjected to filtering, converting and matching, and the operation and maintenance logs which meet the user requirements and are readable by the user are acquired, wherein the operation and maintenance logs are stored in a tree structure, so that the operation and maintenance logs are stored more quickly, less storage space is occupied, and the speed of reading the operation and maintenance logs is ensured.
In addition, an embodiment of the present invention further provides a device for processing a system operation and maintenance operation log, where the method for processing a system operation and maintenance operation log is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system includes a gateway, a log collector, a log filter, and a log memory.
Referring to fig. 4, fig. 4 is a functional module schematic diagram of an embodiment of a processing apparatus for system operation and maintenance operation logs of the present invention, as shown in fig. 4, the processing apparatus for system operation and maintenance operation logs of the present invention includes:
a log obtaining module 10, configured to obtain each operation log from the gateway through the log collector;
the log filtering module 20 is configured to filter each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
the conversion matching module 30 is configured to perform conversion matching on each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
the storage module 40 is configured to store each second operation and maintenance operation log through the log storage, and provide a log query interface for a user to query each second operation and maintenance operation log.
Optionally, the processing apparatus for the operation and maintenance operation log of the system of the present invention further includes:
the judging module is used for reading a URL corresponding to the access request passing through the gateway and judging whether the URL is an operation resource or not;
and the recording module is used for recording the operation log corresponding to the URL through the gateway when the URL is the operation resource.
Optionally, the recording module is further configured to determine, through the gateway, operator information, access time, and an access address of the URL, which correspond to the URL; and determining an operation log corresponding to the URL through the gateway according to the operator information, the access time and the access address, and recording the operation log.
Optionally, the log filtering module 20 includes:
the filtering rule unit is used for responding to the log filtering configuration request through the log filter and generating a log filtering rule;
and the log filtering unit is used for filtering each operation log through the log filter based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
Optionally, the conversion matching module 30 includes:
the target URL unit is used for converting and matching the URL in the first operation and maintenance operation log based on a URL matching rule through the log filter to obtain a target URL which is in a tree structure and can be read by a user;
and the log determining unit is used for determining the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log through the log filter.
Optionally, the storage module 40 includes:
and the target log unit is used for responding to the query request received by the log query interface through the log memory so as to determine a target operation and maintenance operation log in each stored second operation and maintenance operation log according to the query request.
Optionally, the operation and maintenance operation log processing system further includes a log display, and the processing apparatus for the operation and maintenance operation log of the system of the present invention further includes:
and the display module is used for reading the target operation and maintenance operation log from the log storage through the log display and displaying the target operation and maintenance log on a log query interface.
The present invention further provides a computer storage medium, where a processing program of a system operation and maintenance oplog is stored on the computer storage medium, and when the processing program of the system operation and maintenance oplog is executed by a processor, the steps of the processing program method of the system operation and maintenance oplog according to any of the above embodiments are implemented.
The specific embodiment of the computer storage medium of the present invention is basically the same as the above-mentioned embodiments of the program processing method for the operation and maintenance operation log of the system of the present invention, and will not be described herein again.
The present invention further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method for processing the operation and maintenance operation log of the system according to any of the above embodiments are implemented, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device (e.g. TWS headset, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. The method for processing the operation log of the system operation and maintenance is characterized in that the method for processing the operation log of the system operation and maintenance is applied to an operation and maintenance operation log processing system, and the operation and maintenance operation log processing system comprises a gateway, a log collector, a log filter and a log memory;
the processing method of the system operation and maintenance operation log comprises the following steps:
obtaining each operation log from the gateway through the log collector;
filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
converting and matching each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
and storing each second operation and maintenance operation log through the log storage, and providing a log query interface for a user to query each second operation and maintenance operation log.
2. The method for processing the operation logs of the system operation and maintenance according to claim 1, wherein before the step of obtaining the operation logs from the gateway through the log collector, the method further comprises:
reading a URL corresponding to an access request passing through a gateway through the gateway, and judging whether the URL is an operation resource;
and when the URL is an operation resource, recording an operation log corresponding to the URL through the gateway.
3. The method for processing the operation log of the system operation and maintenance according to claim 2, wherein the step of recording the operation log corresponding to the URL through the gateway includes:
determining operator information, access time and an access address of the URL corresponding to the URL through the gateway;
and determining an operation log corresponding to the URL through the gateway according to the operator information, the access time and the access address, and recording the operation log.
4. The method for processing the operation logs of the system according to claim 1, wherein the step of filtering each operation log through the log filter to obtain each first operation log in each operation log comprises:
responding to a log filtering configuration request through the log filter to generate a log filtering rule;
and filtering each operation log through the log filter based on the log filtering rule to obtain each first operation and maintenance operation log in each operation log.
5. The method for processing the system operation and maintenance operation logs according to claim 1, wherein the step of performing conversion matching on each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log includes:
converting and matching the URL in the first operation and maintenance operation log through the log filter based on a URL matching rule to obtain a target URL which is in a tree structure and can be read by a user;
and determining the operation and maintenance operation log corresponding to the target URL as a second operation and maintenance operation log corresponding to the first operation and maintenance operation log through the log filter.
6. The method for processing the operation logs of the system according to claim 1, wherein the step of providing a log query interface for a user to query each of the second operation logs comprises:
and responding to a query request received by a log query interface through the log memory so as to determine a target operation and maintenance operation log in each stored second operation and maintenance operation log according to the query request.
7. The method for processing the operation log of the system according to claim 6, wherein the operation log processing system further includes a log display, and after the step of determining a target operation log in each of the second stored operation logs according to the query request, the method further includes:
and reading the target operation and maintenance operation log from the log storage through the log display, and displaying the target operation and maintenance log on a log query interface.
8. The device for processing the operation log of the system is characterized in that the method for processing the operation log of the system is applied to an operation log processing system, and the operation log processing system comprises a gateway, a log collector, a log filter and a log memory;
the processing device for the operation and maintenance operation log of the system comprises:
the log acquisition module is used for acquiring each operation log from the gateway through the log collector;
the log filtering module is used for filtering each operation log through the log filter to obtain each first operation and maintenance operation log in each operation log;
the conversion matching module is used for performing conversion matching on each first operation and maintenance operation log through the log filter to obtain a second operation and maintenance operation log corresponding to each first operation and maintenance operation log;
and the storage module is used for storing each second operation and maintenance operation log through the log storage and providing a log query interface for a user to query each second operation and maintenance operation log.
9. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a processing program of the system operation and maintenance oplog stored on the memory and executable on the processor, wherein the processing program of the system operation and maintenance oplog realizes the steps of the processing method of the system operation and maintenance oplog according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, wherein a processing program of a system operation and maintenance operation log is stored on the computer-readable storage medium, and when the processing program of the system operation and maintenance operation log is executed by a processor, the steps of the method for processing the system operation and maintenance operation log according to any one of claims 1 to 7 are implemented.
CN202211520065.XA 2022-11-30 2022-11-30 System operation and maintenance operation log processing method, device, equipment and storage medium Pending CN115905152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211520065.XA CN115905152A (en) 2022-11-30 2022-11-30 System operation and maintenance operation log processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211520065.XA CN115905152A (en) 2022-11-30 2022-11-30 System operation and maintenance operation log processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115905152A true CN115905152A (en) 2023-04-04

Family

ID=86486562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211520065.XA Pending CN115905152A (en) 2022-11-30 2022-11-30 System operation and maintenance operation log processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115905152A (en)

Similar Documents

Publication Publication Date Title
CN108847977B (en) Service data monitoring method, storage medium and server
CN110362372B (en) Page translation method, device, medium and electronic equipment
CN111488594B (en) Permission checking method and device based on cloud server, storage medium and terminal
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN105786858A (en) Information search system and method
CN108011936B (en) Method and device for pushing information
CN115840863A (en) Webpage content tracing method, knowledge graph construction method and related equipment
CN116910374A (en) Knowledge graph-based health care service recommendation method, device and storage medium
CN112632419A (en) Domain name pre-resolution configuration method and device, computer equipment and storage medium
CN110059184B (en) Operation error collection and analysis method and system
CN110881030A (en) Logstack-based method and device for recording operation logs of web service administrator
CN115905152A (en) System operation and maintenance operation log processing method, device, equipment and storage medium
CN114143173B (en) Data processing method, device, equipment and storage medium
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
US9485315B2 (en) System and method for generating a customized singular activity stream
CN111310088A (en) Page rendering method and device
CN111459756A (en) Log processing method and related equipment
CN111124365A (en) RPA demand collection method and device
CN106817473B (en) Address book data processing method, server and device
CN111708684B (en) Recording method and device for page access and computer system
CN112579961B (en) Method, device, equipment and readable storage medium for constructing Web navigation page
CN115544994B (en) Data pushing method, device, electronic equipment and readable storage medium
CN114398294B (en) Test method, test device, electronic equipment and storage medium
CN113468125B (en) File service method, system, equipment and computer readable storage medium
CN112035425B (en) Log storage method and device and computer system

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