Nginx Parser

Version 1.0.0.0 (5.01 KB) by Eydrian
Parses an Nginx default log file into a Matlab structure
162 Downloads
Updated 9 Dec 2014

View License

Parses the following structure of an nginx log into a Matlab structure:
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
The Output looks as follows:
Devices =
nx1 struct array with fields:
remote_addr
remote_user
time_local
request
status
bytes_sent
http_referer
http_user_agent
gzip_ratio
method
location
protocol

Cite As

Eydrian (2024). Nginx Parser (https://www.mathworks.com/matlabcentral/fileexchange/48701-nginx-parser), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Files and Folders in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0