Skip to main content

Monitoring tool for logs aggregation and alerting

Project description

Snoozeweb Logo

About

Snooze is a powerful monitoring tool used for log aggregation and alerting. It comes with the following features:

  • Backend + Web interface
  • Local / LDAP / JWT token based authentication
  • Built-in clustering for scalability
  • Large number of sources as inputs
  • Log aggregation
  • Log manipulation
  • Log archiving
  • Alerting policies
  • Various alerting methods
  • Auto housekeeping
  • Metrics

Alerts

Installation

Installation on CentOS/RHEL

$ wget https://rpm.snoozeweb.net -O snooze-server-latest.rpm
$ sudo yum localinstall snooze-server-latest.rpm
$ sudo systemctl start snooze-server

Web interface URL: http://localhost:5200

if create_root_user in /etc/snooze/core.yaml has not been set to false, login credentials are root:root

Otherwise, it is always possible to generate a root token that can be used for JWT Token authentication method if Snooze Client is installed:

$ snooze root-token
# Run with root or snooze user
Root token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7Im...

Recommendations

By default, Snooze is using a single file to store its database and therefore can run out of the box without any additional configuration or dependency. While this implementation is convenient for testing purpose, it is heavily recommended to switch the database configuration to MongoDB.

Docker

Support coming soon

Configuration

The only configuration file not managed in the web interface is /etc/snooze/core.yaml and requires restarting Snooze if changed.

/etc/snooze/core.yaml

  • listen_addr ('0.0.0.0'): IPv4 address on which Snooze process is listening to
  • port (5200): Port on which Snooze process is listening to
  • debug (false): Activate debug log output
  • bootstrap_db (true): Populate the database with an initial configuration
  • create_root_user (true): Create a root user with a default password root
  • ssl
    • enabled (false): Enable TLS termination for both the API and the web interface
    • certfile (''): Path to the SSL certificate
    • keyfile (''): Path to the private key
  • web
    • enabled (true): Enable the web interface
    • path (/opt/snooze/web): Path to the web interface dist files
  • clustering
    • enabled (false): Enable clustering mode
    • members: List of snooze servers in the cluster {host, port}
      • host (localhost): Hostname or IPv4 address of the first member port (5200): Port on which the first member is listening to
  • database
    • type (file): Backend database to use (file or mongo)

Example for MongoDB backend with database replication enabled:

database:
    type: mongo
    host:
        - hostA
        - hostB
        - hostC
    port: 27017
    username: snooze
    password: 7dg9khqg1w6
    authSource: snooze
    replicaSet: rs0

Documentation

Documentation page

License

Snooze - Log aggregation and alerting
Copyright 2018-2021 Florian Dematraz, Guillaume Ludinard

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

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

snooze_server-1.0.8-py3-none-any.whl (86.1 kB view hashes)

Uploaded Python 3

Supported by

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