robbyc Posted April 3, 2007 Share Posted April 3, 2007 Hi I need to import my apache access log into mysql I am ok inserting the data into the database but I can't get the regular expressions to pull out the correct fields correct. I used the code from http://www.php-scripts.com/php_diary/012103.php3 but some of the regular expressions don't seem to work quite right. Please help Quote Link to comment Share on other sites More sharing options...
effigy Posted April 3, 2007 Share Posted April 3, 2007 Is Apache using the standard logging format? What do you mean by "don't seem to work quite right"? What's your OS? Can you show us a snippet of what you're trying to parse? Quote Link to comment Share on other sites More sharing options...
neel_basu Posted April 15, 2007 Share Posted April 15, 2007 I need to import my apache access logIf you are doing it at your home. You may not get access to that log file in real world Situations. You should think without that file. Just post some lines (not hundreeds of lines) from your log file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.