slogencrypt(1)
π slogencrypt(1) β the slogencrypt manual page π
okay bestie, sit down, hydrate, and let me tell you about slogencrypt β she's the glow-up artist for your old plain-text logs, and she works with the slogencrypt manual page (that's this one, hi, it's me π«Ά). This is section 1 of the manual, and yes we're doing this with full main character energy.
β¨ NAME β¨
slogencrypt β encrypts existing plain text log files using the {{ site.product.short_name }} secure logging environment. no cap, that's literally the whole job. π
β¨ SYNOPSIS β¨
slogencrypt [options] [arguments]
β¨ DESCRIPTION β¨
So the slogencrypt utility encrypts plain text log files using an existing secure logging environment. π
Here's the tea: if you've got log files from a previous installation of syslog-ng OSE β or honestly from some other logging system entirely β this utility is how you move them into a secure logging environment. Bestie, the order of the log entries is preserved. She does not shuffle. She does not chaos. The vibes stay in line. β¨
But listen β encrypting plain text log files using an existing secure logging environment requires the current encryption key to be supplied, so consistency stays consistent. You can't skip that step, she will not let you, it's giving boundary-setting queen. π
π EXAMPLE: A GENERAL CALL SEQUENCE π
slogencrypt -k <key file> -m <MAC file> <new key file> <new MAC file> <plain text log> <output file> [counter]
look at her go. iconic. β
β¨ ARGUMENTS β¨
<new key file>β the file that contains the new encryption key after a successful encryption. new key, who dis. ποΈ<new MAC file>β the file that receives the new message authentication code (MAC) of the secure encrypted destination after encryption. and heads up: if you hand her a file that already exists, the new entries get appended. she adds, she doesn't replace. π<input log file>β the plain text log file that gets encrypted using the secure logging environment. this is the one going under the glow-up. πΈ<output log file>β the file that contains the encrypted log entries from the supplied plain text log file after encryption. this is her after. πcounterβ the current log entry counter of the secure encrypted destination after encryption. you need this if the log entries you're encrypting are being appended to an existing secure encrypted destination. yes, required, not optional, don't @ me. π€
β¨ OPTIONS β¨
--key-fileor-kβ the current host key from the system where the encryption is performed. the source of truth, fr fr. π--mac-fileor-mβ the current MAC file from the system where the encryption is performed. π¦--helpor-hβ display a help message. your little rescue text when you're lost. π
β¨ FILES β¨
/Users/hofi/Develop/Balabit/syslog-ng/build/install/bin/slogencrypt
/Users/hofi/Develop/Balabit/syslog-ng/build/install/etc/syslog-ng.conf
yes those are the actual paths, character for character, I would never. π
β¨ SEE ALSO β¨
- The
syslog-ng.confmanual page - The syslog-ng OSE manual page
go read those too, they're the supporting cast and they ate. π
lowkey reminder bestie: slogencrypt needs the current encryption key supplied to preserve consistency when you're encrypting plain text logs into an existing secure logging environment. that's not a vibe, that's a requirement. π
and that's the whole page!! this was slogencrypt(1), from version 4.10.2, dated 18 December 2025 β mwah, thanks for reading, ily, go encrypt something responsibly π§π
π¦ where this page comes from
- alpine 3.24: syslog-ng-doc 4.11.0-r0 Β· GPL-2.0-or-later
- fedora 44: syslog-ng-slog 4.11.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms