Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-593

syslog-ng documentation wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • None
    • None
    • Documentation
    • 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));

      Attachments

        Activity

          People

            sid3windr Tom Laermans
            scurth Sascha Curth
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: