Hi,
Unfortunately, I didn’t get notification for your previous message - hence the delay in responding. What you faced is same as Possible bug: eventing.log error on missing `log_level` which has been addressed https://issues.couchbase.com/browse/MB-31146.
Would suggest to either pass log_level field or leverage UI to create functions(which by default passes that field).
Thanks.