Update the "log" API variable to have a $log->getDate($logName, $dateFrom, $dateTo) function, where you can specify a date range that you want to limit returned entries to.