Skip to main content

Hat Syslog

Project description

https://user-images.githubusercontent.com/26526989/226031877-cefe2f46-b05c-4c1c-81d0-0614211751bc.mp4

About

hat-syslog provides server/client tooling based on Syslog logging protocol as defined by RFC 5425, RFC 5426 and RFC 6587.

This project includes implementations of:

  • Syslog Server

    Central concentrator for syslog messages with web interface for real time monitoring and filtering of log messages.

  • Syslog Handler

    Implementation of Python’s standard library logging.Handler based on dedicated background logging thread.

  • Syslog Generator

    Simple testing tool responsible for generating syslog messages.

For more information see:

Runtime requirements

  • python >=3.8

Install

Debian

WIP

Archlinux

hat-syslog is available as AUR package:

$ yay -S hat-syslog

Windows

Windows distribution, with embedded python, is available at GitHub releases.

Python wheel

hat-syslog is available as PyPI project:

$ pip install hat-syslog

Usage

Syslog Server

Command hat-syslog-server is used for running new Syslog Server instance:

$ hat-syslog-server

Once server is running, web UI is available at http://127.0.0.1:23020.

For additional details and command line options see Syslog Server.

Syslog Handler

Example python logging configuration:

import logging.config

logging.config.dictConfig({
    'version': 1,
    'formatters': {
        'default': {}},
    'handlers': {
        'syslog': {
            'class': 'hat.syslog.handler.SyslogHandler',
            'host': '127.0.0.1',
            'port': 6514,
            'comm_type': 'TCP',
            'level': 'DEBUG',
            'formatter': 'default'}},
    'root': {
        'level': 'INFO',
        'handlers': ['syslog']},
    'disable_existing_loggers': False})

logger = logging.getLogger(__name__)
logger.info('spam')

For additional details see Syslog Handler.

Syslog Generator

Command hat-syslog-generator is used for running Syslog Generator:

$ hat-syslog-generator

For additional details and command line options see Syslog Generator.

Hat Open

hat-syslog is part of Hat Open project - open-source framework of tools and libraries for developing applications used for remote monitoring, control and management of intelligent electronic devices such as IoT devices, PLCs, industrial automation or home automation systems.

Development of Hat Open and associated repositories is sponsored by Končar Digital.

License

Copyright 2020-2023 Hat Open AUTHORS

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hat_syslog-0.7.2-cp38.cp39.cp310.cp311-none-any.whl (778.5 kB view details)

Uploaded CPython 3.10CPython 3.11CPython 3.8CPython 3.9

File details

Details for the file hat_syslog-0.7.2-cp38.cp39.cp310.cp311-none-any.whl.

File metadata

File hashes

Hashes for hat_syslog-0.7.2-cp38.cp39.cp310.cp311-none-any.whl
Algorithm Hash digest
SHA256 66c57198bcb54d1313749574c529aec0ec84c2e7f5af87499a6d1edba98bd37e
MD5 fa0def5c7ffd63d03acf3115711b7ed5
BLAKE2b-256 d9dd17207dc0147ec4af65ba1a2aec6d23a6bbc6b7d64f8b63767437db5c9ff9

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