Skip to content

Instantly share code, notes, and snippets.

@f1r3starter
Created January 29, 2016 10:57
Show Gist options
  • Save f1r3starter/6b61d1ed6b4f8e271a33 to your computer and use it in GitHub Desktop.
Save f1r3starter/6b61d1ed6b4f8e271a33 to your computer and use it in GitHub Desktop.
foreach ($this->table->logFileName as $siteId => $site) {
$this->table->createTempTable();
foreach ($site['log'] as $log) {
$logFile = $this->pathToGrep . DIRECTORY_SEPARATOR . $this->grepPrefix . $log;
if (file_exists($logFile)) {
echo "parsing $logFile\n";
$this->parseLog($logFile, $siteId);
} else {
echo "file not exist $logFile\n";
}
}
$this->table->addTempIndex();
$this->table->fromTempToTable($siteId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment