Log collection method and device

The invention discloses a log collection method and a device. The method comprises the following steps: determining that the log collection mode of the node for log collection is a real-time collection mode or a timing collection mode according to a certain period, wherein, the node is a node in a d...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LONG PINGBO, XUAN SHANMING
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 a device. The method comprises the following steps: determining that the log collection mode of the node for log collection is a real-time collection mode or a timing collection mode according to a certain period, wherein, the node is a node in a distributed system for log collection; according to the determined log collection mode, log collection is carried out on multiple log files of nodes, among which, the nodes are multiple, and the log collection of different nodes is independent of each other; sending the collected log file to the relay module, and sending the received log file to the collection module by the relay module. The collecting module receives the log file, collects the log file, and sends the collected log file to the processing module by the collecting module. The processing module receives the log file and processes it. The invention solves the technical problem that the acquisition system in the related art is very complex. 本发明公开了种日志采集方法