Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Facilitates replaying of Apache files in Common Log and Combined Log format

Project description

apache-replay python package


Many pieces of software exist that can take an existing Apache httpd (or other) logs in the Common Log format or Combined log format, parse them, and then do something with them. I find it convenient to be able to do this with pure Python, using a package that can be installed from pip.


  • Replay requests against a new server
  • Count log entries
  • Filter based on start and end dates
  • Print logs with a new canonical server URL


Installation is normal:

pip install apache-replay


Generate usage with:

apache-replay --help


Count the number of requests in November of 2018:

apache-replay --player count /var/logs/httpd/access_log.2018-11*

Replay those same logs (only GET, HEAD, OPTIONS) against

apache-replay /var/logs/httpd/access_log.2018-11*

Only replay 2000 log entries from that file

apache-replay --count 2000 /var/logs/httpd/access_log.2018-11*


MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for apache-replay, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size apache_replay-0.0.3-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size apache-replay-0.0.3.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page