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

[BP 7.1.1 MB-51534] - Log function scope for lifecycle operation audit logs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.2
    • 7.1.0
    • eventing
    • Enterprise Edition 7.1.0 build 2506
    • Untriaged
    • Centos 64-bit
    • 1
    • No

    Description

      STEPS

      • Create 2 eventing functions - src_bucket/_default/abcd and src_bucket/src_bucket/abcd.
      • Deploy both functions.
      • Enable audit logging.
      • Pause both functions.

      OBSERVATION
      No way to distinguish between the 2 events via audit logs.

      {"context":"Pause function","description":"Request to pause eventing function","error":null,"id":32791,"local":{"ip":"10.112.190.102","port":"8096"},"method":"POST","name":"Pause Function","real_userid":{"domain":"builtin","user":"Administrator"},"remote":{"ip":"10.112.190.101","port":"41327"},"request":null,"timestamp":"2022-03-21T20:47:45.293-07:00","url":"/api/v1/functions/abcd/pause"}
      {"context":"Pause function","description":"Request to pause eventing function","error":null,"id":32791,"local":{"ip":"10.112.190.102","port":"8096"},"method":"POST","name":"Pause Function","real_userid":{"domain":"builtin","user":"Administrator"},"remote":{"ip":"10.112.190.101","port":"41327"},"request":null,"timestamp":"2022-03-21T20:47:48.210-07:00","url":"/api/v1/functions/abcd/pause"}
      

      No such issues via system event logging.

      {
            "component": "eventing",
            "uuid": "eaa2236f-af28-46c8-8cd1-2e59871593ae",
            "timestamp": "2022-03-22T03:48:03.455Z",
            "sub_component": "eventing-producer",
            "severity": "info",
            "event_id": 4111,
            "description": "Function paused",
            "extra_attributes": {
              "appName": "src_bucket/_default/abcd"
            },
            "node": "10.112.190.102",
            "otp_node": "ns_1@10.112.190.102"
          },
          {
            "component": "eventing",
            "uuid": "676149ca-d837-4ba4-b2cf-34bb620d3bcd",
            "timestamp": "2022-03-22T03:48:06.866Z",
            "sub_component": "eventing-producer",
            "severity": "info",
            "event_id": 4111,
            "description": "Function paused",
            "extra_attributes": {
              "appName": "src_bucket/src_bucket/abcd"
            },
            "node": "10.112.190.102",
            "otp_node": "ns_1@10.112.190.102"
          }
      

      Attachments

        Issue Links

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

          Activity

            People

              sujay.gad Sujay Gad
              jeelan.poola Jeelan Poola
              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