diff --git a/html/includes/table/syslog.inc.php b/html/includes/table/syslog.inc.php index 11c2b9ce73..33bf64db33 100644 --- a/html/includes/table/syslog.inc.php +++ b/html/includes/table/syslog.inc.php @@ -17,6 +17,11 @@ if (is_numeric($_POST['device'])) { $param[] = $_POST['device']; } +if ($_POST['priority']) { + $where .= ' AND S.priority = ?'; + $param[] = $_POST['priority']; +} + if (!empty($_POST['from'])) { $where .= ' AND timestamp >= ?'; $param[] = $_POST['from']; @@ -64,7 +69,8 @@ $sql = "SELECT S.*, DATE_FORMAT(timestamp, '".$config['dateformat']['mysql']['co foreach (dbFetchRows($sql, $param) as $syslog) { $dev = device_by_id_cache($syslog['device_id']); $response[] = array( - 'timestamp' => $syslog['date'], + 'priority' => generate_priority_icon($syslog['priority']), + 'timestamp' => '
Datetime | Hostname | Program | @@ -67,6 +68,21 @@ var grid = $("#syslog").bootgrid({ ""+ ""+ "
---|