Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log collection monitoring method and system for distributed server

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

Active Publication Date: 2020-09-25
福建天晴在线互动科技有限公司
View PDF3 Cites 5 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
  • Log collection monitoring method and system for distributed server
  • Log collection monitoring method and system for distributed server
  • Log collection monitoring method and system for distributed server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0031] Step S1. Collect the site logs of each server separately, and store the collected log data in the directories of their respective servers, and each server has a corresponding server IP; in this way, the respective businesses do not need to change the log storage Way.

[0032] Step S2, through the interface, receive the log data collected by each server and store them in the message queue, and then read the log data one by one from the message queue, and 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 on a visual page; query by day, by site, and by server is supported.

[0034] Step S4, by regular...

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 invention provides a log collection monitoring method of a distributed server, which comprises the following steps: S1, respectively collecting site logs of each server, respectively storing collected log data on directories of respective servers, and ensuring that each server has a corresponding server IP (Internet Protocol); s2, receiving log data collected by each server in an interface mode, storing the log data in a message queue, reading the log data from the message queue one by one, distinguishing the log data according to server IPs and log time, and storing the log data in redis;s3, reading the collected log data from redis, and displaying the log data through a visual page; s4, regularly inquiring log counters in the zset ordered set of redis, and when the log counters exceed the set number, informing a person in charge of the station in a short message or mailbox mode. The working 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 traffic, the traffic of the website increases accordingly. In order to meet the larger scale, the website will adopt distributed deployment, and a site is deployed on multiple servers. 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 logs from multiple servers, the search is slow, and the access is not intuitive. This is undoubtedly an inefficient way of working. . Contents of the invention [00...

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