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

NGINX log analysis method and system

An analysis method and analysis system technology, which is applied in the field of NGINX log analysis method and system, can solve the problems of poor analysis efficiency and lack of simplicity of operation, and achieve the effect of realizing automation, reducing the process of manual analysis of log structure, and improving analysis efficiency

Active Publication Date: 2022-07-29
YANTAI JIERUI NETWORK TRADING +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the development of Internet technology, NGINX, as a high-performance HTTP and reverse proxy web server, is used more and more widely. NGINX log analysis is conducive to the statistics of system service data and rapid troubleshooting of system services. Currently, for NGINX log configuration The analysis of the files is based on the NGINX log configuration file to manually analyze the NGINX log format, manually assemble the execution statement, lack of simplicity in operation, and there is a problem of poor analysis efficiency caused by manual processing

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
  • NGINX log analysis method and system
  • NGINX log analysis method and system
  • NGINX log analysis method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 1 A schematic flowchart of an NGINX log analysis method of the present invention, such as figure 1 As shown, an NGINX log analysis method includes:

[0048] Step 101: Obtain the path of the NGINX log configuration file.

[0049] Wherein, before step 101, it also includes:

[0050] The user enters the NGINX log configuration file path through a browser.

[0051] Wherein, step 101 specifically includes:

[0052] The user enters the NGINX log configuration path through the client browser, and receives the path of the NGINX configuration file nginx.conf entered by the user.

[0053] Step 102: Read NGINX log configuration information according to the NGINX log configuration file path.

[0054] Wherein, step 102 specifically includes:

[0055] Obtain the NGINX log configuration file according to the NGINX log configuration file path;

[0056] Obtain the log format configuration in the NGINX log configuration file by using preset keywords;

[0057] By matching t...

Embodiment 2

[0071] In this embodiment, an NGINX log analysis method of the present invention is used to analyze and obtain the access information of the response status code of the system 404 . The method includes the following steps:

[0072] Step1: Receive the NGINX configuration file nginx.conf path entered by the user.

[0073] Step 2: Read the NGINX log configuration according to the path entered by the user in the NGINX log configuration file nginx.conf. Intercept the NGINX log configuration content according to the NGINX log configuration keywords, analyze the NGINX log configuration, confirm the log format and order, and convert it into a LINUX execution script.

[0074] Step 3: Obtain the location of the NGINX log file according to the NGINX log configuration keyword, extract the NGINX log to be analyzed, execute the LINUX execution script converted in Step 2, and save the execution result.

[0075] Step 4: Analyze and obtain the system service data, import the execution result...

Embodiment 3

[0085] image 3 A schematic diagram of the structure of an NGINX log analysis system of the present invention, such as image 3 As shown, an NGINX log analysis system includes:

[0086] The log configuration file path obtaining module 201 is used to obtain the NGINX log configuration file path;

[0087] A log configuration information reading module 202, configured to read NGINX log configuration information according to the NGINX log configuration file path;

[0088] The NGINX log format assembly execution script determining module 203 is configured to determine the NGINX log format assembly execution script according to the NGINX log configuration information;

[0089] The NGINX log format assembly execution script execution module 204 is used for extracting the part to be analyzed in the NGINX log, and adopts the NGINX log format assembly execution script to format the to-be-analyzed part and save the execution result after the format conversion;

[0090] An analysis res...

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 relates to an NGINX log analysis method and system, and relates to the field of NGINX log analysis. The method comprises the steps that an NGINX log configuration file path is obtained; reading NGINX log configuration information according to the NGINX log configuration file path; determining an NGINX log format assembly execution script according to the NGINX log configuration information; extracting a to-be-analyzed part in the NGINX log, performing format conversion on the to-be-analyzed part by adopting an NGINX log format assembly execution script, and storing an execution result after format conversion; determining an analysis result of the to-be-analyzed part according to the execution result; an analysis result is displayed through a display. According to the method, the NGINX log analysis efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of NGINX log processing, in particular to an NGINX log analysis method and system. Background technique [0002] With the development of Internet technology, NGINX, as a high-performance HTTP and reverse proxy web server, is more and more widely used. NGINX log analysis is conducive to the statistics of system service data and rapid troubleshooting of system services. The analysis of the files is based on the manual analysis of the NGINX log format based on the NGINX log configuration file, and the manual assembly and execution of the statement is lack of simplicity in operation, and there is a problem of poor analysis efficiency due to manual processing. SUMMARY OF THE INVENTION [0003] The purpose of the present invention is to provide an NGINX log analysis method and system, which improves the efficiency of NGINX log analysis. [0004] For achieving the above object, the present invention prov...

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): H04L41/14H04L41/0631H04L41/069H04L41/0253G06F9/455G06F40/151
CPCH04L41/14H04L41/0631H04L41/069H04L41/0253G06F9/45512G06F40/151
Inventor 王涛杨斌刘捷曾繁诚赵影
Owner YANTAI JIERUI NETWORK TRADING
Features
  • Generate Ideas
  • 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