NGINX Extractor
The Nginx parser is a crucial tool for analyzing Nginx logs. It enables information to be extracted and processed, allowing security events such as requests, accesses and error messages to be effectively monitored and evaluated.
Configuration of the NGINX extractors
Edit the configuration file: Open the file
/etc/nginx/nginx.conf
in a text editor.Add log format: In the http section, add the following log format ngs:
Configure access and error logs: Configure the access and error logs to send to a relay server via syslog:
Replace <relayIP> and <relayPort> with the corresponding values of your relay server.
Define the error log level: The error log level values are: info, notice, warn, error, crit, alert, emerg. Please note that the number of logs recorded decreases as the error log level increases.
Check the configuration: Execute the nginx -t command to ensure that the configuration is valid. Please note that not all log parameters are always available.
Apply configuration: Use service nginx reload to load the updated configuration.
Relay configuration: Make sure that "nginx" is selected as the parser for the relay.
Last updated