title: PHP: Query inside text log files instead of database records
body: <p>I have a PHP application which generates many logs.
  Since I want allow the application administrators to search logs based on parameters such as Used Id or Event Id I store whole logs in MySQL database. It reduces performance of my log table in database and I decided to move my logs to text log files instead of database.
  However I have the problem to search through log files or query them and display the result to queries of administrators.</p>
  <p>Are there any suggestion to overcome this problem? Are there any practices for this, since this seems a common problem for all application with large number of user.</p>
  <p>Are there any practices for managing logs in</p>