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');