How can I edit the Facility and/or Severity values of the Vault syslog messages being received?
Steps
Using the RFC 5424 documentation as a reference -
https://www.rfc-editor.org/rfc/rfc5424.html#section-6.2.1.
Edit the relevant syslog XSL translator files and modify the number seen just after the ‘Severity=' parameter. There will be 4 in total = Critical, Error, Info and otherwise. This will also need to be done for any imported XSL translator files too.
For example, the syslog XSL translator file 'Sentinel.xsl'. We would need to edit the below line:
</xsl:call-template>|<xsl:choose><xsl:when test="Severity='Critical'">130</xsl:when><xsl:when test="Severity='Error'">131</xsl:when><xsl:when test="Severity='Info'">134</xsl:when><xsl:otherwise>128</xsl:otherwise></xsl:choose>Following this example, I would also edit the imported 'RFC5424Changes.xsl' XSL translator file, as this is referenced in the above 'Sentinel.xsl' file:
<xsl:when test="audit_record/Severity='Critical'">130</xsl:when>
<xsl:when test="audit_record/Severity='Error'">131</xsl:when>
<xsl:when test="audit_record/Severity='Info'">134</xsl:when>
<xsl:otherwise>128</xsl:otherwise>In the above example, this has been configured as below, as per the RFC 5424 documentation:
Critical = 130 (Local0 | Critical)
Error = 131 (Local0 | Error)
Info = 134 (Local0 | Info)
Other = 128 (Local0 | Emergency)