selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

graylog logo

Self-host graylog

7.2.2

Open log management and SIEM platform with web search UI

ReleaseOpen SourceSSPL-1.0
Docker ComposeCompose file & guide
docker compose up
Updatedlast week
LanguageJava
Setup difficultyAdvanced
Stars
8 177
Port
9000 (HTTP interface: Graylog web interface and REST API for clients)
Requires
MongoDB, OpenSearch
Docker
graylog/graylog
graylog screenshot 1graylog screenshot 2

What is graylog?

Graylog is a free, open platform for managing logs centrally: operators point their applications, servers and network gear at it and then search, correlate and alert over everything it has ingested. It ingests through configurable inputs (the project lists syslog, GELF, Kafka and AMQP among its topics), buffers traffic in an on-disk journal, routes messages into streams by rule, and exposes a query language, dashboards and alerting in a browser-based web interface. Extensions ship as plugins, content packs and add-ons from the Graylog Marketplace, and everything the UI does is also available over a fully documented REST API. Self-hosting means a Docker Compose stack from Graylog's own example repository: MongoDB for configuration data, a Data Node or an external OpenSearch/Elasticsearch for the log data, and either the graylog/graylog (Graylog Open) or graylog/graylog-enterprise image; you set a password secret and a hashed root password as environment variables, then finish first-time setup in the web UI on port 9000. The open server carries MongoDB's SSPL v1 terms, with Enterprise as the commercial variant.

graylog alternatives

Should you self-host graylog?

graylog scores 67/100 on selfhost.directory (how scoring works) and ranks #3 of 13 in Log Management. It has 8 177 GitHub stars, +26 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is SSPL-1.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is Dozzle (77/100, 14 929 stars). It scores higher overall, so compare the two before you pick. See graylog vs Dozzle side by side.

Features

  • Alerting
  • Central log collection
  • Cluster mode
  • Content packs
  • Dashboards
  • Log search with query language
  • Message inputs
  • Message journal
  • Plugin System
  • Processing pipelines
  • REST API
  • SIEM capabilities
  • Streams
  • Web Interface

graylog README

Graylog

License Maven Central

Welcome! Graylog is a free and open log management platform.

You can read more about the project on our website and check out the documentation on the documentation site.

How to install graylog

Install graylog with Docker Compose

Environment variables
GRAYLOG_PASSWORD_SECRET, GRAYLOG_ROOT_PASSWORD_SHA2

Download the example docker-compose.yml and .env.example from https://github.com/Graylog2/docker-compose , then create the secrets:

< /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96};echo;
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1

Put the outputs into the environment file as GRAYLOG_PASSWORD_SECRET and GRAYLOG_ROOT_PASSWORD_SHA2, then deploy:

docker compose up

To have it running in the background, you can use:

docker compose up -d

Initial login credentials for the preflight UI are printed to the container logs; the web interface listens on port 9000.

How to configure graylog

  • GRAYLOG_PASSWORD_SECRETSecret used to secure/pepper stored user passwords; at least 64 characters, must be identical on all nodes of a cluster.
  • GRAYLOG_ROOT_PASSWORD_SHA2SHA-256 hash of the root user's password, needed to log in initially or if the authentication backend is unreachable.
  • password_secretSecret to secure/pepper the stored user passwords; use at least 64 characters, same value on all Graylog nodes.
  • root_password_sha2Hash password for the root user; cannot be changed via API or web interface.
  • root_usernameadminName of the root user.

More in Log Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…