notebook:unifi_logging_level


Warning: Undefined array key "error" in /home/nevyxvrt/ubntwiki.com/lib/plugins/bootnote/syntax.php on line 81

Warning: Undefined array key "error" in /home/nevyxvrt/ubntwiki.com/lib/plugins/bootnote/syntax.php on line 81

Warning: Undefined array key "error" in /home/nevyxvrt/ubntwiki.com/lib/plugins/bootnote/syntax.php on line 81

Warning: Undefined array key "text" in /home/nevyxvrt/ubntwiki.com/lib/plugins/bootnote/syntax.php on line 101

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.


PLEASE NOTE:

  • 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 https://jsonlint.com/.
  • 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"
					}
				}
			}
		}
	}
}

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nevyxvrt/ubntwiki.com/lib/plugins/authplain/auth.php on line 428

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/nevyxvrt/ubntwiki.com/inc/ErrorHandler.php on line 102