Commit graph

234 commits

Author SHA1 Message Date
James Rodewig
d3a6847b36
[DOCS] Reuse aliases object properties in API docs (#73421) (#73661)
Changes:
* Reuses the same `aliases` object properties in the following API docs:
  * Clone index API
  * Create index API
  * Put component template API
  * Put legacy index template API
  * Put index template API
  * Rollover index API
  * Shrink index API
  * Simulate template API
  * Split index API
* Updates the `aliases` object properties for the simulate index API docs.

Closes #73044
2021-06-02 08:43:19 -04:00
James Rodewig
465a6a104e
[DOCS] Update alias API docs for data stream aliases (#73419) (#73591)
Updates the docs for several alias APIs for data stream aliases. Also
removes some redundant examples now covered in the [aliases guide][0].

[0]: https://www.elastic.co/guide/en/elasticsearch/reference/master/alias.html
2021-06-01 08:55:09 -04:00
James Rodewig
18423633d7 [DOCS] Change 'wildcard expression' to 'wildcard pattern' 2021-05-26 09:21:04 -04:00
James Rodewig
21ae3440b4
[DOCS] Update alias xrefs (#73380) (#73391)
Updates several internal 'alias' xrefs to point to the aliases guide rather than
API docs.
2021-05-26 08:15:35 -04:00
James Rodewig
91e35883e0
[DOCS] Expand and reuse aliases parameters (#73296) (#73321)
Changes:

* Expands the `aliases` parameter for the create index API to better document
  supported properties.

* Reuses `aliases` parameter in the following API docs:
  * Clone index API
  * Shrink index API
  * Split index API
2021-05-24 08:50:03 -04:00
James Rodewig
066682625e
[DOCS] Update hidden anchor (#73287) (#73288) 2021-05-20 14:49:19 -04:00
James Rodewig
11269618d0
[DOCS] Consolidate routing parameter definitions (#73107) (#73109)
Combines duplicate definitions for the `routing` parameter.
2021-05-14 12:37:07 -04:00
Hendrik Muhs
6175b6dbb4
[7.x][Transform] add support for top metrics (#72311)
add support for the stats and top metrics aggregation in transform. With this change it became
easier to add more multi value aggregations to transform

Limitations:
 - only the 1st element of top_metrics gets consumed by transform[*].
 - all values of stats will be mapped to double if mapping deduction is used, including count,
   sum, min, max

fixes #52236
relates #51925
2021-04-27 17:40:52 +02:00
James Rodewig
d84cac0590
[DOCS] Fix typos (#72227) (#72256)
Co-authored-by: Pierre Grimaud <grimaud.pierre@gmail.com>
2021-04-26 14:18:27 -04:00
James Rodewig
570bbc81f8 [DOCS] Fix data type of include_defaults parameter 2021-04-23 10:07:46 -04:00
James Rodewig
5172fd8058
[DOCS] Clarify timeout and terminate_after parameters (#71713) (#72163)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-04-23 09:53:57 -04:00
James Rodewig
f9daaaf436
[DOCS] Remove internal versioning for concurrency control (#71570) (#72098)
Co-authored-by: Yang Cheng <chengyang2048@163.com>
2021-04-22 15:46:27 -04:00
James Rodewig
404e0b92ca
[DOCS] Document create stored script API (#71493) (#71838) 2021-04-19 09:33:20 -04:00
Tim Brooks
08f81d58bf
Add fleet polling API for global checkpoint (#71705)
Fleet server needs an API to access up to date global checkpoints for
indices. Additionally, it requires a mode of operation when fleet can
provide its current knowledge about the global checkpoints and poll for
advancements. This commit introduces this API in the fleet plugin.
2021-04-14 12:28:17 -06:00
Lyudmila Fokina
3c7731dd3f
Warn users if security is implicitly disabled (#71650)
* Warn users if security is implicitly disabled (#70114)

Elasticsearch has security features implicitly disabled by default for
Basic and Trial licenses, unless explicitly set in the configuration
file.
This may be good for onboarding, but it also lead to unintended insecure
 clusters.
 This change introduces clear warnings when security features are
 implicitly disabled.
 - a warning header in each REST response if security is implicitly
 disabled;
 - a log message during cluster boot.
2021-04-13 20:51:52 +02:00
Nhat Nguyen
5913b79dd3
Allow specify dynamic templates in bulk request (#71518)
This change allows users to specify dynamic templates in a bulk request.

```
PUT myindex
{
  "mappings": {
    "dynamic_templates": [{
      "time_histograms": {
        "mapping": {
          "type": "histogram",
          "meta": {
            "unit": "s"
          }
        }
      }
    }]
  }
}
```

```
POST myindex/_bulk
{ "index": { "dynamic_templates": { "response_times": "time_histograms" } } }
{ "@timestamp": "2020-08-12", "response_times": { "values": [1, 10], "counts": [5, 1] }}
```

Closes #61939
2021-04-10 10:14:11 -04:00
James Rodewig
c757f9e4e7
[DOCS] Fix double spaces (#71082) (#71120) 2021-03-31 11:43:34 -04:00
James Rodewig
994811584a
[DOCS] Move enrich policy object def to API docs (#70825) (#70866) 2021-03-25 09:32:29 -04:00
James Rodewig
0086f6209e
[DOCS] Document date math support for aliases (#70535) (#70567)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Tommmster <tomasninokehoe@gmail.com>
2021-03-18 11:04:18 -04:00
Yannick Welsch
9f1b254c90
Extend searchable snapshots feature usage stats (#70441) (#70466)
Extends the feature usage stats, distinguishing between full_copy and shared_cache style searchable snapshot indices.
2021-03-17 09:39:45 +01:00
Julie Tibshirani
13946ea7e2
Move flattened field to core. (#70122)
This field mapper only lived in its own module so it could be licensed as x-pack
basic. Now it can be moved to core, which matches its status as a core type.

The PR also removes flattened fields from xpack usage stats now that they live
in core. The usage stats were already removed in on master, but this PR was not
backported to avoid a breaking change on 7.x. We have now clarified that usage
stats updates are not considered breaking, so it is safe to backport this
change.
2021-03-11 11:23:28 -08:00
István Zoltán Szabó
e406cc5f8f
[DOCS] Expands transforms docs with CCS info (#70156) (#70241)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-03-11 10:57:51 +01:00
James Rodewig
e52a5ed1b9
[DOCS] Update ingest pipeline xrefs (#70178) (#70227) 2021-03-10 08:42:49 -05:00
Luca Cavanna
eb532691d7
Move runtime fields stats to server (#69487)
Runtime fields usage is currently reported as part of the xpack feature usage API. Now that runtime fields are part of server, their corresponding stats can be moved to be part of the ordinary mapping stats exposed by the cluster stats API.
2021-03-08 12:40:54 +01:00
Gordon Brown
2657496dc7
Change Get Snapshottable Features endpoint to _features (#69755)
The endpoint `_snapshottable_features` is long and implies incorrect
things about this API - it is used not just for snapshots, but also for
the upcoming reset API. Following discussions on the team, this commit
changes the endpoint to `_features` and removes the connection between
this API and snapshots, as snapshots are not the only use for the output
of this API.
2021-03-02 15:33:40 -07:00
James Rodewig
07593e5fb6
[DOCS] Remove duplicate index alias filter def (#69716) 2021-03-01 11:20:07 -05:00
Dimitris Athanasiou
273a107099
[7.x][ML] Expand usage stats for data frame analytics and trained models (#69477) (#69556)
This adds additional statistics into the usage API for data frame analytics
and trained models.

For data frame analytics the added stats are:

  - count of jobs by analysis type
  - stats for peak_usage_bytes

For trained models the added stats are:
  - counts of: total, prepackaged, other (not created by data frame analytics)
  - counts by analysis type based on the inference config
  - stats for estimated heap usage
  - stats for estimated number of operations

Backport of #69477
2021-02-24 19:53:06 +02:00
Benjamin Trent
70e03521fc
[Transform] add support for geo_line aggregation in pivot function (#69299) (#69483)
This commit adds support for the Gold+ licensed `geo_line` aggregation.

This aggregation takes a collection of `geo_point` values and constructs a line
according to some sort value. Adding to transforms allows users to create these
potentially expensive lines out of band of visualizations and then do additional aggs/queries
against the pivoted data.

Examples would be:

"Do these daily user paths ever intersect?"
"Does this path enter and leave this area?"
2021-02-23 16:10:20 -05:00
Lisa Cawley
5a730d4bce
[DOCS] Fixes italics and capitalization (#69387) (#69393) 2021-02-22 14:09:12 -08:00
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