The old load included the leading %. Stick with that behavior.

This commit is contained in:
Tony Murray
2016-03-03 00:03:17 -06:00
parent ea491c4a06
commit f52954f8a4
+1 -1
View File
@@ -59,7 +59,7 @@ function process_syslog($entry, $update) {
* %FACILITY-SUBFACILITY-SEVERITY-MNEMONIC: Message-text
*/
$matches = array();
if(preg_match('/^%?(?<program>[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?<msg>.*)/', $entry['msg'], $matches)) {
if(preg_match('/^(?<program>%?[A-Za-z\d\-_]+(:[A-Z]* %[A-Z\d\-_]+)?): ?(?<msg>.*)/', $entry['msg'], $matches)) {
$entry['program'] = $matches['program'];
$entry['msg'] = $matches['msg'];
}