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

Active Publication Date: 2022-08-09
福建天晴在线互动科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Before distributed deployment, the logs of a single server are stored in a certain file directory of the server, but as the number of servers increases, it will become more and more difficult to find the logs of the same site
Because when a problematic log appears, it is not known which server the problem will occur on, and there is a problem of difficult location. You have to browse the log from multiple servers, the search is slow, and the access is not intuitive. This is undoubtedly an inefficient way of working.

Method used

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
View more

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
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34G06F11/30
CPCG06F11/3476G06F11/3006
Inventor 刘德建叶伟郑彬李正岳万恕郭玉湖陈宏展
Owner 福建天晴在线互动科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products