-
-
Save f1r3starter/6b61d1ed6b4f8e271a33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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