Human readable program, and append event ID to message

This commit is contained in:
Ultra2D
2016-03-04 16:14:47 +01:00
parent ec857ebfa5
commit f969317863

View File

@@ -111,6 +111,15 @@ function process_syslog($entry, $update) {
}
unset($matches);
}
else if ($os == 'procurve') {
$matches = array();
if (preg_match('/^(?P<program>[A-Za-z]+): {2}(?P<msg>.*)/', $entry['msg'], $matches)) {
$entry['msg'] = $matches['msg']. " [". $entry['program']. "]";
$entry['program'] = $matches['program'];
}
unset($matches);
}//end if
if (!isset($entry['program'])) {