[Bug 1349949] Re: Juju's mongodb does not need to log every command in syslog

Matt Dirba matt at dirba.org
Thu Mar 17 02:21:16 UTC 2016


And from MAAS it can be done by adding the following to
/etc/maas/preseeds/curtin_userdata

late_commands:
  mongo_01: curtin in-target -- sh -c '/bin/echo :msg, contains, \"authenticate db:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_02: curtin in-target -- sh -c '/bin/echo :msg, contains, \"warning:\ No such role, \" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_03: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command juju.\$cmd command:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'
  mongo_04: curtin in-target -- sh -c '/bin/echo :msg, contains, \"command presence.\$cmd command:\" \~ >> /etc/rsyslog.d/16-mongohush.conf'

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mongodb in Ubuntu.
https://bugs.launchpad.net/bugs/1349949

Title:
  Juju's mongodb does not need to log every command in syslog

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1349949/+subscriptions



More information about the Ubuntu-server-bugs mailing list