CommonLog2SQLite Code
Brought to you by:
demanuel
File | Date | Author | Commit |
---|---|---|---|
LICENSE | 2013-07-25 |
![]() |
[8b4f6b] Initial commit |
README.md | 2013-07-25 |
![]() |
[f37da0] Readme Markup fix |
commonLogToSQLite.pl | 2013-07-25 |
![]() |
[70db65] First release |
Converts an apache common log to a sqlite database.
The easiest way is just to:
perl commonLogToSQLite.pl LOG_FILE
This will create a common_log.db file. This file is a sqlite file containing all the requests
from the LOG_FILE parsed and inserted.
The more complexed way:
perl commonLogToSQLite.pl --batch 100000 --db my_sqlite.db LOG_FILE
This does the same as the previous example, but it will create a database named my_sqlite.db and
it will perform the insertions on the database using batches of 100000 requests.
If the database doesn't exists it will created, otherwise
the requests from the log will be inserted in the database.
The database will contain only one table. The table name is REQUESTS:
Please e-mail me at demanuel@ymail.com