Check patentability & draft patents in minutes with Patsnap Eureka AI!

Log collection method and device

A log, uncollected technology, applied in the computer field, can solve the problems of inability to save the log collection site, disordered log storage location, and inability to implement breakpoint recollection, etc., to avoid missed log collection, improve operation efficiency, and facilitate collection.

Pending Publication Date: 2019-08-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. During the file renaming process, some newly generated logs will still be stored in the renamed file, and the log storage location is confusing, which may easily lead to missing logs;
[0006] 2. The log collection site cannot be saved, and re-collection at breakpoints cannot be realized

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0064] Various logs are generated during the operation of the online system. In the embodiment of the present invention, by writing the logs generated by the system into the corresponding log files according to the order of log generation time, log rollback during log collection can be avoided; by saving the collection status during log collection, the log collection site ...

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 invention discloses a log collection method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: determining a log file corresponding to each log according to the generation time of each log and the time interval of each log file; writing each log into a log file corresponding to the log to form a log file set; and storing the logs in the log file set to a target storage position. According to the implementation mode, the logs are written into the corresponding log files according to the generation time of the logs,and the situation of log missed collection can be avoided; and the collection state of each log is kept, so that the collection site of each log can be known conveniently, and breakpoint continuous collection is realized. According to the technical scheme provided by the embodiment of the invention, lossless carrying from the system log to the offline analysis system can be realized.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a log collection method and device. Background technique [0002] With the continuous development of the Internet, the Internet has entered the DT era from the IT era, and data has become the raw material for the company's gold digging, and has become the company's most valuable asset. However, before data mining and machine learning, data collection Work is also a very important part of it. Reliable data collection tools play a big role in the subsequent work. [0003] In the prior art, when collecting data, the generated logs are first stored in the a.log file, and then the logs in the a.log file are sent to the target location. Specifically, when the generated log is stored in the a.log file, it is judged whether the time when the log is generated spans days, if not, the log is stored in the a.log file; if it is spanned, the current Rename the a.log file, create a ...

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): G06F11/34
CPCG06F11/3476
Inventor 李清宇任莉强沈俊杰
Owner BEIJING JINGDONG SHANGKE INFORMATION 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