log files tend to be very large, and the typical analysis that one does on them tends to be computationally intensive.
whilst you *can* use php for these tasks, using an interpreted language for such intensive applications is hardly optimal. I would look for a compiled alternative; or, I would write my own logger to capture data in an appropriately related structure (since I know what my output needs are) and take some of the computational load off that way.