1
0
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:
Massimo Candela
2019-12-18 17:04:38 +01:00
parent efaa5fcc3a
commit c46aa1de56
2 changed files with 2 additions and 0 deletions

View File

@@ -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}"

View File

@@ -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 => {