Details
Description
STEPS
- Cluster consists of single kv and data node each.
- Enable audit logging and select all eventing related audit events to be logged.
- 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