slogkey(1)

πŸŽ€ slogkey(1) πŸŽ€

okay bestie, welcome to the slogkey manual page, we're doing crypto key management today and honestly? it's giving main character energy πŸ”βœ¨


✨ NAME ✨

slogkey β€” manages the cryptographic keys for use with the {{ site.product.short_name }} secure logging environment. πŸ’…


🌸 SYNOPSIS 🌸

slogkey [options] [arguments]

πŸ¦‹ DESCRIPTION πŸ¦‹

so, the slogkey utility is literally the key manager for the secure logging module of syslog-ng OSE. no cap. 🫢

use this utility to:

  • create a master key πŸ”‘
  • derive a host key that a secure logging configuration can actually use
  • display the current sequence counter of a key πŸ‘€

the options decide which operating mode you're in, and heads up β€” the options are mutually exclusive. pick one, bestie. one. not two. periodt. πŸ’€


πŸ’œ ARGUMENTS πŸ’œ

the arguments depend on the operating mode, so let's break it down like a group chat with three tabs open:

πŸ“ Master key generation

call sequence:

slogkey --master-αΈ±ey <filename>
  • <filename>: the name of the file to which the master key is written. πŸŽ€

🧚 Host key derivation

call sequence:

slogkey --derive-key <master key file> <host MAC address> <host serial number> <host key file>
  • <master key file>: the master key from which the host key is derived. πŸ”‘
  • <host MAC address>: the MAC address of the host on which the key is used. and ooh, plot twist β€” instead of the MAC address, you can supply any other string that uniquely identifies a host, for example the company inventory number. iconic, honestly.
  • <host serial number>: the serial number of the host on which the key is used. same deal β€” instead of the serial number, you can supply any other string that uniquely identifies a host, for example, the company inventory number. 🌈
  • <host key file>: the name of the file to which the host key is written. ✨
NOTE: the newly created host key has its counter set to 0, indicating that it represents the initial host key k0). (yes. the stray paren is in the original. no, i will not be elaborating. πŸ’€) this host key must be kept secret and not be disclosed to third parties. it is required to successfully decrypt and verify log archives processed by the secure logging environment. as each log entry is encrypted with its own key, a new host key is created after successful processing of a log entry and replaces the previous key. therefore, the initial host key needs to be stored in a safe place before starting the secure logging environment, as it is deleted from the log host after processing of the first log entry. 😭 protect her. she will not survive the first log entry. 🫢

🌟 Sequence counter display

(this one's in the original with no extra deets attached, so we keep it exactly as it came, bestie πŸ’–)


πŸ’… OPTIONS πŸ’…

  • --master-key or -m β€” generates a mew master key. (yes, "mew." the original said it, i'm keeping it, it's iconic 🐱) <filename> is the name of the file storing the newly generated master key. πŸ”‘
  • --derive-key or -d β€” derive a host key using a previously generated master key. 🌸
  • --counter or -c β€” display the current log sequence counter of a key. πŸ‘‘
  • --help or -h β€” display a help message. 🫢

πŸŽ€ FILES πŸŽ€

/Users/hofi/Develop/Balabit/syslog-ng/build/install/bin/slogkey
/Users/hofi/Develop/Balabit/syslog-ng/build/install/etc/syslog-ng.conf

🌈 SEE ALSO 🌈

  • The syslog-ng.conf manual page πŸ“–
  • The secure-logging manual page πŸ“–

and that's the whole vibe check, bestie β€” this page is from version 4.10.2, dated 18 December 2025. go forth, guard those keys, and keep k0 safe. slay πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from