Asterisk Full Log Parser

Hello @all
I’m looking for a php script to parse the full log file.
In details I want to use caller_id an input parameter for this script and the output should be a list of rows/events for this call.
Can anyone help me?