[Web] Autodiscover logs

This commit is contained in:
andryyy
2017-10-02 21:47:31 +02:00
parent 64c9691798
commit 9c37cd76e5
6 changed files with 269 additions and 2 deletions

View File

@@ -900,6 +900,14 @@ function get_logs($container, $lines = 100) {
return $data_array;
}
}
if ($container == "autodiscover-mailcow") {
if ($data = $redis->lRange('AUTODISCOVER_LOG', 0, $lines)) {
foreach ($data as $json_line) {
$data_array[] = json_decode($json_line, true);
}
return $data_array;
}
}
if ($container == "rspamd-history") {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history");