-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
REST-like CRUD+ HTTP API for index patterns #72360
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
A couple use cases for myself -
|
This could be quite useful if you're using other parts of ES via APIs programmatically and in the same workflow you'd want to make indices accessible for Kibana users without manually creating an index pattern yourself. For example, a Python developer might use Machine Learning analytics. The results will be written to a destination index. When using the ML plugin's Kibana UI you can opt in to create an index pattern, but if you're just using the ES API in Python that option is not available. So you'd need to go to Kibana and manually create an index pattern so other users can view the results for example in Kibana Discover. Here's a repository with an exemplary workflow on how data scientists can use Python/Jupyter notebooks in combination with Kibana: https://github.com/walterra/jupyter2kibana — a REST API for index patterns would be a great addition! Even our own Python library eland (https://github.com/elastic/eland) could make use of that API under the hood! https://github.com/elastic/eland |
@walterra explained it much better than I did, but that's basically the use case I was trying to outline in my comment. I create indices programmatically all the time, and yet there's always the manual step of having to create the index pattern. For me, it's only a couple things I specify each time, eg the time series, so it seems it would be relatively straightforward to build a programmatic interface for. |
Create a REST API for index patterns—a wrapper around the Index Patterns service.
UDPOST /api/index_patterns/index_pattern
GET /api/index_patterns/index_pattern/{id}
DELETE /api/index_patterns/index_pattern/{id}
POST /api/index_patterns/index_pattern/{id}
title
timeFieldName
intervalName
fields
sourceFilters
fieldFormatMap
type
typeMeta
POST /api/index_patterns/index_pattern/{id}/field
GET /api/index_patterns/index_pattern/{id}/field/{name}
POST /api/index_patterns/index_pattern/{id}/field/{name}
PUT /api/index_patterns/index_pattern/{id}/field
DELETE /api/index_patterns/index_pattern/{id}/field/{name}
The text was updated successfully, but these errors were encountered: