From d74c37ab0ec433ae1573717ea4da3ea99cbcd7c6 Mon Sep 17 00:00:00 2001 From: Ultra2D Date: Sat, 5 Mar 2016 12:12:00 +0100 Subject: [PATCH] Syslog Linux OpenVPN pattern does not match example, remove it --- includes/syslog.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/syslog.php b/includes/syslog.php index 307f8e0da..66abef21e 100644 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -85,12 +85,9 @@ function process_syslog($entry, $update) { } else if ($os == 'linux') { $matches = array(); - // User_CommonName/123.213.132.231:39872 VERIFY OK: depth=1, /C=PL/ST=Malopolska/O=VLO/CN=v-lo.krakow.pl/emailAddress=root@v-lo.krakow.pl - if ($entry['facility'] == 'daemon' and preg_match('#/([0-9]{1,3}\.) {3}[0-9]{1,3}:[0-9]{4,} ([A-Z]([A-Za-z])+( ?)) {2,}:#', $entry['msg'])) { - $entry['program'] = 'OpenVPN'; - } // pam_krb5(sshd:auth): authentication failure; logname=root uid=0 euid=0 tty=ssh ruser= rhost=123.213.132.231 + // pam_krb5(sshd:auth): authentication failure; logname=root uid=0 euid=0 tty=ssh ruser= rhost=123.213.132.231 // pam_krb5[sshd:auth]: authentication failure; logname=root uid=0 euid=0 tty=ssh ruser= rhost=123.213.132.231 - else if (preg_match('#^(?P([^(:]+\([^)]+\)|[^\[:]+\[[^\]]+\])) ?: ?(?P.*)$#', $entry['msg'], $matches)) { + if (preg_match('#^(?P([^(:]+\([^)]+\)|[^\[:]+\[[^\]]+\])) ?: ?(?P.*)$#', $entry['msg'], $matches)) { $entry['msg'] = $matches['msg']; $entry['program'] = $matches['program']; } // SYSLOG CONNECTION BROKEN; FD='6', SERVER='AF_INET(123.213.132.231:514)', time_reopen='60'