Graylog2 / Graylog2/graylog2-server

Graylog REST API is inconsistent for 'id' field creating from endpoint

Open
#12,373 2 comments 1 reaction 0 assignees View on GitHub
feature triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

The Graylog REST API is inconsistent with regard to "id" field (Stream and Outputs).

## What?

It should be possible to give an ID value while creating all REST resources which will then be used in all following requests/responses. Rules and Pipelines are like this at the moment, but Stream and Outputs are not.

![image](https://user-images.githubusercontent.com/62546449/161031316-e62a0ce6-b864-4398-8c39-6193efcaea01.png)

## Why?

We would like to use external configuration management (like ansible or puppet) to fully manage our configuration in Graylog, this requires to be able to set the initial id for all resources via the external tool. This allows a homogenous environment regarding IDs over different Graylog clusters (in our env 7 Clusters). Currently, two streams (same named, and should behave the same) in two environments are currently having different ids, as we can not set them while creating the resource.

Be able to use external configuration management tools which can fully handle the Graylog configuration from initial creation over updates to deletes if the resources are not needed anymore (decommission).

## Your Environment

* Graylog Version: 4.2.7
* Elasticsearch Version: 7.10
* MongoDB Version: 4.4
* Operating System:
* Browser version:
* Context: HS#836730717

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.