Postgrep: Difference between revisions
Jump to navigation
Jump to search
Created page with "Script for searching through Postfix log files, effectively like exigrep but for Postfix instead of Exim. == Language choice == Use Python for speed of development and cross..." |
No edit summary |
||
Line 10: | Line 10: | ||
* Automatically decompress .gz files in memory before reading. | * Automatically decompress .gz files in memory before reading. | ||
* Read all data into an SQLite 'in memory' file, which allows fast and detailed filtering. | * Read all data into an SQLite 'in memory' file, which allows fast and detailed filtering. | ||
== Questions == | |||
* How do we determine the year for each log entry? Could use current year, but what happens if we import logs from December and January? | |||
* How do we identify Postfix log entries? | |||
[[Category:Python]] | [[Category:Python]] |
Revision as of 14:21, 6 February 2019
Script for searching through Postfix log files, effectively like exigrep but for Postfix instead of Exim.
Language choice
Use Python for speed of development and cross-platform code.
Features
- Specify multiple input files, will all be read and processed.
- Automatically decompress .gz files in memory before reading.
- Read all data into an SQLite 'in memory' file, which allows fast and detailed filtering.
Questions
- How do we determine the year for each log entry? Could use current year, but what happens if we import logs from December and January?
- How do we identify Postfix log entries?