Skip to main content

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.2.0.

Quickstart

Install with pipx

pipx install syslog-ng-cfg-helper

List the contexts

syslog-ng-cfg-helper
Valid contexts:
  destination
  filter
  options
  parser
  rewrite
  source
Print the drivers of CONTEXT with `--context CONTEXT`.

List the drivers in a context

syslog-ng-cfg-helper -c destination
Drivers of context 'destination':
  amqp
  example-destination
  fifo
  file
  http
  java
...
Print the options of DRIVER with `--context destination --driver DRIVER`.

List the options of a driver

syslog-ng-cfg-helper -c destination -d http
http(
    accept-redirects(<yesno>)
    azure-auth-header(
        <path>(<string>)
        content-type(<string>)
        method(<string>)
        secret(<string>)
        workspace-id(<string>)
    )
    batch-bytes(<nonnegative-integer>)
    batch-lines(<nonnegative-integer>)
    batch-timeout(<positive-integer>)
    body(<template-content>)
    body-prefix(<string>)
    body-suffix(<string>)
    ca-dir(<string>)
    ca-file(<path>)
    cert-file(<path>)
...

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 SCLs.
  • 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=...
  • make check runs the unit tests, style-checkers and linters.
  • make format formats the code.
  • make db download the syslog-ng release tarball and generates the option database.
  • make package creates the pip package.

Community

You can reach out to the syslog-ng community on Discord:

Axoflow Discord Server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syslog_ng_cfg_helper-1.0.1.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syslog_ng_cfg_helper-1.0.1-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file syslog_ng_cfg_helper-1.0.1.tar.gz.

File metadata

  • Download URL: syslog_ng_cfg_helper-1.0.1.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1037-azure

File hashes

Hashes for syslog_ng_cfg_helper-1.0.1.tar.gz
Algorithm Hash digest
SHA256 de925400c216e6fba4fb895999b0161c0e724e970cdb7b49a14bab611b62f860
MD5 9c228c494887092cbc8d3e7e16a1ef2c
BLAKE2b-256 efbb1211cea42ac85145f063b94aa6bb3cd68a04e28e1b92e9476e5b652272fa

See more details on using hashes here.

File details

Details for the file syslog_ng_cfg_helper-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: syslog_ng_cfg_helper-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1037-azure

File hashes

Hashes for syslog_ng_cfg_helper-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec9fbf5faac98398bbbbc5321d68d7ce700ce4b351fed11f4c89a6384bb9c3a
MD5 520b5e1c836d920407adfa55d78f17fd
BLAKE2b-256 7544ec88d01d7db0e06eabe0f4154b4415fba244178c62ab155f3bcb7ddb3061

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page