mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
added specific syslog rule for misconfiguration
This commit is contained in:
@@ -127,6 +127,7 @@ reports:
|
||||
# hijack: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
|
||||
# newprefix: "++BGPalerter-4-${type}: ${summary}|${prefix}|${description}|${asn}|${newprefix}|${neworigin}|${earliest}|${latest}|${peers}"
|
||||
# visibility: "++BGPalerter-5-${type}: ${summary}|${prefix}|${description}|${asn}|${earliest}|${latest}|${peers}"
|
||||
# misconfiguration: "++BGPalerter-3-${type}: ${summary}|${asn}|${prefix}|${earliest}|${latest}"
|
||||
|
||||
|
||||
|
||||
|
@@ -137,6 +137,7 @@ export default class Report {
|
||||
break;
|
||||
|
||||
case "misconfiguration":
|
||||
context.asn = content.data[0].matchedRule.asn.toString();
|
||||
content.data
|
||||
.map(i => JSON.stringify(i.matchedMessage.path.getValues().slice(1)))
|
||||
.forEach(path => {
|
||||
|
Reference in New Issue
Block a user