Quickly Create Graylog Streams

When using Graylog, you may run into a case where you’re making a large number of streams to organize data. A quick way to do this is to use the API to programmatically add the streams to the system quickly.

Use the GET endpoint to get the stream payload:

https://YOUR_GRAYLOG_ENDPOINT/api/streams

Grab one of the streams and format the payload to use for the POST endpoint, and then insert the streams using the API.

Leave a Reply

Your email address will not be published. Required fields are marked *