[syslog-ng] How to stop syslog-ng from generating HOSTID on start up

Dineth Jayasekera jayaseke at ualberta.ca
Wed Sep 6 01:43:46 UTC 2023


Hi everyone,

When starting up, I've noticed that syslog-ng hangs on our embedded system
when generating the HOSTID. This is because the HOSTID generation uses
RAND_bytes (in_create_host_id
<https://github.com/syslog-ng/syslog-ng/blob/66123c955b29298ba6e68cdc77b9a0fdb4aded36/lib/host-id.c#L33>)-
which needs entropy (which we don't have enough of, and don't want to
generate).

The logging is only used locally and there is no need for crypto
functionality. Is there a way to avoid generating a cryptographically
secure HOSTID on start up?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20230905/1df18087/attachment.htm>


More information about the syslog-ng mailing list