feature: Added Syslog hook for ASA support (#7268)

* Added limited support for ASA using emblem logging

* Updated documentation

* Updated ASA support to cover regular and emblem logging

* Gave the variable a more suitable name

* Removed debug output
This commit is contained in:
deepseth
2017-09-01 18:37:01 +01:00
committed by Neil Lathwood
parent 6077d3a3db
commit 809c9ea591
3 changed files with 12 additions and 3 deletions

View File

@@ -35,4 +35,7 @@ if (preg_match('/(SYS-(SW[0-9]+-)?5-CONFIG_I|VSHD-5-VSHD_SYSLOG_CONFIG_I): Confi
} elseif (preg_match('/GBL-CONFIG-6-DB_COMMIT : Configuration committed by user \\\\\'(?P<user>.+?)\\\\\'..*/', $msg, $matches)) {
$username = $matches['user'];
oxidized_node_update($hostname, $username, $msg);
} elseif (preg_match('/ASA-(config-)?5-111005: (?P<user>.+) end configuration: OK/', $msg, $matches)) {
$username = $matches['user'];
oxidized_node_update($hostname, $username, $msg);
}