Module parse
source code
Plan: Parse: ip,bytesTx,referrer,statuscode,user-agent datetime *
Insert:
Features: possible broken links request flooding page's hits by weeks
page's hits throughout the day hence possible audience
|
Parser
This class provides functionality to parse the server log file and
insert it into sqlite database.
|
|
adapt_datetime(ts)
Date time adapter for databse |
source code
|
|
|
dbfile()
retutn: File path of the database file |
source code
|
|
|
logfile()
return: File path of the server log file |
source code
|
|
|
resetDb()
This function deletes the previously created table from the database
and creates a fresh new table having name serverlog |
source code
|
|
|
__dbfilename__ = ' test.db '
|
|
__logfilename__ = ' access_log '
|
|
__package__ = None
|