Unit maintains a single general-purpose log for diagnostics and troubleshooting (not to be confused with the access log). Usually, the log file is found here: /var/log/unit.log; to locate it in your system:

# unitd --help

    unit options:
    --log FILE           set log filename
                         default: "/home/user/unit.log"

Use unitd --log <filename> to set the location at startup. To check the settings of a running unitd:

# ps ax | grep unitd
    unit: main v1.6 [/usr/sbin/unitd --log /var/log/unit.log --pid /run/]

If Unit’s not running, see its startup scripts or configuration files in your system to discover the log location.

Debug Log§

Unit log has two verbosity modes: common and debug; steps to enable the latter vary by install method.


Debug log is meant for developers; it grows rapidly, so enable it only for detailed reports and inspection.

Installation From Our Repositories§

Our repositories provide a debug version of unitd called unitd-debug within the unit package:

# unitd-debug <command line options>


Also, there are debug symbol packages for core dump analysis; their names end in -dbg, like unit-dbg.

Installation From Source§

To enable debug-level logging when installing from source, use the --debug option:

# ./configure --debug <other options>

Then recompile and reinstall Unit and your specific language modules.

Getting Support§

Post your questions to our mailing list at; to subscribe, email or sign up here. You can also visit our GitHub repo to report an issue, suggest a feature, or share a problem.

In addition, we offer commercial support.