Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alvaro Videla's Blog:
Integrating Facebook Hive with Symfony
Feb 02, 2009 @ 22:09:58

Alvaro Videla submitted a new tutorial he's written up on integrating of a powerful parser (Hive with the logging of a popular PHP MVC framework - symfony.

The Hive project allows to load a logs file and then filter it with SQL like commands. Hive is more than this raw description, you can read more about it here. My idea was to adapt the file logging format of symfony to make easy to import those files inside a Hive database.

He shows how he created the tables to store the results, parsing the logs via a delimiter and terminator, and dropping the information into the table. This can then be integrated directly into the framework to load the log file up, parse it dynamically and display out (with a little bit more data, like a date) attached.

tagged: facebook hive search log file symfony integrate

Link:


Trending Topics: