954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse 1and1 Log files

What I want to do is to take the previous day's logfile, strip out the search phrases and insert these into a mysql db.

Currently using Deep Log Analyser to manually lift the search terms, but I's appreciate some pointers as to how the parsing could be done by a script running overnight.

Suggestions are to where to start?

eman neercs
Newbie Poster
11 posts since Nov 2009
Reputation Points: 9
Solved Threads: 0
 

It all depends, but Perl would be a suitable programming language to knock up a quick and dirty script that will pattern match and insert into your database.

See here for opening file handles:
See here for regular expressions - (Formulate these in order to match the strings you are interested in).
See here for a MySQL database interface in Perl:

There is plenty of information out there. Let me know if you need any help.
Cheers,
ns

nonshatter
Posting Whiz
377 posts since Nov 2009
Reputation Points: 39
Solved Threads: 63
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: