Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for sorting log data

A data sorting and logging technology, applied in the computer field, can solve the problems such as the huge amount of data that cannot be applied to log files and the difficulty of random reading of log files, so as to reduce maintenance costs and improve efficiency.

Active Publication Date: 2018-02-23
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF13 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: when the data volume of the log log is huge, random reading of the log log will become very difficult, and only sequential line-by-line reading can guarantee The performance of the read operation, although the operation of reading log data in this way is simple, it cannot be applied to the situation where the amount of data in the log file is huge

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0018] Such as figure 1 As shown, it is a flowchart of a method for sorting log data in an embodiment of the present invention, including:

[0019] 101. For each minimum time unit in the sorting cycle, create an intermediate storage file corresponding to each minimum time unit in order of time, and obtain a set of intermediate storage files;

[0020] 102. Obtain a log file, sequentially read each piece of log data in the log file, and perform the following op...

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 provides a method and device for sorting log data. The method comprises the steps that for each minimum time unit in the sorting period, intermediate storage files corresponding to the minimum time units respectively are sequentially created according to the time sequence, and an intermediate storage file set is obtained; a log file is obtained, and the log data inthe log file is read sequentially, wherein the following operations are conducted on each log data that the record time of the current log data is read through analysis, the intermediate storage filecorresponding the minimum time unit where the analyzed record time belongs is determined from the intermediate storage file set, and the read current log data is stored in the determined intermediatestorage file; the intermediate storage files are sequentially read according to the time sequence, and the log data in the read intermediate storage files is sequentially stored in a log storage file.By means of the method, a huge quantity of data can be quickly and easily sorted.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for sorting log data. Background technique [0002] With the rapid development of computer technology, people's lives are increasingly dependent on various Internet application products, and a large amount of data will be generated when users use Internet application products. In order to ensure network security during the operation of Internet application products, log Data played an important role. For example, log data from various operating systems, applications, devices, and security products can help Internet product operators discover and avoid disasters, and find the root cause of security incidents. Therefore, Internet product operators need to analyze a large amount of log data Read analysis. In the prior art, the storage method of log data is often sorted and stored according to time order, so that the log data is roughly ordered logs. For examp...

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): G06F17/30
CPCG06F16/16G06F16/172G06F16/1815
Inventor 王嘉伟
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products