Commit Graph

8906 Commits

Author SHA1 Message Date
Lisa Cawley c1ba949aee
[DOCS] Fixes bulleted list in ML aggregations (#75806) 2021-07-28 11:29:48 -07:00
James Rodewig 318927341e [DOCS] Remove unneeded screenshot from 'Size your shards' docs 2021-07-27 15:47:10 -04:00
James Rodewig a8d466bb43
[DOCS] Update index management screenshots for new EUI theme (#75754) 2021-07-27 14:51:24 -04:00
James Rodewig eaeb7723f3
[DOCS] Update ingest pipeline screenshots for new EUI theme (#75744) 2021-07-27 13:36:12 -04:00
Keith Massey ddc3b37580
Adding shard count to node stats api (#75433)
* Adding shard count to _nodes/stats api

Added a shards section to each node returned by the _nodes/stats api. Currently this new section only contains a total count of all shards on the node.
2021-07-27 10:39:53 -05:00
David Harsha ed7a65e053
Allow specifying index in pinned queries (#74873)
The current `ids` option doesn't allow pinning a specific document in a
single index when searching over multiple indices. This introduces a
`documents` option, which is an array of `_id` and `_index`
fields to allow index-specific pins.

Closes https://github.com/elastic/elasticsearch/issues/67855.
2021-07-27 15:55:07 +03:00
István Zoltán Szabó 60f3c77e3f
[DOCS] Adds p-value heuristic to significant terms aggregation (#75369)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-07-27 09:12:45 +02:00
Lisa Cawley b63815ef58
[DOCS] Removes ml-cpp PR from release notes (#75717) 2021-07-26 16:45:15 -07:00
James Rodewig 78607b5abd
[DOCS] Fix formatting for several 8.0 breaking changes (#75715) 2021-07-26 18:46:58 -04:00
James Rodewig 813c9fe040 [DOCS] Relocate tip for Fleet APIs 2021-07-26 18:14:05 -04:00
James Rodewig ec0ae34ecb
[DOCS] Fix typo (#75635) (#75705)
Co-authored-by: Glen Smith <github@smithsrock.com>
2021-07-26 18:05:22 -04:00
Eric Davis 9dda29fcf4
[DOCS] Add tip for Kibana Fleet APIs (#75711)
Adds a tip to direct external search users to the Kibana Fleet APIs.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-07-26 17:59:31 -04:00
James Rodewig ab8766777b
[DOCS] Fix tags and xrefs for 8.0 breaking changes (#75712)
A tag is required to reuse Elasticsearch breaking changes in the Stack
Guide. To display properly, the breaking changes must use external
links rather than xrefs.

This PR correctly places those tags for reuse. It also replaces
several xrefs with external links for reuse.
2021-07-26 17:43:39 -04:00
Lisa Cawley 990b548694
[DOCS] Fixes link in EQL breaking changes (#75710) 2021-07-26 14:28:59 -07:00
James Rodewig ced1c01dfc
[DOCS] Fix formatting for 8.0 breaking changes (#75709)
Fixes a few malformed collapsible sections for breaking changes.
2021-07-26 17:17:34 -04:00
Lisa Cawley a3322c8e96
[DOCS] Adds ml-cpp PRs to release notes (#75703) 2021-07-26 13:22:11 -07:00
James Rodewig 6078349106
[DOCS] Update index template API docs for data stream aliases (#75688)
With #73867, you can use component and index templates to add data stream
aliases.
2021-07-26 14:42:54 -04:00
Lisa Cawley 02d851e50e
[DOCS] Drafts trained model deployment APIs (#75497) 2021-07-26 09:49:37 -07:00
István Zoltán Szabó 7e7a386078
[DOCS] Comments out link that points to outlier detection example (#75687) 2021-07-26 16:36:57 +02:00
Dan Hermann d7ecd57095
[DOCS] Updates for data stream aliases (#75654) 2021-07-26 08:29:20 -05:00
James Rodewig 1d68baf065 [DOCS] Fix typo 2021-07-23 15:10:12 -04:00
James Rodewig 8a48d7ff12 [DOCS] Reword for clarity 2021-07-23 14:55:16 -04:00
Dan Hermann bf64ebf90b
[DOC] Add ingest error metadata (#75653)
These docs were accidentally removed in #70253.
2021-07-23 11:54:03 -04:00
James Rodewig 39ae8d07ae
[DOCS] Update Kibana dev console screenshots for new EUI theme (#75626)
Changes:

* Updates the Kibana dev console screenshots to use the new EUI theme
* Corrects an example SQL query in one screenshot. The previous screenshot used `_/sql`, which is not a valid URI.
2021-07-22 09:40:03 -04:00
Przemyslaw Gomulka 1127f4fd31
[doc] Document workaround for slow log levels (#75438)
settings for slow log levels are removed in v8. This commit adds a
documentation to how to mimic the behaviour
relates #57591
relates #73718
2021-07-22 10:53:51 +02:00
James Rodewig 88eea37ddd [DOCS] Fix typos 2021-07-21 16:24:00 -04:00
James Rodewig 6b102733b4 [DOCS] Retitle 'SQL access' page to 'SQL' 2021-07-21 09:57:22 -04:00
James Rodewig ea635d67a6
[DOCS] SQL: Add formal API docs (#75506)
Adds formal API docs for the following APIs:

* Clear SQL cursor
* SQL search
* SQL translate

Other changes:

* Removes and redirects the "Supported REST parameters section." This is now covered in the SQL search API docs.
* Updates a few related xrefs.

Closes #75085
2021-07-21 08:04:21 -04:00
Adrien Grand feb6620d14
`indices.query.bool.max_clause_count` now limits all query clauses (#75297)
In the upcoming Lucene 9 release, `indices.query.bool.max_clause_count` is
going to apply to the entire query tree rather than per `bool` query. In order
to avoid breaks, the limit has been bumped from 1024 to 4096.

The semantics will effectively change when we upgrade to Lucene 9, this PR
is only about agreeing on a migration strategy and documenting this change.

To avoid further breaks, I am leaning towards keeping the current setting name
even though it contains `bool`. I believe that it still makes sense given that
`bool` queries are typically the main contributors to high numbers of clauses.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-07-21 12:16:30 +02:00
Lisa Cawley 70b870ee7f
[DOCS] Fixes nesting of datafeed config in APIs (#75502) 2021-07-20 11:27:15 -07:00
David Turner 68db1fd780
Advise away from a ping schedule on remote connxns (#75513)
Today the docs for remote cluster connections use `ping_schedule` fairly
liberally, and don't mention that you should prefer TCP keepalives
wherever possible. This commit reduces the use of this setting in the
examples and adjusts the description of the setting to include a note
about TCP keepalives instead.
2021-07-20 19:09:13 +01:00
Mark Tozzi 7af39dbc35
Remove deprecated date histo interval (#75000)
Date histogram interval parameter was deprecated in 7.2, in favor of the more specific fixed_interval and calendar_interval parameters.  The old logic used some poorly understood guessing to decide if it should operate in fixed or calendar mode.  The new logic requires a specific choice by the user, which is more explicit.  In 7.x REST compatibility mode, we will parse the interval as calendar if possible, and otherwise interpret it as fixed.
2021-07-20 13:08:45 -04:00
Ioannis Kakavas 13c8ee1015
Reset elastic password cli tool (#74892)
This change introduces a CLI tool that can be used to create
enrollment tokens. It doesn't require credentials, but simply
write access to the local filesystem of a node. It uses an
auto-generated user in the file-realm with superuser role.

For this purpose, this change also introduces a base class for a
CLI tool that can be used by any CLI tool needs to perform actions
against an ES node as a superuser without requiring credentials
from the user. It is worth noting that this doesn't change our
existing thread model, because already an actor with write access
to the fs of an ES node, can become superuser (again, by
adding a superuser to the file realm, albeit manually).
2021-07-20 13:42:14 +03:00
Martijn van Groningen 3dde09a7b4
Add filter support to data stream aliases (#74784)
This allows specifying a query as filter on data stream alias,
which will then always be applied when searching via this alias.

Relates #66163
2021-07-20 11:21:27 +02:00
James Rodewig 63cdb0d172
[DOCS] Add object subfield example for update API (#75460)
Changes:
* Adds an example script for removing a subfield from an object
* Makes several other example snippets more modular.

Relates to 60532646df and
074f84dde5
2021-07-19 14:43:04 -04:00
James Rodewig 77c0302ea9 Fix TOC order 2021-07-19 13:48:57 -04:00
James Rodewig 83be31b1f6 [DOCS] Remove leading slashes 2021-07-19 13:42:41 -04:00
Lee Hinman 3d5843a236
Allow ILM move-to-step without `action` or `name` (#75435)
* Allow ILM move-to-step without `action` or `name`

This commit enhances ILM's move-to-step API to allow dropping the `name`, or dropping both the
`action` and `name`. For example:

```json
POST /_ilm/move/foo-1
{
  "current_step": {
    "phase": "hot",
    "action": "rollover",
    "name": "check-rollover-ready"
  },
  "next_step": {
    "phase": "warm",
    "action": "forcemerge"
  }
}
```

Will move to the first step in the `forcemerge` action in the `warm` phase (without having to know
the specific step name).

Another example:

```json
POST /_ilm/move/foo-1
{
  "current_step": {
    "phase": "hot",
    "action": "rollover",
    "name": "check-rollover-ready"
  },
  "next_step": {
    "phase": "warm"
  }
}
```

Will move to the first step in the `warm` phase (without having to know the specific action name).

Bear in mind that the execution order is still entirely an implementation detail, so "first" in the
above sentences means the first step that ILM would execute.

Resolves #58128

* Apply Andrei's wording change (thanks!)

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>

* Log index and policy name when the concrete step key can't be resolved

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>
2021-07-19 12:10:25 -04:00
James Rodewig 1f04319826
[DOCS] Document time series dimension mapping parameters (#75414)
Changes:
* Documents the `dimension` mapping parameter for `ip`, `keyword`, and `numeric`
  fields.

* Documents the `index.mapping.dimension_fields.limit` index setting.
2021-07-19 11:24:30 -04:00
Robin Clarke cee83f753a
[DOCS] Correct docs for deprecation logging (#75361)
By default, `logger.deprecation.level` logs messages at the `DEPRECATION` level. This updates
and reorganizes the related docs.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-07-19 10:55:27 -04:00
Tim Vernum dbfd86a56c
Remove support for configurable PKCS#11 keystores (#75404)
In theory, Elasticsearch supported configuring a PKCS#11 keystore
anywhere where a keystore/truststore could be used. For example:

    xpack.security.http.ssl.keystore.type: pkcs11

However, this support was poorly tested and broken.
This commit removes PKCS#11 support from any configurable SSL context.

It does not affect the ability to use a PKCS#11 keystore as the JRE's
system default keystore/truststore.
2021-07-19 17:56:15 +10:00
István Zoltán Szabó 9ef156df9f
[DOCS] Adds peak_model_bytes and assignment_memory_basis to GET model snapshot API docs (#75413) 2021-07-16 17:12:47 +02:00
James Rodewig b79e4a594d
[DOCS] Fix broken doc url values in JSON API spec (#75385)
Fixes a broken link in the `documentation.url` for the field usage stats API and
enroll Kibana API.

These broken links caused the build for the JS client docs to fail.
2021-07-15 13:46:00 -04:00
Ioannis Kakavas cb37989bd9
Add a tool for creating enrollment tokens (#74890)
This change introduces a CLI tool that can be used to create
enrollment tokens. It doesn't require credentials, but simply
write access to the local filesystem of a node. It uses an
auto-generated user in the file-realm with superuser role.

For this purpose, this change also introduces a base class for a
CLI tool that can be used by any CLI tool needs to perform actions
against an ES node as a superuser without requiring credentials
from the user. It is worth noting that this doesn't change our
existing thread model, because already an actor with write access
to the fs of an ES node, can become superuser (again, by
adding a superuser to the file realm, albeit manually).

Co-authored-by: Adam Locke <adam.locke@elastic.co>
2021-07-15 16:55:35 +03:00
Yannick Welsch db814f403b
Track Lucene field usage (#74227)
Adds a field usage API that reports shard-level statistics about which Lucene fields have been accessed, and which
parts of the Lucene data structures have been accessed.

Field usage statistics are automatically captured when queries are runnning on a cluster. A shard-level search request
that accesses a given field, even if multiple times during that request, is counted as a single use.
2021-07-14 13:21:11 +02:00
Lisa Cawley c8c7f0ef52
[DOCS] Anomaly detection: Visualize delayed data (#75098) 2021-07-13 18:06:07 -07:00
Mayya Sharipova 23781bb555
Remove xpack actions for vector field (#75017)
We have already decided not to have xpack usage for field mappers
(see #53076). As mappings stats of all fields is already tracked
in cluster stats.
Moreover xpack usage for vector field is a quite expensive operation
(see #74974).

This removes xpack actions for vector field.
2021-07-13 09:52:50 -04:00
James Rodewig a9ed7dc1eb
[DOCS] Document async SQL APIs (#75078)
Adds formal API docs and JSON specs for the following APIs:

* Get async SQL search
* Get async SQL search status
* Delete async SQL search

Closes #74845
2021-07-12 10:12:02 -04:00
James Rodewig 75c585c0f1
[DOCS] Mute snippet tests for #75069 (#75237) 2021-07-12 09:50:18 -04:00
James Rodewig d9597da0ef
[DOCS] Update security prereqs for delete async EQL API (#75091) 2021-07-12 08:49:55 -04:00