Setting mongo syslog location

This commit is contained in:
Samuel Clay 2021-05-10 18:46:02 -04:00
parent d414de2f80
commit ac63b83a82
2 changed files with 5 additions and 4 deletions

View file

@ -12,6 +12,7 @@
volumes:
- /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db
- /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongod.conf
- /var/log/mongodb/:/var/log/mongodb/
- name: Register mongo in consul
tags: consul

View file

@ -13,10 +13,10 @@ storage:
# wiredTiger:
# where to write logging data.
# systemLog:
# destination: file
# logAppend: true
# path: /var/log/mongodb/mongod.log
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net: