Vijey Deepan
01/27/2023, 8:24 AMcerbos: error: failed to create audit log: failed to create backend: failed to create logger: open sink "/auditlogs/audit.log": open /auditlogs/audit.log: no such file or directory
audit:
enabled: true
accessLogsEnabled: true
decisionLogsEnabled: true
backend: file
file:
path: /auditlogs/audit.log
audit:
enabled: true
accessLogsEnabled: true
decisionLogsEnabled: true
backend: file
file:
path: stdout
Charith (Cerbos)
01/27/2023, 9:05 AM-v
argument to Docker. Something like:
docker run -it -v $(pwd):/auditlogs <http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest>
Vijey Deepan
01/27/2023, 9:06 AMcerbos:
container_name: cerbos
image: <http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest>
restart: always
command: ["server", "--config=/config/conf.yaml", "--log-level=warn"]
volumes:
- ./config:/config
- ${PWD}/auditlogs:/auditlogs/audit.log
depends_on:
- database
ports:
- 3592:3592
- 3593:3593
networks:
- intranet
audit:
enabled: true
accessLogsEnabled: true
decisionLogsEnabled: true
backend: file
file:
path: /auditlogs/audit.log
Charith (Cerbos)
01/27/2023, 9:17 AMcerbos:
container_name: cerbos
image: <http://ghcr.io/cerbos/cerbos:latest|ghcr.io/cerbos/cerbos:latest>
restart: always
command: ["server", "--config=/config/conf.yaml", "--log-level=warn"]
volumes:
- ./config:/config
- ./auditlogs:/auditlogs
depends_on:
- database
ports:
- 3592:3592
- 3593:3593
networks:
- intranet
Make sure that you have a directory named auditlogs
created in the same directory as your Compose fileVijey Deepan
01/27/2023, 9:18 AMvolumes:
- ./config:/config
- ${PWD}/auditlogs/audit.log:/auditlogs/audit.log