From 06d61fc5288b5b3b8a4fd30df5e210bdf4f7ab11 Mon Sep 17 00:00:00 2001 From: TylerSweet <45182506+TylerSweet@users.noreply.github.com> Date: Mon, 18 Feb 2019 22:57:33 -0600 Subject: [PATCH] For some reason, this is now broken. Accessing the array this way fixes it. I suspect it has something to do with the periods in the host names (#9839) --- includes/syslog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/syslog.php b/includes/syslog.php index 2c2afcaece..78f7435e65 100644 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -57,7 +57,7 @@ function process_syslog($entry, $update) } $entry['host'] = preg_replace("/^::ffff:/", "", $entry['host']); - if ($new_host = Config::get('syslog_xlate.' . $entry['host'])) { + if ($new_host = Config::get("syslog_xlate")[$entry['host']]) { $entry['host'] = $new_host; } $entry['device_id'] = get_cache($entry['host'], 'device_id');