Method and system for log collection and monitoring of distributed server

A distributed server, collection and monitoring technology, applied in the field of computer communication, can solve problems such as inefficient working methods, slow search, difficult positioning, etc., and achieve the effects of improving work efficiency, complete system design, and unified process

A distributed server, collection and monitoring technology, applied in the field of computer communication, can solve problems such as inefficient working methods, slow search, difficult positioning, etc., and achieve the effects of improving work efficiency, complete system design, and unified process

CN111708685BActive Publication Date: 2022-08-09福建天晴在线互动科技有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for log collection and monitoring of distributed server
  • Method and system for log collection and monitoring of distributed server
  • Method and system for log collection and monitoring of distributed server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described below with reference to the accompanying drawings.

[0030] see figure 1 As shown, a log collection and monitoring method for a distributed server of the present invention includes the following steps:

[0031] In step S1, the site logs of each server are collected separately, and the collected log data are stored in the directories of the respective servers, and each server has a corresponding server IP; in this way, the respective business does not need to change the log stored. Way.

[0032] Step S2, through the interface, receive the log data collected by each server and store it in the message queue, and then read the log data from the message queue one by one, distinguish them according to the server IP and log time, and store them in redis;

[0033] Step S3, read the collected log data from redis, and display it through a visual page; support query by day, site, and server.

[0034] In step S4, the log counter in t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a log collection and monitoring method for distributed servers. The method includes the following steps: Step S1, collecting site logs of each server respectively, and storing the collected log data on the directories of the respective servers, and each Each server has a corresponding server IP; step S2, through the interface, receive the log data collected by each server and store it in the message queue, and then read the log data from the message queue one by one, and log data according to the server IP and log time. Make distinctions and store them in redis; step S3, read the collected log data from redis, and display it through the visual page; step S4, query the log counter in the zset ordered set of redis regularly, when the log If the counter exceeds the set quantity, the site manager will be notified by SMS or email; the work efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computer communication, in particular to a log collection and monitoring method and system of a distributed server. Background technique [0002] With the increase of web page business, the traffic of the website increases accordingly. In order to meet the larger scale, the website will be deployed in a distributed manner, and one site is deployed on multiple servers. Before distributed deployment, the logs of a single server were stored in a certain file directory of the server, but as the number of servers increases, the log lookup of the same site will become more and more difficult. Because when the log in question appears, I don't know which server the problem will occur on, and there is a problem of difficult positioning. It is necessary to browse the logs from multiple servers, the search is slow, and the access is not intuitive. This is undoubtedly an inefficient way of working. . SUMMARY OF TH...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
09 Aug 2022
Publication
CN111708685B
IPC
G06F11/34; G06F11/30
CPC
G06F11/3476; G06F11/3006
Inventors
刘德建; 叶伟