GELF (Graylog Extended Log Format) is a structured log event format that's implemented for logging libraries in many programming languages. Seq can receive GELF events via TCP and UDP, and supports common features such as compression and chunking.
GELF is not enabled out-of-the-box, and must be enabled one of two ways:
- On Windows, the Seq.Input.Gelf app can be installed and configured
- On Docker/Linux, the
datalust/seq-input-gelfcontainer can be deployed alongside Seq
On Windows, the GELF input is installed into Seq as a Seq App
1. Install the app package
In Settings > Apps, choose Install from NuGet. The app package id is Seq.Input.Gelf.
2. Start an instance of the app
From the apps screen, choose Add Instance and give the new GELF input a name.
The default settings will cause the GELF input to listen on localhost UDP port 12201. Choose a different port and protocol if required.
Select Save Changes to start the input.
3. Configure Windows Firewall
Ensure UDP port 12201 (or the selected port and protocol, if you specified a different one), is allowed through Windows Firewall.
4. Log some events!
That's all there is to it. Events ingested through the input will appear in the Events stream. If the input doesn't work, check for diagnostic events raised by the input app (there is some status information shown under the app instance name).
Events ingested into Seq via the GELF Input app will be shown in the Ingestion view.
For Docker, the app is deployed as a Docker container that is expected to run alongside the Seq container. The
datalust/seq-input-gelf image accepts TCP or UDP GELF payloads on port 12201, and forwards them over HTTP to the Seq ingestion endpoint specified in the
SEQ_ADDRESS environment variable.
To run the container listening on UDP port 12201:
docker run \
--name seq-input-gelf \
--restart unless-stopped \
-p 12201:12201/udp \
-e SEQ_ADDRESS=https://seq.example.com:5341 \
seq-input-gelf container can be configured using the following environment variables:
|The address of the Seq server to forward events to
|The API key to use
|The address and protocol to bind the GELF server to
|Whether to enable diagnostic logs and metrics (accepts
The following is an example
docker-compose file that can be used to manage a local Seq container alongside
seq-input-gelf in your development environment to collect log events from other containers:
The service can be started using
To collect logs from Docker's logging infrastructure, see Collecting Docker container logs.
Updated over 2 years ago