Supercharge Your Innovation With Domain-Expert AI Agents!

Log collection method, system and device

A collection method and log technology, applied in the field of cloud computing, can solve problems such as waste of computer resources

Pending Publication Date: 2022-01-04
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a log collection method, system, and device, so that the first log collector of the first host can collect logs for the application program corresponding to the first collection task. If there is a collection task corresponding to the application program deployed on the first host, the first host will not be scanned, which avoids the waste of computer resources caused by the invalid scan operation of the first log collector, and ensures the integrity of the application. normal operation

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, system and device
  • Log collection method, system and device
  • Log collection method, system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Embodiment one, see figure 2 , figure 2 It is a flow chart of a log collection method provided by an embodiment of the present invention, and the method may include the following steps:

[0068] S201: Receive a first collection task request sent by a first log collector in a first host computer.

[0069] The first collection task request includes application identifiers of deployed application programs in containers in the first host machine.

[0070] S202: For each application identifier in the first collection task request, determine whether there is a collection task corresponding to the application identifier among the specified collection tasks.

[0071] S203: If there is a collection task corresponding to the application identifier, send the collection task corresponding to the application identifier to the first log collector, so that the first log collector collects the collection task corresponding to the application identifier according to the collection t...

Embodiment 2

[0078] Embodiment two, see image 3 ,exist figure 2 On the basis of, before step S201, the method may also include:

[0079] S204: Receive container information of the created target container sent by the first host computer.

[0080] S205: Determine whether there is a collection task corresponding to the target application identifier among the specified multiple collection tasks.

[0081] S206: If there is a collection task corresponding to the target application identifier, determine whether the log collector is currently not installed in the first host machine.

[0082] S207: If the log collector is not currently installed in the first host, send an installation reminder message to the first host, so that the first host installs the log collector according to the installation reminder message.

[0083] Wherein, the container information includes the target application identifier of the target application deployed in the target container.

[0084] In an implementation m...

Embodiment 3

[0088] Embodiment 3, judging whether the log collector is currently not installed in the first host machine, including:

[0089] Step 1: Determine whether the collection task request sent by the log collector in the first host computer is received within the preset historical time period.

[0090] Step 2: If the collection task request sent by the log collector in the first host computer is not received, it is determined that no log collector is currently installed in the first host computer.

[0091] In an implementation manner, the log collector can send a collection task request to the control server according to a preset period, and the preset period can be set by a technician according to business requirements. For example, the preset period can be 10 seconds, or the preset period can be 10 seconds, or The period may be 30 seconds, which is not limited here. The preset historical time period may be a preset period before the current moment.

[0092] In an implementation m...

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 embodiment of the invention provides a log collection method, system and device, and relates to the technical field of cloud computing, a first host machine sends a first collection task request to a control server through a first log collector, and the request comprises an application identifier of an application program deployed in the first host machine; if the collection task corresponding to the application identifier in the request exists, the collection task corresponding to the application identifier is sent to a first log collector; and the first log collector collects a log of an application program to which the application identifier belongs according to the received collection task corresponding to the application identifier. Therefore, the first log collector of the first host machine can perform log collection on the application program according to the collection task, and if the collection task corresponding to the application program deployed by the first host machine does not exist, the first host machine is not scanned, so that invalid scanning operation of the first log collector is avoided. Therefore, the problem of waste of computer resources is solved, and normal operation of the application program is ensured.

Description

technical field [0001] The present invention relates to the technical field of cloud computing, in particular to a log collection method, system and device. Background technique [0002] With the rapid development of cloud computing technology, more and more applications are deployed on the cloud using container technology. Since the container management tool can automatically change the host machine to which the container belongs according to business needs after the container is created, the corresponding application in the container The program also changes the host machine to which it belongs, so that the user cannot determine the host machine to which the application program currently belongs, and thus cannot collect the operation log of the application program in the host machine to which the application program currently belongs. [0003] In the prior art, by installing log collectors on all host computers, and the log collector scans the host computers, it is ensured...

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): G06F9/455G06F11/30G06F16/17
CPCG06F9/45558G06F11/302G06F11/3051G06F11/3065G06F16/1734
Inventor 邹沛成
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More