Configuration helper for syslog-ng.
Project description
syslog-ng CFG Helper
This tool makes configuring syslog-ng a bit easier by listing the options of each available driver.
The options are generated from syslog-ng v4.6.0.
Quickstart
Install with pipx
pipx install syslog-ng-cfg-helper
List the contexts
syslog-ng-cfg-helper
List the drivers in a context
syslog-ng-cfg-helper --context parser
List the options of a driver
syslog-ng-cfg-helper --context parser --driver csv-parser
Example
Development
The tool is still in development, but most of the drivers are supported.
Missing features are:
- Proper
rewrite
support. - Proper
filter
support. - Drivers defined in
SCL
s. - Drivers defined with confgen.
Any contribution is welcome :)
Local setup
The project uses poetry as a dependency management system.
Building of the option database needs the neologism pip package, which gets installed by poetry, however it has another dependency, which is bison. Make sure to install bison (at least 3.7.6) on you system if you wan't to develop locally. make bison
can help with that.
The Makefile consists of some useful commands:
make venv
prepares the venv.make bison
downloads bison 3.7.6, builds it and installs it under/usr/local
.- You can change the install path with
make bison BISON_INSTALL_PATH=...
- You can change the install path with
make check
runs the unit tests, style-checkers and linters.make format
formats the code.make db
downloads the syslog-ng release tarball and generates the option database.make db SYSLOG_NG_SOURCE_DIR=/path/to/syslog-ng
creates a tarball from the state of the syslog-ng source dir and generates the option database.make package
creates the pip package.
Community
You can reach out to the syslog-ng community on Discord:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for syslog_ng_cfg_helper-1.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d479238e152410e59b013d88b647ad98205a6d117c3770ab2ad1e04e3402e4fe |
|
MD5 | 1509e28e05849b9bc57e85daf5c9afa9 |
|
BLAKE2b-256 | 5105cff1c2044a33884f025600c0643c4064640b62750e6c6ac650692e6c1860 |
Hashes for syslog_ng_cfg_helper-1.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46d4f7501a73dcbec58c9e87d66f9ab5bc80f77eb69c1a0c25e2f0aad0a40a8 |
|
MD5 | 1942e5610bc5ce17b8ddc5927c3440f2 |
|
BLAKE2b-256 | 6acc8a1172c1fce26b56565799b5b440b266b1e71ba9b568a71b2239ab29dac6 |