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

Eventing: Audit logs are flooded with duplicate events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Critical
    • 7.1.0
    • 7.1.0
    • eventing
    • Enterprise Edition 7.1.0 build 2021

    Description

      STEPS

      1. Cluster consists of single kv and data node each.
      2. Enable audit logging and select all eventing related audit events to be logged.
      3. Create and deploy 1 eventing handler.

      OBSERVATION
      audit.log file is flooded with following 4 events logged continuously with an interval of 10s.

      {"context":"List all functions","description":"Request to fetch eventing functions","error":null,"id":32795,"local":{"ip":"127.0.0.1","port":"8096"},"method":"GET","name":"List Function","real_userid":{"domain":"builtin","user":"@"},"remote":{"ip":"127.0.0.1","port":"58660"},"request":null,"timestamp":"2022-01-12T11:21:18.352Z","url":"/api/v1/functions"}
      {"context":"Request to fetch eventing function statistics","description":"Request to fetch eventing function stats","error":null,"id":32798,"local":{"ip":"127.0.0.1","port":"8096"},"method":"GET","name":"Fetch Stats","real_userid":{"domain":"stats_reader","user":"@prometheus"},"remote":{"ip":"127.0.0.1","port":"40992"},"request":null,"timestamp":"2022-01-12T11:21:21.402Z","url":"/_prometheusMetrics"}
      {"context":"Request to fetch eventing function statistics","description":"Request to fetch eventing function stats","error":null,"id":32798,"local":{"ip":"127.0.0.1","port":"8096"},"method":"GET","name":"Fetch Stats","real_userid":{"domain":"stats_reader","user":"@prometheus"},"remote":{"ip":"127.0.0.1","port":"40977"},"request":null,"timestamp":"2022-01-12T11:21:22.383Z","url":"/_prometheusMetricsHigh"}
      {"context":"List all functions","description":"Request to fetch eventing functions","error":null,"id":32795,"local":{"ip":"127.0.0.1","port":"8096"},"method":"GET","name":"List Function","real_userid":{"domain":"builtin","user":"@"},"remote":{"ip":"127.0.0.1","port":"58660"},"request":null,"timestamp":"2022-01-12T11:21:23.349Z","url":"/api/v1/functions"}
      

      This events were introduced recently as part of following change - https://review.couchbase.org/c/eventing/+/165806

      Attachments

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

        Activity

          People

            jeelan.poola Jeelan Poola
            sujay.gad Sujay Gad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty