persist-tool(1)
π persist-tool(1) β bestie, we're doing manual pages now
okay so this is the manual page for persist-tool, and it lives in the persist-tool manual page section of your man pages, iykyk. grab a strawberry π and let's get into it.
β¨ NAME β¨
persist-tool β the {{ site.product.short_name }} configuration file, bestie. that's literally what it says and I'm not gonna lie to you about it.
β¨ SYNOPSIS β¨
persist-tool [command] [options]
β¨ DESCRIPTION β¨
so first thing, heads up: this manual page is only an abstract. it's giving trailer, not the whole movie. π¬
the persist-tool application is a utility that can be used to dump the content of the persist file, and manipulate its content.
β οΈ CAUTION: persist-tool is a special tool for syslog-ng experts. do use the tool unless you know exactly what you are doing. misconfiguring it will result in irrecoverable damage to the persist file, without any warning. not dramatic, just true. π
Limitations:
- the persist-state functions can be used only with SLP4 or newer persist files. older persist files are not supported.
- wildcard characters are not supported in file and directory names.
π THE DUMP COMMAND π
dump [options] [persist_file]
use the dump command to print the current content of the persist file in JSON format to the console. cute, right? β¨
the dump command has the following options:
--help,-?β display a brief help message. for example:
persist-tool dump /Users/hofi/Develop/Balabit/syslog-ng/build/install/var/syslog-ng persist
a valid output is the following:
run_id = { "value": "00 00 00 00 0C 00 00 00 " }
host_id = { "value": "00 00 00 00 5F 49 2F 01 " }
look at that, clean. no notes. π
π¦ THE ADD COMMAND π¦
add [options] [input_file]
use the add command to add or modify a specified state-entry in the persist file. the state-entry should be in the same format as the dump command displays it. if the given state-entry already exists, it will be updated. otherwise, a new value will be added. if the given persist state is invalid, it will be skipped.
to use the add command: use persist-tool dump to print the content of the current persist file, and redirect it to a file. edit the content of this file. use persist-tool add with this file to modify the persist.
the add command has the following options:
--help,-?β display a brief help message.--output-dir=<directory>,-oβ required parameter. the directory where the persist file is located at. the name of the persist file stored in this directory must besyslog-ng.persist.--persist-name=<filename>,-pβ optional parameter. the name of the persist file to generate. default value:syslog-ng.persist. for example:
/Users/hofi/Develop/Balabit/syslog-ng/build/install/bin/persist-tool add dump_persist -o .
a valid output is the following:
log_reader_curpos(Application) OK
affile_sd_curpos(/var/aaa.txt) OK
an invalid output is the following:
log_reader_curpos(Application) OK
wrong
FAILED (error: Invalid entry syntax)
affile_sd_curpos(/var/aaa.txt) OK
see how it just tells you what went wrong? iconic behaviour honestly. π
π FILES π
/Users/hofi/Develop/Balabit/syslog-ng/build/install/bin/persist-tool
π SEE ALSO π
π£ NOTE: if you experience any problems or need help with syslog-ng OSE, see the syslog-ng OSE Administration Guide[1], or visit the syslog-ng OSE mailing list[2]. for news and notifications about syslog-ng OSE, visit the syslog-ng OSE blogs[3].
πΈ AUTHOR πΈ
this manual page was generated from the syslog-ng OSE Administration Guide[1], which was written by several contributors to whom we'd like to extend our sincere thanks. π«Ά absolute legends, every one of them.
β COPYRIGHT β
π§ NOTES π§
- [1] syslog-ng OSE Administration Guide β¨https://syslog-ng.github.io/admin-guide/READMEβ©
- [2] syslog-ng OSE mailing list β¨https://lists.balabit.hu/mailman/listinfo/syslog-ngβ©
- [3] syslog-ng OSE blogs β¨https://syslog-ng.com/blog/β©
and that's the whole page bestie, no cap. this one's from version 4.10.2, dated 18 December 2025 β go forth and please back up your persist file before you touch anything, ok? love u, bye πβ¨π
π¦ where this page comes from
- alpine 3.24: syslog-ng-doc 4.11.0-r0 Β· GPL-2.0-or-later
- arch rolling: syslog-ng 4.12.0-3 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: syslog-ng 4.11.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: syslog-ng 4.11.0-1.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: syslog-ng 4.12.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms