Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1108

Reports are sent to syslog with promise path prefix since 3.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Logging
    • Labels:
      None

      Description

      Consider a simple report, such as:

      <pre>
      reports:
      apache_ok::
      "Apache installation checked: OK";
      </pre>

      In 3.5 and previously, this would be sent to syslog, and result in a line such as:

      <pre>
      Jan 19 02:16:48 hostname cf3[5470]: R: Apache installation checked: OK
      </pre>

      Since 3.6, this is now sent to syslog as:

      <pre>
      Jan 19 02:16:48 hostname cf3[20151]: /default/test: R: Apache installation checked: OK
      </pre>

      (Note: "test" is the name of the bundle agent I used to test this report)

      While I don't mean to discuss here the pros and cons of the new output format (let's keep such discussion elsewhere, this bug is not about that), I would like to state that it is a "bad idea" (TM) to change the format of logs sent via syslog. I know many users that rely on various searches/greps/etc through syslog output from CFEngine to detect changes and errors.

      I think that this changed behavior should be reverted (not necessarily the commit that introduced it, as that had other reasons for being).

        Attachments

          Activity

            People

            • Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              jooooooon Jonathan Clarke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel