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

Method for classifying and analyzing massive logs by applying Apache Spark

A log, massive technology, applied in the information field, can solve the problems of poor iterative data processing performance, lack of overall logic, and difficult to use, and achieve the effect of improving log parsing speed, parsing accuracy, and usage efficiency

Inactive Publication Date: 2016-12-14
BEIJING VRV SOFTWARE CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the common parsing method for log files is to use MR to analyze the log file data, but MR has many defects: the abstraction level is low, and it needs to be manually written to complete the code, which is difficult to use; it only provides two operations, Map and Reduce, to express Insufficient power; processing logic is hidden in the code details, there is no overall logic; intermediate results are also placed in the HDFS file system; ReduceTask needs to wait for all MapTasks to be completed before starting; the delay is high, only applicable to Batch data processing, for interactive Data processing, insufficient support for real-time data processing; relatively poor performance for iterative data processing; not suitable for describing complex data processing processes

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 for classifying and analyzing massive logs by applying Apache Spark
  • Method for classifying and analyzing massive logs by applying Apache Spark
  • Method for classifying and analyzing massive logs by applying Apache Spark

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0021] figure 1 A flow chart of a method for classifying and parsing massive logs using Apache Spark of the present invention is shown. First, obtain important operating parameters, including parameters such as running time, number of running distributed nodes, and total log running volume. value. Secondly, import the log files into the Spark environment, select the node number file, read one of the log files into the decision tree classifier, and analyze the file name of the log file and the description field of the log file based on the pattern matching command of Scala. Take the key fields, including host na...

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 method for classifying and analyzing massive logs by applying Apache Spark. The method comprises following steps: selecting log files and importing the log files in an Apache Spark environment by means of a log data interface; performing entry analysis on file names and description fields of the log files and reading key fields; classifying the key fields and forming classifying information of the log files according to a decision tree classifier; according to a Hive table structure, matching required information from the log files based on Scala to form data bars and importing the data bars into the Hive table; reading data from the Hive table and calculating status information; analyzing the frequency and the amplitude of the status to form a final data status report. The method is easy to apply and has advantages such as larger analysis speed and higher analysis accuracy.

Description

technical field [0001] The invention relates to the field of information technology, and more specifically relates to a method for classifying and analyzing massive logs using Apache Spark. Background technique [0002] With the rapid development of information technology, in order to record the working conditions of applications and systems, a large number of work logs must be generated. These log data not only include application and system status but also error information. By collecting and analyzing log data and digging out useful status and error information, system managers can learn the running status of applications and systems in a timely and accurate manner. [0003] Applications and systems generate log files frequently, so the number of these log files can be quite large. At present, the common parsing method for log files is to use MR to analyze the log file data, but MR has many defects: the abstraction level is low, and it needs to be manually written to co...

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/1815G06F16/35
Inventor 方银春刁志刚耿星星
Owner BEIJING VRV SOFTWARE CO LTD
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