Commit Graph

8209 Commits

Author SHA1 Message Date
James Rodewig bde13769c4 [DOCS] Reword rollup API reqs 2021-01-26 16:04:33 -05:00
James Rodewig 141fa5fe17
[DOCS] Fix explain API anchors (#68007) 2021-01-26 12:02:56 -05:00
Dan Hermann a5add32b15
[DOCS] Network direction processor (#67943) 2021-01-26 09:33:47 -06:00
James Rodewig d9bc9774a8
[DOCS] Add security privileges to repositories monitoring API docs (#67944) 2021-01-26 09:05:56 -05:00
Dimitris Athanasiou 5c961c1c81
[ML] Expand regression/classification hyperparameters (#67950)
Expands data frame analytics regression and classification
analyses with the followin hyperparameters:

- alpha
- downsample_factor
- eta_growth_rate_per_tree
- max_optimization_rounds_per_hyperparameter
- soft_tree_depth_limit
- soft_tree_depth_tolerance
2021-01-26 12:56:41 +02:00
James Rodewig 6b502abc6b [DOCS] Add rollup API prereqs 2021-01-25 13:39:01 -05:00
Dan Hermann b330493a4b
Rename mime_type configuration option to media_type (#67860) 2021-01-25 11:29:12 -06:00
James Rodewig cf214f0acb
[DOCS] Fix metric requirements in rollup V2 API docs (#67922) 2021-01-25 11:51:57 -05:00
James Rodewig 3b0ae0c4e3
[DOCS] Add security privileges to document API docs (#67843) 2021-01-25 09:46:09 -05:00
James Rodewig 6ed537868a
[DOCS] Add security privileges to ingest API docs (#67845) 2021-01-25 08:41:46 -05:00
David Turner e5a15d4fcb
Introduce repository UUIDs (#67829)
Today a snapshot repository does not have a well-defined identity. It
can be reregistered with a different cluster under a different name, and
can even be registered with multiple clusters in readonly mode.

This presents problems for cases where we need to refer to a specific
snapshot in a globally-unique fashion. Today we rely on the repository
being registered under the same name on every cluster, but this is not a
safe assumption.

This commit adds a UUID that can be used to uniquely identify a
repository. The UUID is stored in the top-level index blob, represented
by `RepositoryData`, and is also usually copied into the
`RepositoryMetadata` that represents the repository in the cluster
state. The repository UUID is exposed in the get-repositories API; other
more meaningful consumers will be added in due course.
2021-01-25 12:17:52 +00:00
Rory Hunter c841b2c073
Align JSON logs better with ECS (#67266)
The JSON logs that Elasticsearch produces are roughly in an ECS shape. This PR improves
that alignment.
2021-01-25 10:43:37 +00:00
Adam Locke c5c5d27fa7
[DOCS] Add beta admonition for runtime fields. (#67847)
* Add beta admonition for runtime fields.

* Add beta admonition to search your data page.
2021-01-21 17:10:37 -05:00
Adam Locke 1fb257545f
[DOCS] Add runtime fields to Painless Guide (#67781)
* Adding runtime fields page for Painless context.

* Adds beta admonition to runtime fields and Painless docs.

* Fixing test errors and improving content sections.

* Adding refresh to fix test cases.

* Simplifying the ingest request to include refresh.

* Removing beta (will add in another PR) and updating examples.
2021-01-21 15:52:01 -05:00
Dan Hermann fdbc33d546
[DOCS] mime_type property for Set processor (#67452) 2021-01-21 07:50:05 -06:00
Przemysław Witek d78f39c2ad
[Transform] Add support for search-time runtime fields. (#67643) 2021-01-21 13:27:42 +01:00
Martijn van Groningen e42c009884
Adjust manage_follow_index privilege for promote data stream api (#67773)
This fixes the manage_follow_index builtin privilege so that it can be used
for managing data streams in a follower cluster. In order to successfully
unfollow a data stream the promote data stream and rollover APIs need to be
executed. (This is additional to the close and unfollow APIs).
2021-01-21 09:08:27 +01:00
Jake Landis db4ccb6d07
doc: data stream api move template to prereq (#67787)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-01-20 18:00:21 -06:00
Andras Palinkas f855e5235c
SQL: Implement TO_CHAR() function (#66486)
SQL: Implement the TO_CHAR() function

* The implementation is according to PostgreSQL 13 specs:
https://www.postgresql.org/docs/13/functions-formatting.html
* Tested against actual output from PostgreSQL 13 using randomized inputs
* All the Postgres formats are supported, there is also partial supports
 for the modifiers (`FM` and `TH` are supported)
* Random unit test data generator script in case we need to upgrade the
 formatter in the future
* Documentation
* Integration tests

Co-authored-by: Michał Wąsowicz <mwasowicz7@gmail.com>
Co-authored-by: Andras Palinkas <andras.palinkas@elastic.co>
2021-01-20 18:32:10 -05:00
James Rodewig b7388316b9
[DOCS] Add security privileges to cat API docs (#67467) 2021-01-20 10:19:20 -05:00
James Rodewig a55fc8fdc8
[DOCS] Add security privileges to data stream API docs (#67612) 2021-01-20 09:23:58 -05:00
Dan Hermann 427d135cb6
[DOCS] Network community ID processor for ingest pipelines (#66592) 2021-01-20 08:21:02 -06:00
Ignacio Vera 808b4e71f1
Add support for Spatial Relationships to geo_point field (#67631)
Lucene 8.8 supports to query LatLonPoint field using spatial relationships.
2021-01-20 13:18:28 +01:00
István Zoltán Szabó d8de8f2d73
[DOCS] Fixes typo in decider docs. (#67743) 2021-01-20 10:51:17 +01:00
Lisa Cawley b3dcaa971c
[DOCS] Clarify elasticsearch module for Stack monitoring (#64497) 2021-01-19 16:14:46 -08:00
Lisa Cawley 4d1abd1494
[DOCS] Clarifies default ML and transform node settings (#67671) 2021-01-19 14:19:37 -08:00
David Turner e8cba29d01
Further emphasise filesystem backups don't work (#67634)
In #33102 we added a warning against using filesystem backups.
Experience has shown that the wording we added was insufficiently
general and open to misinterpretation. This commit reworks it to be
clearer.

This commit also clarifies that snapshots are not incremental across
repositories.
2021-01-19 17:55:11 +00:00
David Turner 68a733a347 Adjust resiliency docs for searchable snapshots (#67630)
Today we recommend every index to have at least one replica in our
guidelines for designing a resilient cluster. This advice does not apply
to searchable snapshot indices. This commit adjusts the resiliency docs
to account for this. It also slightly adjusts the wording in the
searchable snapshots docs to be more consistent about the distinction
between a "searchable snapshot" and a "searchable snapshot index".
2021-01-19 17:40:49 +00:00
Adam Locke 744f7c67c8
[DOCS] Updates to the runtime fields docs for 7.11+ (#67484)
* Moving examples to the page for retrieving runtime fields.

* Adding runtime_mappings to request body of search API.

* Updating runtime_mappings properties and adding runtime fields to search your data.

* Updating examples and hopefully fixing build failure.

* Fixing snippet formatting that was causing test failure.

* Adding page in Painless guide for runtime fields.

* Fixing typo.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2021-01-19 10:31:17 -05:00
James Rodewig 3e34247570
[DOCS] Add security privileges to cluster API docs (#67589) 2021-01-19 10:18:59 -05:00
István Zoltán Szabó addb5cbd3a
[DOCS] Adds custom feature processors description to PUT DFA API (#67424)
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
2021-01-19 09:47:32 +01:00
Mayya Sharipova 76482210b8
Add linear function to rank_feature query (#67438)
This adds a linear function to the set of functions available
for rank_feature query

Closes #49859
2021-01-18 11:44:13 -05:00
Dimitris Athanasiou 7574013604
[ML] Remove DFA job states reindexing and analyzing from docs (#67658)
These states do no longer exist as of #67423
2021-01-18 17:39:22 +02:00
Henning Andersen 82726b3939
Autoscaling hide test setup in docs (#67570)
Two APIs showed the test setup in docs, now hidden.
2021-01-17 18:22:27 +01:00
Albert Zaharovits e05d83f7a8
DOC Audit security config change (#66839)
Audit log doc changes about:
* the new security_config_change event type (main scope of this PR)
* remove mentions of the 6.5 audit format changes (the JSON format)
* mention the new archiving and rotation by size (in v8 only)
* mention the request.id event attribute used to correlate audit events
* mention that audit is only available on certain subscription levels
* add an exhaustive audit event example list (because schema became too complex to explain in words 😢 given the new security_config_change events)
* move the ignore policies are explained on a separate page (it was collocated with the logfile output since we had multiple outputs and the policies were specific the the logfile only).

Co-authored-by: Lisa Cawley lcawley@elastic.co

Relates #62916
Closes #29912
2021-01-16 19:09:03 +02:00
Lisa Cawley 2e8ff40901
[DOCS] Add latest method to transform overview (#66767) 2021-01-15 15:07:08 -08:00
James Rodewig 6531bba866
[DOCS] Add test subs for rollover API docs (#67615) 2021-01-15 17:24:28 -05:00
Lisa Cawley 1bf5f8df04
[DOCS] Add latest method to transform tutorial (#66766)
Co-authored-by: Przemysław Witek <przemyslaw.witek@elastic.co>
2021-01-15 13:46:06 -08:00
Benjamin Trent 35f478b618
[ML] [DOCS] adding missing fields to the get trained models API docs (#67590)
Adds missing fields description, inference_config, and input to the GET trained models API documentation
2021-01-15 13:20:53 -05:00
Benjamin Trent 24ebcc8c24
[ML] [DOCS] update find-structure reference docs (#67586)
The text structure finder API documentation had many references to the "files". While this is one use of the API, the API now has a more generic name. This commit replaces many references to the word "file" to the more generic word "text".
2021-01-15 12:19:38 -05:00
James Rodewig 36e6d8a6d7
[DOCS] Fix typo (#67576) (#67582)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Mark Ramotowski <mark@intellectionsoftware.com>
2021-01-15 11:14:07 -05:00
Thibault Richard 59d5a91c5a
Fix typo in autoscaling policy doc (#67575) 2021-01-15 15:21:39 +01:00
Benjamin Trent 5ac364e4e7
[ML] [DOCS] expounding on ml autoscaling decider docs (#67463)
This commit adds more details and clarifications to the machine learning autoscaling decider documentation.
2021-01-15 08:15:43 -05:00
James Rodewig fa1047f037
[DOCS] Fix title casing (#67529) 2021-01-14 13:01:40 -05:00
debadair 3b7f2f50c6
Rebranded breaking changes as the migration guide (#67496)
* Rebranded breaking changes as the migration guide

* Fixed heading level
2021-01-14 09:14:48 -08:00
James Rodewig 6f02735f86 [DOCS] Fix ILM user note 2021-01-14 10:08:24 -05:00
James Rodewig e3640c15d6
[DOCS] Add doc values restriction for wildcard fields (#67503) (#67512)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: AndyHunt66 <andrew.hunt@elastic.co>
2021-01-14 09:39:31 -05:00
James Rodewig 5a047d5961
[DOCS] Fix cat API list order (#67486) 2021-01-13 16:41:44 -05:00
James Rodewig e795ab965a
[DOCS] Fix API titles (#67475) 2021-01-13 15:15:37 -05:00
James Rodewig 67f113314d
[DOCS] Fix acasting for agg types (#67469) 2021-01-13 14:44:54 -05:00
Benjamin Trent a437af3406
[ML] rename the text structure action and update required permissions (#67388)
This renames the text structure finder action to match the plugin name.
Also, this adds a new reserved role name so that adding specific permissions for this API is simple.
2021-01-13 14:11:25 -05:00
James Rodewig e17672b220 [DOCS] Fix capitalization 2021-01-13 12:48:33 -05:00
Lisa Cawley 11640bc4ce
[DOCS] Add space limitations for transforms (#66810) 2021-01-13 08:58:06 -08:00
James Rodewig 518d71d1e3
[DOCS] Document hidden data streams and naming restrictions (#65862) 2021-01-13 09:09:15 -05:00
István Zoltán Szabó 085a288af5
[DOCS] Adds hyperparameter metadata property to GET trained models API docs. (#67412) 2021-01-13 13:49:51 +01:00
James Rodewig 9099daef7b
[DOCS] Note ILM uses snapshot of user privileges (#67393) 2021-01-12 16:35:01 -05:00
Henning Andersen cc30ae8c16
Autoscaling APIs not experimental (#67202)
We no longer regard the autoscaling APIs experimental though they are
only intended for use by ESS/ECE/ECK. This commit updates the docs
to reflect this and adds a minimal set of documentation for the
feature.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-01-12 22:03:18 +01:00
Lisa Cawley 401d302c69
[DOCS] Move find file structure to a new API endpoint (#67314) 2021-01-12 11:59:45 -08:00
Adam Locke 3af8179a0e
[DOCS] Updating dynamic mappings for runtime fields (#67301)
* Updating dynamic mappings for runtime fields.

* Updating example to fix test case and be more accurate.

* Changing header level for dynamic runtime.

* Clarifying language around ip fields in dynamic template.
2021-01-12 11:48:14 -05:00
Yang Cheng 168d98b7dd
limit the depth of nested bool queries (#66204)
limit the depth of nested bool queries 

Introduce a new node level setting `indices.query.bool.max_nested_depth`
that controls the depth of nested bool queries.
Throw an error if a nested depth of a bool query exceeds the maximum
allowed nested depth.

Closes #55303
2021-01-12 09:36:09 -05:00
James Rodewig cb3e0051e0
[DOCS] Make cat API verbose query param explicit (#67300) 2021-01-11 17:19:23 -05:00
James Rodewig 4c0a02ddee
[DOCS] Update example for GET /_cat/aliases (#67263) (#67296)
Co-authored-by: Douglas Robert Wallin <32135045+wallind@users.noreply.github.com>
2021-01-11 16:37:37 -05:00
Przemko Robakowski 6dfdacdc8f
Remove watcher history clean up from monitoring (#67154)
Monitoring should not clean up watcher history - indices are managed by ILM policy now.
It was deprecated in 7.x, removing it now in 8
2021-01-11 21:35:29 +01:00
James Rodewig d6e6f75c6f
[DOCS] Update cat templates API examples for composable templates (#67283) 2021-01-11 14:38:38 -05:00
James Rodewig c77f41a421
[DOCS] Mark template exists API as legacy (#67286) 2021-01-11 14:14:44 -05:00
Adam Locke 96605fb8ce
Minor revision missed in merge. (#67282) 2021-01-11 13:50:06 -05:00
James Rodewig 86814df052
[DOCS] Clean up index template xrefs (#67264) 2021-01-11 12:38:09 -05:00
Adam Locke 8f2df51829
[DOCS] Runtime fields improvements (#66530)
* Changes for dynamic templates.

* Clarifying language around dynamic:true and dynamic:runtime.

* Clarifying edits and some restructuring.

* Overhauling the Mapping page.

* Incorporating changes from #66911.

* Reworking mapping page to focus on dynamic vs. explicit mapping.

* Reordering to fix test failure.

* Further clarifying mapping page.

* Reordering sections, adding headings to examples, and other clarifications.

* Incorporating review feedback.

* Adding description of  for Painless script.
2021-01-11 12:31:26 -05:00
Benjamin Trent af179ab2f5
[ML] move find file structure to a new API endpoint (#67123)
This introduces a new `text-structure` plugin. This is the new home of the find file structure API. 

The old REST URL is still available but is deprecated.

The new URL is: `_text_structure/find_structure`. All parameters and behavior are unchanged.

Changes to the high-level REST client and docs will be in separate commit.

related to: https://github.com/elastic/elasticsearch/issues/67001
2021-01-11 08:56:02 -05:00
István Zoltán Szabó f1f41e4e36
[DOCS] Comments out group by example and link. (#67241) 2021-01-11 12:38:38 +01:00
David Turner ec08f924c7
Introduce ?wait_for_active_shards=index-setting (#67158)
In 7.x the close indices API defaulted to `?wait_for_active_shards=0`
but from 8.0 it defaults to respecting the index settings instead.  This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and emits a
deprecation warning indicating that the default no longer needs to be
used and will be unsupported in future.

In 7.x a follow up PR will introduce support for the same
`index-setting` value for this parameter and will emit deprecation
warnings if users try and use the default instead.

Relates #66419
2021-01-11 08:33:16 +00:00
Nhat Nguyen 59082c0d3a
Retry point in time on other copy when possible (#66713)
Relates #61062
2021-01-09 09:43:59 -05:00
James Rodewig fea769d69b
[DOCS] Minor reword (#67183) 2021-01-07 14:04:29 -05:00
Yulia Čech 963c3284b3
[DOCS] Update data streams list screenshots and description of "delete data stream" (#67145)
* [DOCS] Updated data streams list screenshots and delete functionality description

* Update docs/reference/data-streams/set-up-a-data-stream.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update set-up-a-data-stream.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-01-07 16:45:26 +01:00
James Rodewig 58742610c1
[DOCS] Rewrite agg breakdown docs for profile API (#67042) 2021-01-05 16:56:53 -05:00
Lisa Cawley 97dedbd192
[DOCS] Add beta qualifier to transform latest APIs (#67036) 2021-01-05 12:28:19 -08:00
Lisa Cawley eff9dfc3a4
[DOCS] Clarify impact of delayed data in anomaly detection (#66816)
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
2021-01-05 12:14:51 -08:00
James Rodewig 9cca614259
[DOCS] Fix formatting for `fieldata` docs (#67017) 2021-01-05 12:19:07 -05:00
Jacob Ouellette 25cdb2f09a
[DOCS] Remove duplicate xpack.enabled setting in example (#66897) 2021-01-05 09:59:06 -05:00
James Rodewig 9fb7bacbc1
[DOCS] Clarify memlock settings in `/etc/security/limits.conf` (#66694) 2021-01-05 09:02:40 -05:00
István Zoltán Szabó d3ad9fe632
[DOCS] Improves inference processor linking and docs (#66119) 2021-01-05 09:42:06 +01:00
Przemyslaw Gomulka 5e74f79e22
Support response content-type with versioned media type (#65500)
This commit allows returning a correct requested response content-type - it did not work for versioned media types.
It is done by adding new vendor specific instances to XContent and TextFormat enums. These instances can then "format" the response content type string when provided with parameters. This is similar to what SQL plugin does with its media types.

#51816
2021-01-05 09:23:22 +01:00
James Rodewig 0f50732068
[DOCS] Note breaking change applies to legacy rollup jobs (#66894) 2020-12-30 09:59:24 -05:00
James Rodewig 751bc28baa
[DOCS] Add `nodes` and `parent_task_id` parms (#66562) 2020-12-30 08:50:27 -05:00
James Rodewig 68a83473d3
[DOCS] Update rollup def (#66870) 2020-12-29 14:10:35 -05:00
James Rodewig b1e747d8a9
[DOCS] Fix attribute typo (#66858) 2020-12-29 09:45:06 -05:00
James Rodewig a488794063 [DOCS] Minor reword 2020-12-28 12:50:51 -05:00
James Rodewig 00837b3ffc
[DOCS] Add xref to agg metric double field type (#66831) 2020-12-28 09:45:09 -05:00
Ioannis Kakavas bd873698bc
Ensure CI is run in FIPS 140 approved only mode (#64024)
We were depending on the BouncyCastle FIPS own mechanics to set
itself in approved only mode since we run with the Security
Manager enabled. The check during startup seems to happen before we
set our restrictive SecurityManager though in
org.elasticsearch.bootstrap.Elasticsearch , and this means that
BCFIPS would not be in approved only mode, unless explicitly
configured so.

This commit sets the appropriate JVM property to explicitly set
BCFIPS in approved only mode in CI and adds tests to ensure that we
will be running with BCFIPS in approved only mode when we expect to.
It also sets xpack.security.fips_mode.enabled to true for all test clusters
used in fips mode and sets the distribution to the default one. It adds a
password to the elasticsearch keystore for all test clusters that run in fips
mode.
Moreover, it changes a few unit tests where we would use bcrypt even in
FIPS 140 mode. These would still pass since we are bundling our own
bcrypt implementation, but are now changed to use FIPS 140 approved
algorithms instead for better coverage.

It also addresses a number of tests that would fail in approved only mode
Mainly:

    Tests that use PBKDF2 with a password less than 112 bits (14char). We
    elected to change the passwords used everywhere to be at least 14
    characters long instead of mandating
    the use of pbkdf2_stretch because both pbkdf2 and
    pbkdf2_stretch are supported and allowed in fips mode and it makes sense
    to test with both. We could possibly figure out the password algorithm used
    for each test and adjust password length accordingly only for pbkdf2 but
    there is little value in that. It's good practice to use strong passwords so if
    our docs and tests use longer passwords, then it's for the best. The approach
    is brittle as there is no guarantee that the next test that will be added won't
    use a short password, so we add some testing documentation too.
    This leaves us with a possible coverage gap since we do support passwords
    as short as 6 characters but we only test with > 14 chars but the
    validation itself was not tested even before. Tests can be added in a followup,
    outside of fips related context.

    Tests that use a PKCS12 keystore and were not already muted.

    Tests that depend on running test clusters with a basic license or
    using the OSS distribution as FIPS 140 support is not available in
    neither of these.

Finally, it adds some information around FIPS 140 testing in our testing
documentation reference so that developers can hopefully keep in
mind fips 140 related intricacies when writing/changing docs.
2020-12-23 21:00:49 +02:00
James Rodewig 6493e6575e
[DOCS] Update rollup xrefs (#66799) 2020-12-23 13:49:15 -05:00
Nik Everett 3e3152406a
Bust the request cache when the mapping changes (#66295)
This makes sure that we only serve a hit from the request cache if it
was build using the same mapping and that the same mapping is used for
the entire "query phase" of the search.

Closes #62033
2020-12-23 13:19:02 -05:00
James Rodewig ed43be8c42
[DOCS] Fix typo (#66779) (#66781)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Sandeep Kanabar <sandeepkanabar@gmail.com>
2020-12-23 09:24:30 -05:00
James Rodewig 3f528945f0 [DOCS] Fix typo 2020-12-22 13:36:03 -05:00
Lisa Cawley 6b463a7b7a
[DOCS] Clarify use of CCS on ML nodes (#66616)
Co-authored-by: David Roberts <dave.roberts@elastic.co>
2020-12-22 10:11:09 -08:00
James Rodewig d8d5b8c49a
[DOCS] Increment section blocks (#66751) 2020-12-22 10:29:11 -05:00
James Rodewig c24f9e125b
[DOCS] Minor rewording (#66744) 2020-12-22 09:24:04 -05:00
Alan Tan ee6cbef7c2
[DOCS] Fix typo (#66721) 2020-12-22 09:02:33 -05:00
James Rodewig e9c1cded98
[DOCS] Fix outdated heap references (#66646) 2020-12-21 14:01:12 -05:00
James Rodewig 523324c1c8
Add info on how to disable cleaner service (#64655) (#66704)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Julien Guay <guay_j@yahoo.fr>
2020-12-21 13:22:45 -05:00
James Rodewig 10b036e934
[DOCS] Fix timeout parameter defaults (#66111) 2020-12-21 09:02:06 -05:00