Skip to content

Instantly share code, notes, and snippets.

@Julian-Nash
Julian-Nash / apache_log_parser.py
Created October 6, 2017 18:19 — forked from rahbirul/apache_log_parser.py
Python script for parsing Apache access log
from re import compile, search
from sys import exit
from time import strptime
from datetime import datetime, timedelta, tzinfo
#change this variable to point to the location of the apache access log file
LOG_FILE_LOCATION = '/var/log/httpd/access_log'
LINES_PROCESSED = 0