Facilitates replaying of Apache files in Common Log and Combined Log format
Project description
apache-replay python package
Summary
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.
Features
- 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
Installation is normal:
pip install apache-replay
Usage
Generate usage with:
apache-replay --help
Examples
Count the number of requests in November of 2018:
apache-replay --player count https://site.com/ /var/logs/httpd/access_log.2018-11*
Replay those same logs (only GET, HEAD, OPTIONS) against qa-mysite.com:
apache-replay https://qasite.com/ /var/logs/httpd/access_log.2018-11*
Only replay 2000 log entries from that file
apache-replay --count 2000 https://qasite.com/ /var/logs/httpd/access_log.2018-11*
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apache-replay-0.0.3.tar.gz
.
File metadata
- Download URL: apache-replay-0.0.3.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f486f53416df30f9cd58c17982e55f4d9da5652bcb4c37f145c8b1f163a420bc |
|
MD5 | 83aee0166285cd8a9c51ff131aaf7cd4 |
|
BLAKE2b-256 | 82598c0efaa78959cad23e25e83d2a33acdd7a43b0d5baf35ed06090a96a4644 |
Provenance
File details
Details for the file apache_replay-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: apache_replay-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57077d92b14b0d3b34f4bd0bb351440f920183051dcdd63c1616fdfecf9216af |
|
MD5 | 008a7a69bfa3c7ce9576f1ed579b0aec |
|
BLAKE2b-256 | 66cfa49dfb71e2a000779220b142e38ddbeb5193f62661510cf6d7c6939d566e |