Log collection method and device and readable storage medium

The invention discloses a log collection method and device and a readable storage medium, a center cluster generates a first CRD bound with at least one container according to a collection request which comes from a console and carries a log collection rule, and sends the first CRD to an edge cluste...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: YAN JINGU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a log collection method and device and a readable storage medium, a center cluster generates a first CRD bound with at least one container according to a collection request which comes from a console and carries a log collection rule, and sends the first CRD to an edge cluster where each container in the at least one container is located. After the edge cluster receives the first CRD, a node cluster is determined, and each working node in the node cluster is provided with at least one container. And then, the edge cluster generates a second CRD for each working node, and collects the log according to the second CRD corresponding to the working node. By the adoption of the scheme, the containers do not need to be logged in one by one, massive edge container logs can be collected and inquired through one-time configuration, collection targets are conveniently and rapidly configured, consumed time is short, timely maintenance of containerized applications is facilitated, and normal operat