Hey! These docs are for version 5.1, which is no longer officially supported. Click here for the latest version, 2022.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.

Did this page help you?