Commit graph

205 commits

Author SHA1 Message Date
István Zoltán Szabó
0ecce93c3c
[7.x][DOCS] Changes version number in Info API example response (#69143) 2021-02-19 13:29:18 +01:00
István Zoltán Szabó
dd0d85e135
[DOCS] Adds retention_policy to PUT Transform API docs (#68656) (#68910) 2021-02-11 17:19:10 +01:00
Hendrik Muhs
040b9a8229
[7.x][Transform] implement retention policy to delete data from a transform (#67832) (#68814)
add a retention policy to transform to delete data that is considered outdated as part of a
transform checkpoint.

backport #67832
fixes #67916
2021-02-11 08:36:05 +01:00
Adam Locke
22f143b493
[DOCS] Fixing Painless tests (#68157) (#68773)
* Fixing Painless tests.

* Update runtime field context to fix test cases.

* Remove watcher logging from usage API and replace test.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2021-02-09 14:07:37 -05:00
Lee Hinman
8aba3093b0
[7.x] Add the frozen tier node role and ILM phase (#68605) (#68612)
This commit adds the `data_frozen` node role as part of the formalization of data tiers. It also
adds the `"frozen"` phase to ILM, currently allowing the same actions as the existing cold phase.

The frozen phase is intended to be used for data even less frequently searched than the cold phase,
and will eventually be loosely tied to data using partial searchable snapshots (as oppposed to full
searchable snapshots in the cold phase).

Relates to #60848
2021-02-05 16:07:16 -07:00
Igor Motov
a0604825c6
[7.x] Add multi_terms aggs (#67597) (#68490)
Adds a multi_terms aggregation support. The multi terms aggregation works
very similarly to the terms aggregation but supports multiple terms. The goal
of this PR is to add the basic functionality so it is not optimized at the
moment. It will be done in follow up PRs.

Closes #65623
2021-02-04 11:19:25 -05:00
Hendrik Muhs
5d2139aed3 [Transform] refactor cat transform to show more useful information (#68232)
Refactoring of cat transform to show more relevant information. The current cat transform shows a
lot of configuration details, however cat should show operationally useful information. This PR
changes the defaults and also adds when transform did a search last.
2021-02-02 07:31:00 +01:00
Jay Modi
1732a87b04
Logstash Pipeline REST api spec and documentation (#68142)
This commit adds REST api specifications for the Logstash Pipeline APIs
and documentation of the APIs.

Closes #67360
Backport of #67788
2021-01-28 12:21:10 -07:00
Christoph Büscher
06a9aa4cb1 Skip reference/rest-api/usage/line_39 docs test 2021-01-28 13:01:11 +01:00
Adam Locke
050823cb16
[DOCS] [7.x] Update Painless examples to use seat data (#68029) (#68084)
* Adds datetime as a date, which is necessary in setup.

* Updating field context example.

* Fixing sample data, updating context example, and updating runtime example.

* Updating field context and changing runtime field to use seats data.

* Update filter context to use the seats data.

* Updating min-should-match context to use seats data.

* Replacing last mentions of TEST[skip].

* Update usage with watcher response for build error.

* Updating usage API again for watcher.

* Third time's a charm for fixing test cases.

* Adding specific test replacement for watcher logging total.

* Change actors to keyword based on review feedback.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2021-01-27 17:18:43 -05:00
James Rodewig
bfafe4c026
[DOCS] Add security privileges to API docs (#67939) (#68053) 2021-01-27 09:29:12 -05:00
Przemysław Witek
f3207fa102
[7.x] [Transform] Add support for search-time runtime fields. (#67643) (#67821) 2021-01-21 15:05:33 +01:00
James Rodewig
345dd82b06
[DOCS] Document hidden data streams and naming restrictions (#65862) (#67434) 2021-01-13 09:29:17 -05:00
Lisa Cawley
da5662495b
[DOCS] Move find file structure to a new API endpoint (#67314) (#67389) 2021-01-12 12:41:39 -08:00
James Rodewig
2277551a98
[DOCS] Fix timeout parameter defaults (#66111) (#66690) 2020-12-21 09:20:43 -05:00
Lisa Cawley
94e2a14855
[DOCS] Drafts API changes for transform latest function (#66481) (#66618) 2020-12-18 10:11:47 -08:00
Henning Andersen
3dddf72a0f
Autoscaling remove feature flags (#65973) (#66282)
Removed the autoscaling feature flags, autoscaling is now on by default
(though it requires an external system to handle the autoscaling
events). Added experimental notice to all autoscaling related
documentation pages.

Relates #51191
2020-12-14 21:20:10 +01:00
James Rodewig
0a70715206
[DOCS] Add require_alias to Bulk API (#66259) (#66265) 2020-12-14 11:21:26 -05:00
James Rodewig
5e907093b9
[DOCS] Fix search_timeout parameter docs (#66075) (#66125)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: bellengao <gbl_long@163.com>
2020-12-09 13:44:33 -05:00
Luca Cavanna
e7e1eda9a8
Add xpack info and usage endpoints for runtime fields (#66027)
Relates to #59332
2020-12-08 16:41:36 +01:00
Hendrik Muhs
8e377da291
[7.x][Transform] use ISO dates in output instead of epoch millis (#65584) (#65952)
Transform writes dates as epoch millis, this does not work for historic data in some cases or is
unsupported. Dates should be written as such. With this PR transform starts writing dates in ISO
format, but as existing transform might rely on the format it provides backwards compatibility for
old jobs as well as a setting to write dates as epoch millis.

fixes #63787
backport #65584
2020-12-07 17:18:55 +01:00
James Rodewig
050c7ebe23
[DOCS] Correct the default value of wait_for_completion query param (#65800) (#65902)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: bellengao <gbl_long@163.com>
2020-12-04 17:14:42 -05:00
István Zoltán Szabó
31d153b865
[DOCS] Changes wording of pivot parameter in PUT transforms API docs. (#65731) (#65736) 2020-12-02 14:57:43 +01:00
James Rodewig
4bbc00d6fc
[DOCS] Add require_alias query param to reindex API (#65608) (#65609) 2020-11-30 09:48:16 -05:00
James Rodewig
ff454ff0d9
[DOCS] Add rollup V2 API docs (#65398) (#65508)
Changes:

* Documents new `<index>/_rollup` API
* Updates rollup APIs overview page
* Enables rollups V2 in docs integ tests
2020-11-25 11:36:02 -05:00
Christos Soulios
1a940eb5dd
[7.x] Implement aggregations on aggregate metric fields (#64939)
Backports #56745 to 7.x

    In the process of developing a new implementation for the Elasticsearch Rollups functionality we came up with the concept of the aggregate metric field type.

    The aggregate_metric_double field type can store the results of aggregations (currently min, max, sum, value_count and avg are supported - more to come).

    This field allows us to run (min, max, sum, value_count, avg) aggregations on the container field and the field will return the correct metric depending on the aggregation that is computed.
2020-11-12 16:32:00 +02:00
debadair
81bdd672f3
[DOCS] Make system & hidden index info more prominent. (#64839) (#64959)
* [DOCS] Make system & hidden index info more prominent.

* Update docs/reference/api-conventions.asciidoc
2020-11-11 15:16:21 -08:00
James Rodewig
e4c1051c29
[DOCS] Document get pipeline API as multi-target (#64816) (#64827) 2020-11-09 16:28:09 -05:00
Hendrik Muhs
c982163cca [Transform] add support for median absolute deviation (#64634)
add median_absolute_deviation to the list of supported aggs in transform
2020-11-05 14:39:09 +01:00
James Rodewig
aea83909d9
[DOCS] Fix case for 'Boolean' (#64299) (#64341) 2020-10-29 10:04:20 -04:00
James Rodewig
4da10633c6
[DOCS] EQL: Update allow_no_indices default (#63748) (#63890)
Co-authored-by: Adam Locke <adam.locke@elastic.co>
2020-10-19 12:31:12 -04:00
István Zoltán Szabó
f0addee100
[DOCS] Clarifies destination index mappings for Transforms. (#63794) (#63803) 2020-10-19 10:02:50 +02:00
Hendrik Muhs
860e03aab6 [Transform] add support for "missing" aggregation (#63651)
add support for the missing (bucket) aggregation (counts docs with a configured missing field value)
in transform. The output is mapped to name:count, the mapping type is long.
2020-10-15 08:42:48 +02:00
Christoph Büscher
6c99ce70b6 [Docs] Correct default scroll_size for update by query (#63656)
The current _update_by_query documentation mentions a scroll_size default of 100 and later another default of 1000.
We use the default of 1000 defined in AbstractBulkByScrollRequest and this PR changes the documentation accordingly.

Closes #63637
2020-10-14 16:43:12 +02:00
James Rodewig
6257ae4980
[DOCS] Move searchable snapshots to beta (#63436) (#63477) 2020-10-08 09:27:43 -04:00
Lisa Cawley
496c12be29
[DOCS] Add props for searchable snapshots API links (#63420) (#63423) 2020-10-07 09:33:42 -07:00
Gordon Brown
5c8b0662df
Deprecate REST access to System Indices (#63274) (Original #60945)
This PR adds deprecation warnings when accessing System Indices via the REST layer. At this time, these warnings are only enabled for Snapshot builds by default, to allow projects external to Elasticsearch additional time to adjust their access patterns.

Deprecation warnings will be triggered by all REST requests which access registered System Indices, except for purpose-specific APIs which access System Indices as an implementation detail a few specific APIs which will continue to allow access to system indices by default:

- `GET _cluster/health`
- `GET {index}/_recovery`
- `GET _cluster/allocation/explain`
- `GET _cluster/state`
- `POST _cluster/reroute`
- `GET {index}/_stats`
- `GET {index}/_segments`
- `GET {index}/_shard_stores`
- `GET _cat/[indices,aliases,health,recovery,shards,segments]`

Deprecation warnings for accessing system indices take the form:
```
this request accesses system indices: [.some_system_index], but in a future major version, direct access to system indices will be prevented by default
```
2020-10-06 13:41:40 -06:00
James Rodewig
f4ddb43240
[DOCS] Clarify allow_no_indices def (#63209) (#63258) 2020-10-05 13:00:53 -04:00
Lee Hinman
f0f0da2188
[7.x] Add telemetry for data tiers (#63031) (#63140)
Backports the following commits to 7.x:

    Add telemetry for data tiers (#63031)
2020-10-01 12:37:32 -06:00
Tanguy Leroux
42f5d38d9b
Remove REST APIs documentation for experimental Searchable Snapshot APIs (#62217) (#62231)
This commit removes the documentation for some specific Searchable Snapshot REST APIs:
- clear cache
- searchable snapshot stats
- repository stats

These APIs are low-level and are useful to investigate the behavior of snapshot
backed indices but we expect them to be removed in the future or to appear in
a different form.
2020-09-10 16:51:28 +02:00
James Rodewig
6db8ca4113
[DOCS] Split delete index template API docs (#62074) (#62169)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Zaeem <zaeemarshad@users.noreply.github.com>
2020-09-09 10:13:16 -04:00
Francisco Fernández Castaño
2bb5716b3d
Add repositories metering API (#62088)
This pull request adds a new set of APIs that allows tracking the number of requests performed
by the different registered repositories.

In order to avoid losing data, the repository statistics are archived after the repository is closed for
a configurable retention period `repositories.stats.archive.retention_period`. The API exposes the
statistics for the active repositories as well as the modified/closed repositories.

Backport of #60371
2020-09-08 14:01:04 +02:00
Igor Motov
f70a59971a
[7.x] Add rate aggregation (#61369) (#61554)
Adds a new rate aggregation that can calculate a document rate for buckets
of a date_histogram.

Closes #60674
2020-08-25 17:39:00 -04:00
Brandon Morelli
fade7408cd [DOCS] Fix link to quartz crontrigger tutorial (#61531) 2020-08-25 10:49:00 -04:00
James Rodewig
5a2c6f0d4f
[DOCS] http -> https, remove outdated plugin docs (#60380) (#60545)
Plugin discovery documentation contained information about installing
Elasticsearch 2.0 and installing an oracle JDK, both of which is no
longer valid.

While noticing that the instructions used cleartext HTTP to install
packages, this commit replaces HTTPs links instead of HTTP where possible.

In addition a few community links have been removed, as they do not seem
to exist anymore.

Co-authored-by: Alexander Reelsen <alexander@reelsen.net>
2020-07-31 16:16:31 -04:00
James Rodewig
aba785cb6e
[DOCS] Update my-index examples (#60132) (#60248)
Changes the following example index names to `my-index-000001` for consistency:

* `my-index`
* `my_index`
* `myindex`
2020-07-27 15:58:26 -04:00
debadair
284c61ad19
[DOCS] Refactored index-templates topic. (#59737) (#60165)
* [DOCS] Refactored index-templates topic.

* [DOCS] Add separate files.

* [DOCS] Add delete component template.

* Apply suggestions from code review

Co-authored-by: James Rodewig <james.rodewig@elastic.co>

* [DOCS] Incorporated review comments
2020-07-23 19:48:19 -07:00
James Rodewig
f8976505cb
[DOCS] Correct the default value of ignore_throttled param (#60036) (#60086)
Co-authored-by: bellengao <gbl_long@163.com>
2020-07-22 16:53:18 -04:00
Lisa Cawley
9633d503d8
[DOCS] Changes level offset for anomaly detection APIs (#59920) (#59928) 2020-07-20 13:10:54 -07:00
James Rodewig
e7c7ed6493
[DOCS] Fix requests_per_second reindex param (#59871) (#59876)
Corrects the `requests_per_second` query parameter used in the reindex,
delete by query, and update by query API docs.

The parameter defaults to `-1` (no throttle). `0` is not an allowed value.
2020-07-20 10:08:51 -04:00