Log collection method and device based on host machine, computer equipment and storage medium

A collection device and host computer technology, applied in the field of system deployment, can solve the problems of huge resource consumption, the increase in the number of auxiliary containers for log agents, and the inability to collect logs accurately, so as to achieve the effect of avoiding large consumption and easy collection

Pending Publication Date: 2020-04-03
深圳市信联征信有限公司
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. In each pod, not only a business container needs to be deployed, but also an auxiliary container of the log agent needs to be deployed to collect the logs of the business container. The number will also increase, the disadvantage is that the additional resource consumption is huge
[0005] 2. Deploy a log agent on each host of the k8s cluster to collect all log files in the log directory of docker,

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0046] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0047] It should be understood that when used in this specification and the appended claims, the terms "including" and "including" indicate the existence of the described features, wholes, steps, operations, elements and / or components, but do not exclude one or The existence or addition of multiple other features, wholes, steps, operations, elements, components, and / or collections thereof.

[0048] It should also be understood that the terms used in this specif

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 relates to a log collection method and device based on a host machine, computer equipment and a storage medium. The method comprises the following steps of writing logs of application programs in containers into the log directories of the containers; mounting the log directory of each container to a fixed directory of a host machine running the container; deploying a log collection tool in each host machine, and collecting log data stored in the fixed directory of the corresponding host machine. According to the scheme, the logs of the application programs are written into the log directories of the containers, then the log directories of the containers are mounted into the fixed directories of the host machines, the log data in the fixed directories in the host machines is collected, an auxiliary container does not need to be arranged for log collection, and the problem that resource consumption is large due to log collection is avoided; and moreover, logs of all containers and application programs can be accurately collected by setting one tool on the host machines, and the log data can be better collected.

Description

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

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