These docs are for v5.1. Click to read the latest docs for v2024.1.

Using Go

Seq can accept logs from Go programs via GELF or directly from Logrus with Logruseq.

Getting started with Go and GELF


Before sending events to Seq using GELF, the GELF input must be enabled.

The Graylog2/go-gelf package can be used to send events from the application as GELF messages using the standard log package:

package main

import (

func main() {
    var logger, err = gelf.NewUDPWriter("seq-server-uri:12201")

    if err != nil {
        log.Fatalf("Failed to create UDP writer: %s", err)

    // Don't prefix messages with a redundant timestamp etc.

    log.Print("Hello, from go!")

Getting started with Go and Logrus

For Logrus setup, see the documentation for Logruseq.