Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get GELF::Notifier to send data #71

Open
landovsky opened this issue Jan 16, 2018 · 0 comments
Open

Cannot get GELF::Notifier to send data #71

landovsky opened this issue Jan 16, 2018 · 0 comments

Comments

@landovsky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant