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

Flow acquisition and analysis method based on nginx

An analysis method and flow collection technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of low utilization rate of historical logs and high CPU resource consumption, and achieve the effect of fast calculation speed and rich API interface.

Pending Publication Date: 2020-04-28
江苏艾佳家居用品有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A large storage space is required for storing logs, and a high CPU resource consumption is required for statistical analysis
Historical log utilization is low

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
  • Flow acquisition and analysis method based on nginx
  • Flow acquisition and analysis method based on nginx

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail:

[0032] 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.

[0033] The purpose of the present invention is to overcome the shortcoming and deficiency of prior art, based on nginx software itself, monitor nginx log by bypass monitoring mode, obtain data then calculate, analyze in the log processing stage of Nginx.

[0034] The nginx log records information such as the access address, the ret...

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 flow acquisition and analysis method based on nginx, and relates to the technical field of network data analysis. The method comprises three parts of nginx data acquisition,data calculation and analysis and data query. The method comprises: the Nginx importing the collected code, the imported code needing to recompile an nginx source code, using a-add-model = directory,the directory being a specific folder name, and the source code being the source code of the method under the folder; starting an acquisition function in the Nginx main configuration file; restartingthe Nginx service; reading one log each time, and adding 1 to the total number of accesses; according to a http state code recorded in the log; step 6, according to the numerical value of the field ofbytes_sent bytes_received recorded in the log format, acquiring data size sent and received in each access; acquiring total sending and receiving flow, monitoring an nginx log through a bypass monitoring mode on the basis of nginx software, acquiring data in an Nginx log processing stage, and then calculating and analyzing the data.

Description

technical field [0001] The invention relates to the technical field of network data analysis, in particular to an nginx-based flow collection and analysis method. Background technique [0002] nginx is a web service software with the largest market share in 2019. Many companies, especially e-commerce companies, are using nginx. Many domain names (more than 20) are often configured in an nginx software. How to know whether it is normal for users to access these domain names has become an important indicator for judging business stability. [0003] The traffic collection and analysis of nginx is the solution to this problem. It can obtain the number of domain name visits, traffic and status of the current nginx configuration in real time. and perform calculations and statistics. [0004] Most of the existing traffic collection and analysis is based on the log level, and a large number of logs need to be collected, stored in a unified manner, and regularly analyzed and dis...

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
IPC IPC(8): H04L12/26H04L12/24
CPCH04L43/12H04L43/14H04L43/04H04L41/0813H04L41/069
Inventor 王冲周甜邓志伟刘镇山
Owner 江苏艾佳家居用品有限公司
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