Method and device for collecting log

A collection method and log technology, applied in the information field, can solve problems such as poor applicability, incomplete information, and inaccessibility, and achieve the effects of improving comprehensiveness and applicability, simple collection method, and improving efficiency

Active Publication Date: 2015-12-09
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF9 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, because the collection method based on SNMPTrap is based on event-driven, the agent only notifies the management system when it detects a fault, and the non-fault information will not be notified to the management system. As a result, the information obtained by the management system is not comprehensive. In addition, This method can only be carried out based on the SNMP protocol, and the format of the collected messages needs to be defined separately, which has certain limitations; the method based on the Syslog protocol uses the User Datagram Protocol (UserDatagramProtocol, UDP) as the transmission protocol, and can receive messages from the remote system. Log files, however, in this method, most applications write logs in a custom way and do not support the Syslog protocol, so usually this method cannot obtain information about log files of various types of operating systems or application systems; Telnet-based In this method, you need to log in to the managed terminal remotely, obtain the log file information through commands, and then send the log file information to the receiver through email or File Transfer Protocol (FTP). However, this method requires remote management Login information, and need to use mail server or FTP server, there are problems of poor security and complicated sending methods
[0004] To sum up, the log collection method in the prior art has the problems of incomplete collected information, poor applicability and complicated collection methods

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
  • Method and device for collecting log
  • Method and device for collecting log
  • Method and device for collecting log

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0080] In order to facilitate the understanding of the embodiments of the present invention, further explanations will be given below with specific embodiments in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the present invention.

[0081] The log collection method provided by the embodiment o...

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 relates to a method and a device for collecting a log. The method comprises the following steps: reading at least one log knowledge module from a log knowledge module list by a log client side; executing the log knowledge module, analyzing a log file of the corresponding operation system or application system, and collecting target content information of the log file; and transmitting the collected target content information to a log server side. Therefore, the comprehensiveness and applicability of collected information can be improved; the collection method is simple; and the collection efficiency can be greatly improved.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a log collection method and device. Background technique [0002] The operating system (such as Windows, Linux, etc.) on the server and the running applications have corresponding log files, the operating system has system log files, and the application system has application log files. The log file records information such as server startup, shutdown, user login, and application running. Collecting information in system log files and application log files plays an important role in analyzing server system performance, application performance, or diagnosing server system failures and application failures. [0003] In the prior art, the modes of collecting log files mainly include: a collection mode based on Simple Network Management Protocol (Simple Network Management Protocol, SNMP) trap (Trap), a collection mode based on System Log (SystemLog, Syslog) protocol, and a coll...

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): H04L12/24
CPCH04L41/069
Inventor 郑建锋
Owner HUAWEI CLOUD COMPUTING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products