Skip to content

Metadrop/http-logs-parser

Repository files navigation

Description

This project eases http logs parsing with the great GoAccess tool.

It is compound of:

  • A python script to massage arguments and invoke goaccess
  • A Dockerfile to package all dependencies together
  • A wrapper script (bash) to run via docker

It supports declaring custom log formats. See log-formats.yaml.

Run via docker

./logs-parser /path/to/logfile combined

Run python script directly

Ensure dependencies are installed.

For Debian/Ubuntu:

apt-get install pipx docker-buildx-plugin
pipx install pipenv
pipenv install --deploy
pipenv run src/main.py --log-file=/path/to/logfile --log-format=acquia --report-file=reports/report.html

About

Wrapper of goaccess to ease log files parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages