HTTP API for Logstash Centralized Configuration Management #18185
Description
Original comment by @ycombinator:
Currently, if users want to programatically use Logstash Centralized Configuration Management, they must directly read/write from the .logstash
index in Elasticsearch. This is obviously not ideal for at least a couple of reasons:
-
Such users end up getting tied to the exact structure of the
.logstash
index, so any changes we might make to it will break such users. -
As the
.logstash
index grows in structure to accommodate different aspects of centralized configuration management, users could easily misuse it and cause unintended side effects / breakages in their Logstash deployments.
A safer alternative is to provide an HTTP API instead as a more abstract and constrained programmatic interface. Chatting with @epixa, since the .logstash
index doesn't actually get used by any processes within Elasticsearch itself (unlike, say, the Watcher or Security indices), it makes sense for the Logstash Centralized Configuration HTTP API to be exposed from Kibana.
As part of creating this HTTP API, we'll also want to document it as part of our usual docs (i.e. the ones that show up on elastic.co) and create API integration tests for it.
Activity