I parse logfile lines to generate timestamp-keyed records. Send an instance of me to your processes.

Instantiate me with a dict of matchers (ipMatcher, uaMatcher, and/or botMatcher). If you want to exclude any HTTP codes, list them with exclude.

Method dtFactory Undocumented
Method parseDatetimeBlock Returns a datetime object for the date & time in the supplied text string
Method setVhost Undocumented
Method __call__ Parses an individual logfile line and returns a list:
def dtFactory(self, *args):
Undocumented
def parseDatetimeBlock(self, text):

Returns a datetime object for the date & time in the supplied text string

def setVhost(self, vhost):
Undocumented
def __call__(self, line):

Parses an individual logfile line and returns a list:

[vhost, Requestor IP address, datetime, url, http, referrer, UA]

Lowercase is forced for vhost, but nothing else.

API Documentation for logalyzer, generated by pydoctor at 2021-09-18 08:41:09.