Unlock instant, AI-driven research and patent intelligence for your innovation.

Log collection method, apparatus, electronic device, and computer-readable storage medium

A collection method and collection configuration technology, applied in the computer field, can solve the problem of consuming large resources, and achieve the effect of persistent storage and query

Active Publication Date: 2022-08-09
HUNDSUN TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the purpose of the present invention is to provide a log collection method, device, electronic device and computer-readable storage medium to solve the problem of consuming a large amount of resources in the prior art by additionally injecting sidecar containers into application containers for log collection. The problem

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 method, apparatus, electronic device, and computer-readable storage medium
  • Log collection method, apparatus, electronic device, and computer-readable storage medium
  • Log collection method, apparatus, electronic device, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

[0049] Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present invention.

[0050] It should ...

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

Embodiments of the present invention provide a log collection method, apparatus, electronic device, and computer-readable storage medium, which relate to the technical field of computers. In the method, the analysis container and the collection container are preconfigured, the analysis container obtains the log collection configuration information corresponding to the target application container, and according to the log collection configuration information, a soft link is created in the first designated directory of the first container group, because the soft link points to the target application. The log file of the container and the parsing container and the collection container can share a directory in a container group, so the collection container can obtain the log file of the target application container by reading the soft link in the first specified directory. This method collects the log files of the application container by configuration, without restarting the application or injecting a sidecar container into the application Pod, decoupling the application log life cycle from the application life cycle, and the application itself does not need to increase additional resource consumption , and finally realize persistent storage and query of application log data.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a log collection method, apparatus, electronic device, and computer-readable storage medium. Background technique [0002] Kubernetes, or K8s for short, is a production-level container orchestration system open sourced by Google. In a container, there are two types of container logs, one is standard output log, and the other is text log. Among them, text log refers to the log that exists inside the container and is not redirected to standard output. This kind of log cannot be Obtained through commands or API (Application Programming Interface) provided by Kubernetes or docker. Standard output logs refer to logs that need to be output to the outside world. [0003] In the process of containerization transformation, traditional applications are still accustomed to writing application logs to log files with specified paths. Such log files cannot be collected in the w...

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): G06F9/50G06F16/18
CPCG06F9/5077G06F16/1815
Inventor 谷林郑彬朱继永蒋志伟吴恩慈李璐奇
Owner HUNDSUN TECH