Details
-
Bug
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
None
Description
http://www.observium.org/wiki/Syslog-ng_Syslog_Server:
program("/opt/observium/syslog.php" template ("$HOST||$FACILITY||$PRIORITY||$LEVEL||$TAG||$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC||$MSG||$PROGRAM\n") template-escape(yes));
The macro "$PRIORITY" is actually an alias for $LEVEL and therefore it will add the severity word to the database field instead of the expected number.
It needs to be changed to: $LEVEL_NUM
LEVEL_NUM:
Description: The priority (also called severity) of the message, represented as a numeric value, for example, 3. For the textual representation of this value, use the $LEVEL macro. See Section PRIORITY or LEVEL for details.
program("/opt/observium/syslog.php" template ("$HOST||$FACILITY||$LEVEL_NUM||$LEVEL||$TAG||$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC||$MSG||$PROGRAM\n") template-escape(yes));