Post alert messages to a Graylog Stream using the Graylog Api

Hey guys,
I’m new to Graylog, and I would like to know how one could post alert messages to a Graylog Stream using the Graylog Api. I can’t seem to find this anywhere in the documentation or the Graylog Rest Api browser. Is it even possible?

What exactly do you mean by that? Please elaborate on your use case.

I would just like to log a message to one of the streams as in the picture :
simply by posting it to the stream by making an http post call to the graylog api.
The Rest Api browser doesn’t seem to indicate such an option though.
I believe that this may involve the creation of a new source, but not sure if the Api can cater for something like this, or how the post request should be done.

You can create a GELF HTTP input and route all messages coming in through this input to your stream.

Then you can send an HTTP POST request to the GELF HTTP input:

Right, will try that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.