mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	* Fix issue #13146 fixed issue #13146 - Syslog :: syslog_xlate does not work with hostnames with dots * Update syslog.php
This commit is contained in:
		| @@ -53,8 +53,9 @@ function process_syslog($entry, $update) | ||||
|     } | ||||
|  | ||||
|     $entry['host'] = preg_replace('/^::ffff:/', '', $entry['host']); | ||||
|     if ($new_host = Config::get("syslog_xlate.{$entry['host']}")) { | ||||
|         $entry['host'] = $new_host; | ||||
|     $syslog_xlate = Config::get('syslog_xlate'); | ||||
|     if (! empty($syslog_xlate[$entry['host']])) { | ||||
|         $entry['host'] = $syslog_xlate[$entry['host']]; | ||||
|     } | ||||
|     $entry['device_id'] = get_cache($entry['host'], 'device_id'); | ||||
|     if ($entry['device_id']) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user