Server log acquisition method and system and related device

A collection method and server technology, applied in the field of server log collection, can solve problems such as inconvenience in obtaining log information, and achieve the effects of simplifying the log collection structure, flexible and convenient collection process, and expanding data types

Pending Publication Date: 2021-12-03
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the complexity of websocket, it needs to be implemented with the help of a third-party class library, which makes it extremely inconvenient to obtain log information

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
  • Server log acquisition method and system and related device
  • Server log acquisition method and system and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0042] Please refer to figure 1 , figure 1 It is a flow chart of a server log collection method provided in the embodiment of the present application, and the specific process is as follows:

[0043] S101: Receive a log collection request from a client;

[0044] The implementer of this embodiment can be any server that can provide log query service...

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 server log acquisition method and system and a related device, and relates to the field of servers. A server and a client are provided with SSE service connection. The method comprises the following steps: receiving a log collection request from the client; calling a log collection component to respond to the log collection request to obtain log data; and feeding back the log data to the client through the SSE service connection. The SSE protocol can realize long connection from the server to the client without adopting third-party service, and supports short-line reconnection and self-definition of sent data types, so that the third-party service does not need to be adopted in the process of requesting the server log by the client in the application, the log acquisition structure is simplified, the data types of the log data are expanded, and the log acquisition process is more flexible and convenient.

Description

technical field [0001] The present application relates to the field of servers, and in particular to a server log collection method, system and related devices. Background technique [0002] The microservice architecture of a distributed cluster usually contains hundreds or even thousands of services, which may be deployed on any machine in the cluster. Therefore, the process of viewing the log output of a microservice is cumbersome. Usually, you first need to query which server the service is deployed on, then ask the system administrator to obtain access rights to the target server, and log in to the server through ssh and use the tail –f command to view the logs in real time. This process is time-consuming and demanding on user actions. And if the microservice is based on the high-availability environment of k8s multi-copy deployment, a microservice may deploy multiple copies, which will add complexity to the positioning problem. When troubleshooting, it is often necess...

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
IPC IPC(8): G06F11/30G06F11/34
CPCG06F11/3065G06F11/3476Y02D10/00
Inventor 李世刚
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
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