lars¶
lars is a small Python framework for working with httpd logs (from a variety of common servers like Apache, nginx, and IIS). The primary purpose is to provide a set of conversions to ease loading such logs into relational databases, but numerous other possibilities can be realized with a little imagination. Which is to say: lars is not a web log analyzer. However, it is a toolkit that makes it quite easy to construct your own analyzer.
Links¶
- The code is licensed under the MIT license
- The source code can be obtained from GitHub, which also hosts the bug tracker
- The documentation (which includes installation instructions and several examples) can be read on ReadTheDocs
- The build status can be observed on Travis CI
Table of Contents¶
- 1. Install
- 2. Introduction
- 3. API Reference
- 3.1. lars.apache - Reading Apache Logs
- 3.2. lars.iis - Reading IIS Logs
- 3.3. lars.csv - Writing CSV Files
- 3.4. lars.sql - Direct Database Output
- 3.5. lars.geoip - GeoIP Database Access
- 3.6. lars.datatypes - Web Log Datatypes
- 3.7. lars.progress - Rendering Progress
- 3.8. lars.dns - DNS Resolution
- 3.9. lars.cache - Cache Decorators
- 3.10. lars.exc - Base Exceptions
- 4. Change log
- 5. License