Importing Apache Access logsDeveloped In: bash — Contributed by: Shantanu OakChange the apache config file to save the access log in a specified format and then import the text file into database.
bash
Strata can easily handle the data size, but the format is enough to give any software fits. So, we wrote a quick Apache log parser extension that makes it really simple to just point the software to your Apache log and import it. The resulting table is nicely formatted and everything is ready to go. university degree online | online degree program | buy degree LOAD DATA INFILE '/var/log/httpd/access_log' IGNORE INTO TABLE access_log FIELDS TERMINATED BY ' ' ENCLOSED BY '"' # The load data infile statement that is generated automatically. |
VotesWatches1 members are watching this tool
You must be logged in to track this tool.
Provide Feedback
You must be logged in to comment
|
The reason he asked the question was that our Apache log file that day was over 10 times the size of the file from the previous day. It sure looked like the server was getting hammered.
affordable degree | online phd degrees