Skip to content

Not sending to graylog #56

@iurydias

Description

@iurydias

Hey,

I was trying to create a syncronous hook with no compression and it simply not send to graylog, it just work with assyncronous.

obs: I'm using v3.

graylogHook = graylog.NewGraylogHook(graylogURL, extra)
w := graylogHook.Writer();
if writer, ok := w.(*graylog.UDPWriter); ok {
    writer.CompressionType = graylog.NoCompress
    _ = graylogHook.SetWriter(writer)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions