Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 513 Bytes

readme.md

File metadata and controls

18 lines (13 loc) · 513 Bytes

Webserver Log Analyzer

This is a small query tool for webserver logs. By formatting the log entries as prolog facts, we can use the logs as a database.

Nginx configuration

  1. Enable the GeoIP module
  2. Create a log format
log_format prolog 'l("$server_name", "$remote_addr", $status, "$time_local", "$request_method", "$request_uri", "$geoip_country_code").';
  1. Use the log format
access_log /var/log/nginx/access.log prolog;