Method and device for collecting log files in container and electronic equipment
The invention discloses a method and device for collecting log files in a container and electronic equipment. The method comprises the steps: configuring the collection container in the log container,and enabling each log path in the log container to be mapped into the collection container so as to...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and device for collecting log files in a container and electronic equipment. The method comprises the steps: configuring the collection container in the log container,and enabling each log path in the log container to be mapped into the collection container so as to enable the collection container to have the authority of accessing the log files; monitoring each log path to obtain a log file stored in each log path; and collecting label information of the log files and associating the label information with the corresponding log files, and pushing the log files to target positions in a classified mode according to the label information. The log files of each log path are collected through the configured collection container, the log files are sent to the target positions in a classified mode after the label information is added, and the readability of the log files is high; a plurality of log files in the log container can be collected and are not onlylimited to console output |
---|