Sure, it’s very simple config:
security:
authorization: enabled
KeyFile: /Users/jpolec/mongo_test/new_key

systemLog:
destination: file
path: /opt/homebrew/etc/log
logAppend: true

storage:
dbPath: /opt/homebrew/etc/db

#replication:

replSetName: “equity_replica”

net:
bindIp: localhost
port: 27017


And what I have found when commented with # KeyFile: the log is created. But once I uncomment, so want to use KeyFile:, no log is created. In the same location. Strange. And no mongod is running.

the brew services list shows error as:
mongodb-community@5.0 error 512 jpolec ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community@5.0.plist