UniFi Logging Level Change using config.gateway.json

The logging level in the UniFi Controller doesn't seem to affect the logging level on the USG at least (more testing needed for APs). This will work for DHCPd and maybe DNSMasq, but haven't tested it yet.

The only catch [for now], is you have to use config.gateway.json (this file is on/needs to be created on the controller in the applicable site) to accomplish this (as of Controller 5.9.4).

If you need further information please see UniFi Advanced USG Configuration for help about where to create the config.gateway.json.


  • Prior to creating the .json file on your gateway, create the file in a text editor, such as Atom or Notepad++, and then validate your file at a JSON validator site such as
  • If the syntax fails verification, and you provision it on your gateway, it could cause reboot issues.
  • If your unsure, reach out to the Ubiquiti Discord Chat or the UBNT Community Forums prior to saving/provisioning for support.

Below is an example of the config.gateway.json needed to change logging for notice to info.

Note: All logging is in /var/log/messages

	"system": {
		"syslog": {
			"global": {
				"facility": {
					"all": {
						"level": "info"
  • notebook/unifi_logging_level.txt
  • Last modified: 2018/05/21 13:57
  • by macgeek312