$ps2_lines++;
        continue;
    }
    // status - closuer
    // 125965956955.03, Dec 01 04:26:09 symfony [info] {sfResponse} send status "HTTP/1.0 200 OK"
    if (preg_match("/([\\d\\.]*), ([a-zA-Z\\d\\- \\:]*) symfony.*status \"HTTP\\/[\\d\\.]* ([\\d]*)/s", $s, $matches)) {
        $session_id = $matches[1];
        $api_e = getApiEvent($session_id);
        if (!$api_e) {
            continue;
            // this is actuall an error - it should happen very few times - maybe at the beginning of a day
        }
        $api_e->result = $matches[3];
        // update the api_event and unset
        $api_e->log();
        unsetApiEvent($session_id);
        continue;
    }
    $ignored_lines++;
}
$partial_events = count($open_events);
//
foreach ($open_events as $ev) {
    $ev->result = "???";
    // didn't have an ending line
    $ev->log();
}
fprintf($stderr, PHP_EOL . "total_lines [{$total_lines}] ps2_lines [{$ps2_lines}] ignored_lines [{$ignored_lines}] partial_events [{$partial_events}]" . PHP_EOL);
$end = microtime(true);
fprintf($stderr, "Total time [" . ($end - $start) . "]");
fclose($stderr);
        if (!$api_e) {
            continue;
        }
        // this is actuall an error - it should happen very few times - maybe at the beginning of a day
        $api_e->exception = $matches[3];
        // update the api_event and unset
        continue;
    }
    // 2009-11-29 04:24:16 [520451400] [API] [global] DEBUG: <------------------------------------- api_v3 -------------------------------------
    if (preg_match("/([\\d\\- \\:]*) \\[([\\d]*)].*<-------/", $s, $matches)) {
        $api_e = getApiEvent($matches[2]);
        if (!$api_e) {
            continue;
        }
        // unset
        unsetApiEvent($matches[2]);
        continue;
    }
}
$partial_events = count($open_events);
//
foreach ($open_events as $ev) {
    $ev->result = "???";
    // didn't have an ending line
    $ev->log();
}
fprintf($stderr, PHP_EOL . "total_lines [{$total_lines}] ps3_lines [{$ps3_lines}] ignored_lines [{$ignored_lines}] partial_events [{$partial_events}]" . PHP_EOL);
$end = microtime(true);
fprintf($stderr, "Total time [" . ($end - $start) . "]");
fclose($stderr);
fclose($f);