Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Cannot get GELF::Notifier to send data #71

@landovsky

Description

@landovsky

Hi.

I have a Graylog server configuration in place that was able to receive data submitted via this curl:
curl -XPOST http://graylog.domain.com:12201/gelf -p0 -d '{"short_message":"Hello there", "facility":"test", "tenant":"joseph", "report":"turnovers","speed":"1288"}'

Other info:

  • the Graylog input is configured without any authentication.
  • I have a test stream to which I'm forwarding messages when facility==test

I'm trying to to the same via the Ruby library, but without success:

n = GELF::Notifier.new('graylog.domain.com', 12201, 'LAN', { protocol: GELF::Protocol::TCP })
n.notify!(short_message: 'this is short message', message: 'hello', facility: 'test')

What do I need to do for this to work?

Many thanks.

Tomas

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