https://github.com/hat-open/hat-syslog

Syslog Server and tools

https://github.com/hat-open/hat-syslog

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.7%) to scientific vocabulary

Keywords

logging syslog
Last synced: 4 months ago · JSON representation

Repository

Syslog Server and tools

Basic Info
Statistics
  • Stars: 150
  • Watchers: 2
  • Forks: 1
  • Open Issues: 1
  • Releases: 13
Topics
logging syslog
Created over 4 years ago · Last pushed 4 months ago
Metadata Files
Readme License

README.rst

.. |syslog-server-video| replace:: https://user-images.githubusercontent.com/26526989/237474681-83b9d74a-f95d-4032-a279-12252d052bc9.mp4

.. _Syslog Server: https://hat-syslog.hat-open.com/server.html
.. _Syslog Handler: https://hat-syslog.hat-open.com/handler.html
.. _Syslog Generator: https://hat-syslog.hat-open.com/generator.html

.. _online documentation: https://hat-syslog.hat-open.com
.. _git repository: https://github.com/hat-open/hat-syslog.git

.. _RFC 5425: https://tools.ietf.org/html/rfc5425
.. _RFC 5426: https://tools.ietf.org/html/rfc5426
.. _RFC 6587: https://tools.ietf.org/html/rfc6587

.. _AUR package: https://aur.archlinux.org/packages/hat-syslog
.. _GitHub releases: https://github.com/hat-open/hat-syslog/releases
.. _PyPI project: https://pypi.org/project/hat-syslog
.. _Docker image: https://hub.docker.com/r/bozokopic/hat-syslog

.. _pydoit: https://pydoit.org

.. _Hat Open: https://hat-open.com
.. _Končar Digital: https://www.koncar.hr/en


hat-syslog - Syslog Server and tools
====================================

|syslog-server-video|


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:

* `online documentation`_
* `git repository`_


Runtime requirements
--------------------

* python >=3.10


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


Docker
''''''

Syslog Server is available as `Docker 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-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 ``_.

For additional details and command line options see `Syslog Server`_.


Syslog Handler
''''''''''''''

Example python logging configuration:

.. code:: python

    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`_.


Development requirements
------------------------

* python >=3.10
* nodejs >=7


Build
-----

To 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.txt

Build tool used for `hat-syslog` is `pydoit`_. For listing available doit
tasks, use::

    $ doit list

Default task::

    $ doit

creates wheel package inside `build` directory.


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

Owner

  • Name: Hat Open
  • Login: hat-open
  • Kind: organization

GitHub Events

Total
  • Create event: 4
  • Release event: 1
  • Issues event: 2
  • Watch event: 7
  • Issue comment event: 2
  • Push event: 13
Last Year
  • Create event: 4
  • Release event: 1
  • Issues event: 2
  • Watch event: 7
  • Issue comment event: 2
  • Push event: 13

Committers

Last synced: 4 months ago

All Time
  • Total Commits: 91
  • Total Committers: 4
  • Avg Commits per committer: 22.75
  • Development Distribution Score (DDS): 0.044
Past Year
  • Commits: 9
  • Committers: 1
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
bozo.kopic b****o@k****z 87
Adam Trstenjak a****k@k****r 2
Jakov Krstulovic Opara j****c@g****m 1
Jakov Krstulovic Opara j****c@k****r 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: 7 days
  • Average time to close pull requests: N/A
  • Total issue authors: 3
  • Total pull request authors: 0
  • Average comments per issue: 0.75
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 22 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • bozokopic (2)
  • srekkas (1)
  • nickdlkk (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 441 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 53
  • Total maintainers: 1
pypi.org: hat-syslog

Hat Syslog

  • Versions: 53
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 441 Last month
Rankings
Stargazers count: 6.1%
Dependent packages count: 10.1%
Downloads: 13.3%
Average: 14.7%
Dependent repos count: 21.6%
Forks count: 22.6%
Maintainers (1)
Last synced: 4 months ago

Dependencies

package.json npm
  • @hat-open/juggler >=0.5.4 development
  • @hat-open/renderer * development
  • @hat-open/util * development
  • brace 0.11.1 development
  • css-loader 5.2.4 development
  • dateformat 4.5.1 development
  • docdash 1.2.0 development
  • eslint 7.21.0 development
  • file-loader 6.2.0 development
  • imports-loader 2.0.0 development
  • jiff 0.7.3 development
  • jsdoc 3.6.6 development
  • normalize.css 8.0.1 development
  • resolve-url-loader 3.1.2 development
  • sass 1.32.8 development
  • sass-lint 1.13.1 development
  • sass-loader 11.0.1 development
  • snabbdom 2.1.0 development
  • source-map-explorer 2.5.2 development
  • style-loader 2.0.0 development
  • svg-loaders 0.2.0 development
  • webpack 5.24.2 development
  • webpack-cli 4.5.0 development
.github/workflows/docs.yaml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • peaceiris/actions-gh-pages v3 composite
.github/workflows/main.yaml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
Dockerfile docker
  • hat-syslog-base latest build
  • python 3.11-slim-bookworm build
package-lock.json npm
  • 134 dependencies
pyproject.toml pypi
  • appdirs ~=1.4.4
  • hat-aio ~=0.7.9
  • hat-json ~=0.5.24
  • hat-juggler ~=0.6.13
  • hat-util ~=0.6.13
requirements.pip.txt pypi
  • appdirs *
  • hat-aio *
  • hat-doit *
  • hat-json *
  • hat-juggler *
  • hat-util *
  • sphinxcontrib-plantuml >=0.25
  • sphinxcontrib-programoutput >=0.17