Log monitoring method and device and medium
The docker-loki log driver plug-in and log components are used to collect and process logs in the docker swarm cluster, which solves the problems of log collection complexity and high maintenance costs in large Internet companies, and enables lightweight log monitoring, which is suitable for small and medium-sized teams.
Patent Information
- Application Number
- CN202310168384.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
In large-scale Internet enterprise applications, large-scale container cloud deployment solutions under microservice architecture are complex, and the use of ELK or other message middleware for log collection results in high maintenance costs and is not suitable for small and medium-sized teams.
The docker-loki log driver plug-in, loki log component and log query client component are used to collect and process logs through the docker swarm cluster to build a lightweight log monitoring system without the need to install or deploy log collection services separately, achieving code-free intrusion.
It reduces the complexity of log sorting and analysis, improves the efficiency of log analysis and troubleshooting, has low maintenance costs, and is suitable for small and medium-sized teams.
Smart Images

Figure CN118535531A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a log monitoring method, device and medium. Background Art
[0002] For large-scale Internet enterprise application services, as the log scale of each system continues to expand, it is difficult to analyze the system status or other system analysis operations. Effectively using the large amount of log information generated during the operation of the system to analyze the system status is of certain significance to the development of system performance, scalability and other requirements.
[0003] Under the current mainstream microservice architecture, large-scale container cloud deployment solutions are not suitable for small and medium-sized teams due to their complex scale and high learning and maintenance costs. In a distributed environment, log collection usually uses ELK or other message middleware, but the deployment and use are relatively complex and the maintenance cost is relatively high. Summary of the invention
[0004] The embodiments of the present application provide a log monitoring method, device and medium for solving the following technical problems: In the prior art, log collection usually adopts ELK or other message middleware, but the deployment and use are relatively complex and the maintenance cost is relatively high.
[0005] The present application embodiment adopts the following technical solutions:
[0006] The embodiment of the present application provides a log monitoring method, including: building a docker swarm cluster and a log aggregation system between a database and a server; obtaining log information corresponding to each node of the docker swarm cluster through the log aggregation system; selecting log tags for the log information, associating the log tags with the log information, and adding the selected tags to the log information index; obtaining log filtering information, filtering the log information based on the log filtering information and the log tags to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0007] The embodiment of the present application collects, processes and analyzes the logs of the docker swarm cluster service by means of the docker-loki log driver plug-in, the loki log component and the log query client log component. Compared with the ELK solution, it is more lightweight and has low maintenance cost. Secondly, the embodiment of the present application collects logs based on the loki log driver plug-in of docker, and there is no need to install or deploy the log collection service separately, and there is no need to modify the code, so the code is non-intrusive. This reduces the complexity of log collation and analysis, and improves the efficiency of log analysis and troubleshooting.
[0008] In one implementation of the present application, log information corresponding to each node of the docker swarm cluster is obtained through a log aggregation system, specifically including: collecting the operation logs of the front-end servers in the docker swarm cluster through promtail configured in the docker container, and sending the collected log information to the log aggregation system configured in the docker container; collecting logs for each docker container separately through the loki-docker-driver log driver plug-in installed on each node in the docker swarm cluster, and sending the collected log information to the log aggregation system configured in the docker container.
[0009] In one implementation of the present application, log tag selection is performed on log information, specifically including: obtaining tag information corresponding to the log information; wherein the tag information includes at least one or more fields in the generation time, log level, business system identifier and server identifier corresponding to the log information; constructing a log tag based on one or more fields corresponding to the tag information; wherein the log tag includes the number of fields and field content.
[0010] In one implementation of the present application, log information is filtered based on log filtering information and log tags to obtain target log information, specifically including: determining the number of fields of log tags in the log filtering information, and performing a first index based on the number of fields to obtain first candidate log information; and determining the field content of the log tags in the log filtering information, and performing a second index based on the field content to obtain second candidate log information; and performing a third index based on one or more log search expressions in the log filtering information to obtain third candidate log information; and performing intersection processing on the first candidate log information, the second candidate log information, and the third candidate information to obtain the target log information.
[0011] In one implementation of the present application, after adding the selected tags to the log information index, the method also includes: switching to a page of a log aggregation system through the query area of the log query client; visually displaying the log tags collected by the current system through the Log labels area of the page of the log aggregation system, so as to perform filtered queries on the logs through the displayed log tags.
[0012] In one implementation of the present application, after obtaining the log information corresponding to each node of the docker swarm cluster through the log aggregation system, the method also includes: compressing the log information received within a preset time period, and sending the compressed log information to a temporary database to store the compressed log information; sending the compressed log information to a data cleaning server to clean the sensitive information in the log information and obtain the cleaning result; based on the cleaning result, determining the log information remaining after cleaning; detecting the data source corresponding to the log information remaining after cleaning, creating an index tag for the log information remaining after cleaning according to the data source, and storing the index tag in the blockchain.
[0013] In one implementation of the present application, the compressed log information is sent to a data cleaning server to clean the sensitive information in the log information. After obtaining the cleaning result, the method also includes: extracting the sensitive information into a search engine corresponding to the docker swarm cluster address to obtain the exception information to be processed; based on a preset log key information decision tree, performing keyword extraction on the exception information to be processed, and obtaining an exception log information index based on the keywords and the exception information to be processed.
[0014] In one implementation of the present application, after building a docker swarm cluster and a log aggregation system between a database and a server, the method further includes: modifying the file configuration of the yaml configuration during the deployment of the docker swarm cluster stack; and configuring the loki source address for the browser to access the grafana address.
[0015] An embodiment of the present application provides a log monitoring device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: build a docker swarm cluster and a log aggregation system between a database and a server; obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system; select log tags for the log information, associate the log tags with the log information, and add the selected tags to the log information index; obtain log filtering information, and filter the log information based on the log filtering information and the log tags to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0016] A non-volatile computer storage medium provided by an embodiment of the present application stores computer executable instructions, wherein the computer executable instructions are configured to: build a docker swarm cluster and a log aggregation system between a database and a server; obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system; select log tags for the log information, associate the log tags with the log information, and add the selected tags to a log information index; obtain log filtering information, and filter the log information based on the log filtering information and the log tags to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The embodiments of the present application collect, process and analyze the logs of the docker swarm cluster service by means of the docker-loki log driver plug-in, loki log component and log query client log component, which is more lightweight and has low maintenance cost compared with the ELK solution. Secondly, the embodiments of the present application collect logs based on the loki log driver plug-in of docker, without the need to install or deploy the log collection service separately, without modifying the code, and realizing non-intrusive code. This reduces the complexity of log collation and analysis and improves the efficiency of log analysis and troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0019] In the figure:
[0020] Figure 1 A flow chart of a log monitoring method provided in an embodiment of the present application;
[0021] Figure 2 A structural diagram of a log monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] Embodiments of the present application provide a log monitoring method, device, and medium.
[0023] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0024] For large-scale Internet enterprise application services, as the log scale of each system continues to expand, it is difficult to analyze the system status or other system analysis operations. Effectively using the large amount of log information generated during the operation of the system to analyze the system status is of certain significance to the development of system performance, scalability and other requirements.
[0025] Under the current mainstream microservice architecture, large-scale container cloud deployment solutions are not suitable for small and medium-sized teams due to their complex scale and high learning and maintenance costs. In a distributed environment, log collection usually uses ELK or other message middleware, but the deployment and use are relatively complex and the maintenance cost is relatively high.
[0026] In order to solve the above problems, the embodiments of the present application provide a log monitoring method, device and medium. The logs of the docker swarm cluster service are collected, processed and analyzed by means of the docker-loki log driver plug-in, the loki log component and the log query client log component. Compared with the ELK solution, it is more lightweight and has low maintenance cost. Secondly, the embodiments of the present application collect logs based on the loki log driver plug-in of docker. There is no need to install or deploy the log collection service separately, and there is no need to modify the code, so the code is non-intrusive. This reduces the complexity of log collation and analysis, and improves the efficiency of log analysis and troubleshooting.
[0027] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0028] Figure 1 A flow chart of a log monitoring method provided in an embodiment of the present application. Figure 1 As shown, the log monitoring method includes the following steps:
[0029] S101. Build a docker swarm cluster and log aggregation system between the database and the server.
[0030] In one embodiment of the present application, the present application embodiment includes abbreviations of relevant technologies involved in multiple log monitoring processes:
[0031] Docker: is an open source platform software for developing, delivering and running applications. Docker allows users to separate applications in the infrastructure into smaller particles (containers), thereby increasing the speed of software delivery.
[0032] Image: Docker image, a virtual file system with multiple layers of directories mounted together.
[0033] Container: A docker container is created on top of a docker image to run an instance.
[0034] Swarm: Management and orchestration of Docker container clusters. Docker can initialize a swarm cluster, and other nodes can join it.
[0035] Node: A node in a swarm. Multiple nodes form a network cluster (manager, worker).
[0036] Service: A task in swarm that can be run on a management node or a worker node and accessed by users.
[0037] Task: The atomic scheduling unit in swarm, the detailed task in service, one task corresponds to one container.
[0038] Grafana: is an open source data visualization tool and the log query client of the present invention.
[0039] Loki: is a highly available, scalable, multi-tenant log aggregation system. Loki focuses on logs and obtains log information through client push. Compared with other log systems, its advantages include saving resources and providing log compression. Instead of adding the full text to the index, tags are added to the index; it is suitable for storing and searching logs similar to docker containers.
[0040] promtail: used to collect logs and send them to loki.
[0041] ELK: A visual massive log analysis platform built using the three tools Elasticsearch+Logstash+Kibana.
[0042] LogQL: A log query language, LogQL is Grafana Loki's query language inspired by PromQL. Queries act like distributed grep for aggregated log sources. LogQL uses tags and operators for filtering.
[0043] In one embodiment of the present application, a docker swarm cluster is built. In the embodiment of the present application, four application servers are set up, one front-end nginx server, and the other three servers build a swarm cluster to deploy back-end services. Among them, the other three servers are a management node and two working nodes.
[0044] Furthermore, after the compose file is written, the embodiment of the present application uses the docker stack command to deploy the application, and satck can realize the distributed creation of multiple services. In the present invention, only one docker service is configured and three tasks are set. The three tasks will be load balanced on the three nodes according to the swarm strategy.
[0045] In one embodiment of the present application, the YAML configuration during the deployment of the Docker Swarm cluster stack is modified, and the loki source address is configured for the browser access to the grafana address.
[0046] Specifically, modify the YAML configuration file when deploying the docker swarm cluster stack, add logging configuration parameters, configure the date driver name to loki, and configure the loki service address in options.loki-url. Also, configure the loki data source, access the grafana address in the browser, select loki in the "Add data source" list in the settings, and configure the loki source address.
[0047] S102. Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system.
[0048] In one embodiment of the present application, the operation logs of the front-end servers in the docker swarm cluster are collected through promtail configured in the docker container, and the collected log information is sent to the log aggregation system configured in the docker container. The loki-docker-driver log driver plug-in installed on each node in the docker swarm cluster is used to collect logs for each docker container, and the collected log information is sent to the log aggregation system configured in the docker container.
[0049] Specifically, install the loki log application, pull the remote image with docker, use the docker run command, configure and start loki, grafana, and promtail (to collect nginx running logs) in the docker container, and configure the firewall to allow access to loki and grafana ports. Install the loki plug-in, and install the loki-docker-driver log driver plug-in on the docker daemon on all nodes of the docker swarm to collect logs in the container operation. After installation, restart the docker daemon.
[0050] In one embodiment of the present application, the log information received within a preset time period is compressed, and the compressed log information is sent to a temporary database to store the compressed log information. The compressed log information is sent to a data cleaning server to clean the sensitive information in the log information and obtain the cleaning result. Based on the cleaning result, the log information remaining after cleaning is determined. The data source corresponding to the log information remaining after cleaning is detected, and an index tag is created for the log information remaining after cleaning according to the data source, and the index tag is stored in the blockchain.
[0051] Specifically, the received log information is compressed, and the embodiment of the present application is provided with a temporary database, which is used to store the compressed log information to retain the log information for a long time. Secondly, in order to filter the compressed log information, the compressed log information is sent to a preset data cleaning server, and the sensitive information in the log information is cleaned by the preset data cleaning server. For example, repeated information, incomplete information, and erroneous information can be cleaned to obtain a cleaning result.
[0052] Further, the remaining log information is determined based on the cleaning result, and the corresponding data source is determined based on the remaining log information. Based on the content of the remaining log information, corresponding keywords are created to create index tags of the remaining log information based on the keywords, and the index tags are stored in the blockchain.
[0053] In one embodiment of the present application, sensitive information is extracted into a search engine corresponding to the docker swarm cluster address to obtain the exception information to be processed. Based on the preset log key information decision tree, keywords are extracted from the exception information to be processed, and an exception log information index is obtained based on the keywords and the exception information to be processed.
[0054] Specifically, the corresponding exception information to be processed can be obtained based on the cleaning result. If the operation of the server needs to be detected, the exception information to be processed needs to be detected. Therefore, the exception information to be processed needs to be stored and searched in time when needed. Therefore, the embodiment of the present application extracts keywords from the exception information to be processed based on the preset log key information decision tree, and uses the extracted keywords as the index tags corresponding to the exception processing information, and obtains the exception log information index based on the keywords and the exception information to be processed.
[0055] S103: Select log tags for the log information, associate the log tags with the log information, and add the selected tags to the log information index.
[0056] In one embodiment of the present application, the tag information corresponding to the log information is obtained, wherein the tag information at least includes one or more fields of the generation time, log level, business system identifier, and server identifier corresponding to the log information. A log tag is constructed based on the one or more fields corresponding to the tag information, wherein the log tag includes the number of fields and field content.
[0057] Specifically, in the embodiment of the present application, the acquired log information is labeled, the generation time is constructed based on the time corresponding to each log information, the importance level of the log is determined based on the log content, and the corresponding business system identifier and server identifier are determined based on the source of the log. One or more fields of the generation time, log level, business system identifier, and server identifier corresponding to the acquired log information are used as the label information corresponding to the current log information.
[0058] In one embodiment of the present application, the query area of the log query client is converted to the page of the log aggregation system. The log labels collected by the current system are visualized through the Log labels area of the page of the log aggregation system, so as to filter and query the logs through the displayed log labels.
[0059] Specifically, write a log stream selector, switch to Explore in the left area of grafana, and enter the loki page. Click Log labels to display the log labels collected by the current system. You can filter and query the logs based on these labels and configure search expressions.
[0060] S104: Obtain log filtering information, and filter the log information based on the log filtering information and the log tag to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0061] In one embodiment of the present application, the number of fields of the log tag in the log filtering information is determined, and a first index is performed based on the number of fields to obtain the first candidate log information; and the field content of the log tag in the log filtering information is determined, and a second index is performed based on the field content to obtain the second candidate log information. And a third index is performed based on one or more log search expressions in the log filtering information to obtain the third candidate log information. The first candidate log information, the second candidate log information, and the third candidate log information are subjected to intersection processing to obtain the target log information.
[0062] Specifically, when querying the stored log information, the query can be performed based on the content of the log tag and the number of fields corresponding to the tag. Specifically, based on the number of log tags contained in the acquired log filtering information, one or more log information corresponding to the number is determined as the first candidate log information. Secondly, based on the field content contained in the log filtering information, a keyword search is performed to obtain one or more candidate log information as the second candidate log information. Secondly, based on the log search expression contained in the log filtering information, one or more candidate log information is determined as the third candidate log information. The first candidate log information, the second candidate log information and the third candidate log information acquired are subjected to intersection processing to obtain the target log information.
[0063] Further, log filtering, after writing the log stream selector, you can further filter the results by writing a search expression. The search expression can be just text or a regular expression (LogQL language).
[0064] The embodiment of the present application collects, processes and analyzes the logs of the docker swarm cluster service by means of the docker-loki log driver plug-in, the loki log component and the log query client log component. Compared with the ELK solution, it is more lightweight and has low maintenance cost. Secondly, the embodiment of the present application collects logs based on the loki log driver plug-in of docker, and there is no need to install or deploy the log collection service separately, and there is no need to modify the code, so the code is non-intrusive. This reduces the complexity of log collation and analysis, and improves the efficiency of log analysis and troubleshooting.
[0065] The embodiment of the present application uses the docker-loki log driver plug-in, loki log component and grafana log component to collect, process and analyze the logs of the docker swarm cluster service, which is more lightweight and has low maintenance cost compared to the ELK solution. Secondly, the docker-based loki log driver plug-in is used to collect logs, without the need to install or deploy a log collection service separately, without modifying the code, and achieving code non-intrusion. The front-end nginx server can install promtail to collect nginx logs and associate them with grafana, so that unified management of front-end and back-end logs can be achieved.
[0066] Figure 2 A schematic diagram of the structure of a log monitoring device provided in an embodiment of the present application. Figure 2 As shown, the log monitoring device includes:
[0067] at least one processor; and,
[0068] a memory communicatively connected to the at least one processor; wherein,
[0069] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0070] Build a docker swarm cluster and log aggregation system between the database and the server;
[0071] Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system;
[0072] Selecting a log tag for the log information, associating the log tag with the log information, and adding the selected tag to the log information index;
[0073] Log filtering information is obtained, and the log information is filtered based on the log filtering information and the log tag to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0074] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0075] Build a docker swarm cluster and log aggregation system between the database and the server;
[0076] Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system;
[0077] Selecting a log tag for the log information, associating the log tag with the log information, and adding the selected tag to the log information index;
[0078] Log filtering information is obtained, and the log information is filtered based on the log filtering information and the log tag to obtain target log information; wherein the log filtering information includes one or more log search expressions.
[0079] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0080] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0081] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the claims of the present application.
Claims
1. A log monitoring method, characterized in that: The method comprises: Build a docker swarm cluster and log aggregation system between the database and the server; Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system; Selecting a log tag for the log information, associating the log tag with the log information, and adding the selected tag to the log information index; Log filtering information is obtained, and the log information is filtered based on the log filtering information and the log tag to obtain target log information; wherein the log filtering information includes one or more log search expressions.
2. A log monitoring method according to claim 1, characterized in that: The log information corresponding to each node of the docker swarm cluster is obtained through the log aggregation system, specifically including: The operation logs of the front-end servers in the docker swarm cluster are collected through promtail configured in the docker container, and the collected log information is sent to the log aggregation system configured in the docker container; The loki-docker-driver log driver plug-in installed on each node in the docker swarm cluster is used to collect logs for each docker container, and the collected log information is sent to the log aggregation system configured in the docker container.
3. A log monitoring method according to claim 1, characterized in that: The selecting a log tag for the log information specifically includes: Get the tag information corresponding to the log information; The tag information includes at least one or more fields of the generation time, log level, business system identifier and server identifier corresponding to the log information; Building a log tag based on one or more fields corresponding to the tag information; The log tag includes the number of fields and the field content.
4. A log monitoring method according to claim 3, characterized in that: The filtering the log information based on the log filtering information and the log tag to obtain target log information specifically includes: Determine the number of fields of the log tag in the log filtering information, and perform a first index based on the number of fields to obtain first candidate log information; and Determine the field content of the log tag in the log filtering information, and perform a second index based on the field content to obtain second candidate log information; and Performing a third index based on one or more log search expressions in the log filtering information to obtain third candidate log information; The first candidate log information, the second candidate log information and the third candidate log information are subjected to intersection processing to obtain the target log information.
5. A log monitoring method according to claim 1, characterized in that: After adding the selected tag to the log information index, the method further includes: Switch to the page of the log aggregation system through the query area of the log query client; The log labels collected by the current system are visualized through the Log labels area of the page of the log aggregation system, so that the logs can be filtered and queried through the displayed log labels.
6. A log monitoring method according to claim 1, characterized in that: After obtaining the log information corresponding to each node of the docker swarm cluster through the log aggregation system, the method further includes: Compressing the log information received within a preset time period, and sending the compressed log information to a temporary database to store the compressed log information; Sending the compressed log information to a data cleaning server to clean the sensitive information in the log information and obtain the cleaning result; Based on the cleaning result, determining the log information remaining after cleaning; The data source corresponding to the log information remaining after the cleaning is detected, an index tag is created for the log information remaining after the cleaning according to the data source, and the index tag is stored in the blockchain.
7. A log monitoring method according to claim 6, characterized in that: After sending the compressed log information to a data cleaning server to clean the sensitive information in the log information and obtaining the cleaning result, the method further includes: Extract the sensitive information into the search engine corresponding to the docker swarm cluster address to obtain the exception information to be processed; Based on a preset log key information decision tree, keywords are extracted from the exception information to be processed, and an exception log information index is obtained based on the keywords and the exception information to be processed.
8. A log monitoring method according to claim 1, characterized in that: After building the docker swarm cluster and the log aggregation system between the database and the server, the method further includes: Modify the file configuration of the YAML configuration when deploying the docker swarm cluster stack; and Configure the loki source address for the browser to access the grafana address.
9. A log monitoring device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Build a docker swarm cluster and log aggregation system between the database and the server; Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system; Selecting a log tag for the log information, associating the log tag with the log information, and adding the selected tag to the log information index; Log filtering information is obtained, and the log information is filtered based on the log filtering information and the log tag to obtain target log information; wherein the log filtering information includes one or more log search expressions.
10. A non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: Build a docker swarm cluster and log aggregation system between the database and the server; Obtain log information corresponding to each node of the docker swarm cluster through the log aggregation system; Selecting a log tag for the log information, associating the log tag with the log information, and adding the selected tag to the log information index; Obtain log filtering information, and filter the log information based on the log filtering information and the log tag to obtain target log information; wherein, The log filtering information includes one or more log search expressions.
Citation Information
Patent Citations
Container monitoring method under swarm cluster and shared service cloud platform
CN113010363A
Log screening method, device and equipment for kubernetes cluster
CN113704055A
Docker-based CMP system log unified monitoring and management method
CN115334086A
