Metadata-Version: 2.1
Name: apache-replay
Version: 0.0.3
Summary: Facilitates replaying of Apache files in Common Log and Combined Log format
Home-page: https://github.com/danizen/apache-replay.git
Author: Daniel Davis
Author-email: dan@danizen.net
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Software Development :: Testing :: Traffic Generation
Description-Content-Type: text/markdown; charset=UTF-8; variant=CommonMark
Requires-Dist: attrs
Requires-Dist: requests

# 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


