A logging method based on openresty
A recording method and log technology, which is applied in the field of information security, can solve problems such as log loss, large number of log files, and cumbersome deduplication, and achieve the effect of alleviating disk pressure and improving server performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] combined with figure 1 As shown, a logging method based on openresty, the method includes the following steps:
[0026] Step 1: Define a custom-named memory space in the shared memory API in openresty, define the memory size according to your needs, call the timer through the timer interface of openresty, and set 1s when storing data in the shared memory Expiration time, set the timer to read data from the shared memory every second;
[0027] Step 2: When the processing of the first request reaches the logging stage, according to the defined log format, all the fields to be recorded will be obtained by the built-in variables of Nginx, and all the fields to be recorded will be spliced into a string in the form of key-value;
[0028] Step 3: Use the string obtained in step 2 as the index, and the number of records as value, and store the key-value pair in the shared memory defined in step 1;
[0029] Step 4: When the subsequent request comes, generate the index key va...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com