Package: hat-syslog
https://user-images.githubusercontent.com/26526989/237474681-83b9d74a-f95d-4032-a279-12252d052bc9.mp4Abouthat-syslogprovides server/client tooling based on Syslog logging protocol
as defined byRFC 5425,RFC 5426andRFC 6587.This project includes implementations of:Syslog ServerCentral concentrator for syslog messages with web interface for real
time monitoring and filtering of log messages.Syslog HandlerImplementation of Python’s standard librarylogging.Handlerbased on
dedicated background logging thread.Syslog GeneratorSimple testing tool responsible for generating syslog messages.For more information see:online documentationgit repositoryRuntime requirementspython >=3.10InstallDebianWIPArchlinuxhat-syslogis available asAUR package:$ yay -S hat-syslogWindowsWindows distribution, with embedded python, is available atGitHub releases.Python wheelhat-syslogis available asPyPI project:$ pip install hat-syslogDockerSyslog Server is available asDocker image:$ mkdir -p ~/.local/share/hat
$ docker run -p 6514:6514/tcp \
             -p 6514:6514/udp \
             -p 23020:23020 \
             -v $(cd; pwd)/.local/share/hat:/hat-syslog \
             bozokopic/hat-syslogUsageSyslog ServerCommandhat-syslog-serveris used for running new Syslog Server instance:$ hat-syslog-serverOnce server is running, web UI is available athttp://127.0.0.1:23020.For additional details and command line options seeSyslog Server.Syslog HandlerExample python logging configuration:importlogging.configlogging.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 seeSyslog Handler.Syslog GeneratorCommandhat-syslog-generatoris used for running Syslog Generator:$ hat-syslog-generatorFor additional details and command line options seeSyslog Generator.Development requirementspython >=3.10nodejs >=7yarnBuildTo install editable installation, together with python development
dependencies, run:$ pip install -e '.[dev]'To install only python development dependencies, run:$ pip install -r requirements.pip.txtBuild tool used forhat-syslogispydoit. For listing available doit
tasks, use:$ doit listDefault task:$ doitcreates wheel package insidebuilddirectory.Hat Openhat-syslogis part ofHat Openproject - 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 byKončar Digital.LicenseCopyright 2020-2023 Hat Open AUTHORSLicensed 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 athttp://www.apache.org/licenses/LICENSE-2.0Unless 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.