According to its docs, Apache Kafka logs to
$ ls -ld /tmp drwxrwxrwt 16 root root 32768 Sep 28 16:39 /tmp
rwx means that
/tmp is readable, writable and executable by its owner (root), the second
rwx means that it's readable, writable and executable by its group (root), and the third
rwx means that it's readable, writable and executable by everyone. (For a directory "executable" means it can be navigated into).
So your non-privileged user can write log files to
/tmp. There may be problems if another user has already created their own
However, writing logs to
/tmp is not a sustainable strategy in the long term. Anything goes if this is a personal system, but on a production system you would not expect
/tmp to have the reserved storage space or the maintenance attention that a directory like
/var/log has. By its name, you can guess that files in
/tmp are considered fair game for deletion if space starts running out.
The page you've linked is pretty clear - although there are defaults, their expectation is that as a minimum you supply a properties file containing
So, configure whatever log directory you like, writable by your preferred user.