Skip to content

janssen-io/webserver-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

Analyzer for webserver logs in Prolog.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages