Skip to content
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

Ingest API #5199

Closed
Bargs opened this issue Oct 26, 2015 · 26 comments
Closed

Ingest API #5199

Bargs opened this issue Oct 26, 2015 · 26 comments

Comments

@Bargs
Copy link
Contributor

Bargs commented Oct 26, 2015

This feature was removed from 5.0. It does not currently have a target release because it will most likely require some changes.

Related to #3709

Goal is to provide API endpoints for the creation of Kibana index patterns and index templates. These will be implemented in the Kibana server.

Here is a rough initial stab at what the endpoints might look like:

POST /api/kibana/ingest
Create a new index pattern and template.

Requires the JSON formatted index pattern in the body of the request.
Properties include:

  • title: String (Required)
  • timeFieldName: String (optional, only needed for time based index patterns)
  • intervalName: String
  • fields: Object (optional, auto-generated if missing and existing indexes match pattern)
  • fieldFormatMap: Object (optional, map of non-default formatters to user for fields)

Need a place for mapping info. This might go in the fields object, or it might go in a separate property like fieldFormatMap

Title will be used as the document ID.

DELETE /api/kibana/ingest/{id}
Delete an index pattern and its template.

@ltutar
Copy link

ltutar commented Nov 4, 2015

+1 for this feature

@dj-wasabi
Copy link

+1 👍

@Bargs Bargs mentioned this issue Nov 17, 2015
@bvoss
Copy link

bvoss commented Nov 23, 2015

+1

1 similar comment
@acs
Copy link
Contributor

acs commented Nov 30, 2015

+1

@trekr5
Copy link

trekr5 commented Dec 7, 2015

Hi,

Is this endpoint now available for Kibana?

@Bargs
Copy link
Contributor Author

Bargs commented Dec 7, 2015

Hi @trekr5

This feature is still in progress and hasn't been merged yet.

@d7h
Copy link

d7h commented Dec 15, 2015

+1

@samcday
Copy link

samcday commented Dec 15, 2015

Hey @Bargs - we super-duper want this feature. How far through implementation are you? Would love to roll up our sleeves and help if your bandwidth is split across other duties.

@Bargs
Copy link
Contributor Author

Bargs commented Dec 15, 2015

Hi @samcday, the implementation for this is almost complete. You can follow its progress in my PR #5213

@Slach
Copy link

Slach commented Dec 19, 2015

+1

@ydixken
Copy link

ydixken commented Dec 30, 2015

+1 thanks!

@Bargs Bargs changed the title Index Pattern API Ingest API Jan 6, 2016
@DanyC97
Copy link

DanyC97 commented Jan 14, 2016

on which release will this make it ?

@Bargs
Copy link
Contributor Author

Bargs commented Jan 14, 2016

It's been merged into master, so 5.0.

@DanyC97
Copy link

DanyC97 commented Jan 14, 2016

@Bargs oh i see...shame as i believe is long way till will be released. I was hopping will get into current minor 4.x release

@ltutar
Copy link

ltutar commented Jan 15, 2016

+1 for minor 4.x. release

@brhahlen
Copy link

+1

@FireDrunk
Copy link

Very cool indeed if this would be possible for 4.x.minors!

@rabbenhuis
Copy link

+1 for minor 4.x. release

@ProgressiveAstronaut
Copy link

Great ! We'll be very excited once it is available!

@schmandforke
Copy link

hey,

is this feature available in Kibana 5.x ? You added the label but i found no further documentation about that API call.
I think this is a very essential feature for automation purpose.

Thanks

@Bargs
Copy link
Contributor Author

Bargs commented Feb 23, 2017

Hi @schmandforke, this feature was removed from 5.0. It does not currently have a target release because it will most likely require some changes.

@schmandforke
Copy link

Hey @Bargs,

found a solution to realize this:

curl 'http://{KIBANASERVER}:{KIBANAPORT}/es_admin/.kibana/index-pattern/foobar-*/_create' -XPOST -H 'Content-Type: application/json' -H 'Accept: application/json, text/plain, */*' -H 'kbn-version: 5.2.0' --data-binary '{"title":"foobar-*","timeFieldName":"@timestamp"}'

I actually not know, how long this route will exists, but by now - it works like a charm ;-)

Thanks

@Bargs
Copy link
Contributor Author

Bargs commented Feb 23, 2017

@schmandforke that's just a proxy for ES requests that we have in the Kibana backend. It's no different than sending the same request to elasticsearch directly. We'd like to get rid of the proxy eventually, but I don't think it will go away any time soon.

@rocket-ron
Copy link

+1 for this feature - very badly needed.

Realizing that this has been put aside for the moment, a good substitute might be an unofficial gist showing curl commands to do things like add an index pattern or create a scripted field, etc.

@falkenbt
Copy link

Here's a very simple example for creating index patterns and setting a default by (ab)using the Kibana "Api":
https://gist.github.com/falkenbt/cace7f0bd1329d18699c022242491857

@sandstrom
Copy link

If you would prefer a method for loading dashboards and indexpatterns from the file-system (for use with Chef, Puppet, Salt, etc) please vouch for it here: #2310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests