Since “esxi write entry to syslog” didn’t return results on how to add new syslog entries, only how to configure syslog.
It was much easier than I hoped for:
logger TEST
With a default configuration this then ends up in /var/log/syslog.log
:
grep TEST /var/log/syslog.log
2019-07-29T10:48:31Z root: TEST
Now I know the command, I found
- [WayBack] Shell scripting: Write message to a syslog / log file – nixCraft.
- [WayBack] logger(1) – Linux man page Logger makes entries in the system log. It provides a shell command interface to the syslog(3) system log module.
- [WayBack] busybox/logger.c at master · mozilla-b2g/busybox
–jeroen