Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-50641

SystemEventLogs:Hostname info displayed in single node cluster is not fully useful

    XMLWordPrintable

Details

    Description

      Steps:

      Install couchbase-server and intialize a single node cluster

      Observation:

      After this, all events have values as follows,

      "node": "cb.local" and "otp_node": "ns_1@cb.local"

      Expectation:

      Instead of cb.local, it would be better to have actual hostname/ip in the node info.

      "events": [
          {
            "timestamp": "2022-01-27T10:32:22.451Z",
            "uuid": "c681779d-3bb3-f262-3dc6-97ddab4ae2eb",
            "event_id": 10243,
            "component": "views",
            "description": "view engine settings changed",
            "severity": "info",
            "extra_attributes": {
              "section": "security",
              "key": "audit",
              "old_value": "undefined",
              "new_value": "[{audit_enabled,false},{disabled_users,[]},{enabled_events,[]}]"
            },
            "node": "cb.local",
            "otp_node": "ns_1@cb.local"
          },
          {
            "timestamp": "2022-01-27T10:32:22.471Z",
            "uuid": "f58e11b1-1614-21c4-297f-91d32c43250f",
            "event_id": 10243,
            "component": "views",
            "description": "view engine settings changed",
            "severity": "info",
            "extra_attributes": {
              "section": "httpd",
              "key": "extra_headers",
              "old_value": "undefined",
              "new_value": "[{\"X-Content-Type-Options\",\"nosniff\"},\n {\"X-Frame-Options\",\"DENY\"},\n {\"X-Permitted-Cross-Domain-Policies\",\"none\"},\n {\"X-XSS-Protection\",\"1; mode=block\"}]"
            },
            "node": "cb.local",
            "otp_node": "ns_1@cb.local"
          },
          ..
          ..
          ..
          {
            "timestamp": "2022-01-27T10:32:23.453Z",
            "event_id": 18,
            "component": "ns_server",
            "description": "Master selected",
            "severity": "info",
            "node": "cb.local",
            "otp_node": "ns_1@cb.local",
            "uuid": "cdbe64f3-3fcd-4596-8e97-1d2a01ed3e90",
            "extra_attributes": {
              "new_master": "ns_1@cb.local"
            }
          },

      Note:

      This behavior changes once we add a new node into the cluster

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty