Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4364

Allow management audit logging to write JSON log messages to stdout

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Logging, Management
    • None

    Description

      Management audit logging can already log messages in JSON format. However these can only be written to a file or a syslog server. We need the ability for these messages to be written to stdout. This is useful for containers like OpenShift which consume the stdout data to feed to log aggregators.

      Example Output:

      2019-03-08 13:29:49 - {
          "type" : "core",
          "r/o" : false,
          "booting" : false,
          "version" : "8.0.1.CR1-SNAPSHOT",
          "user" : "$local",
          "domainUUID" : null,
          "access" : "NATIVE",
          "remote-address" : "localhost/127.0.0.1",
          "success" : true,
          "ops" : [{
              "address" : [
                  {
                      "subsystem" : "logging"
                  },
                  {
                      "json-formatter" : "json"
                  }
              ],
              "operation" : "remove",
              "operation-headers" : {
                  "caller-type" : "user",
                  "access-mechanism" : "NATIVE"
              }
          }]
      }
      

      Note for a log aggregator the complex ops attribute can be an issue. We may need to find a better way to log that. If possibly maybe convert it into a CLI command.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: