Commit Graph

10327 Commits

Author SHA1 Message Date
David Turner 822dc713d8
Add note on name resolution during startup (#95266)
Notes that the transport publish address is resolved once during
startup, plus advice to ensure that this name resolution doesn't vary by
location.
2023-04-17 14:42:15 +01:00
Przemysław Witek 2b70165ffd
[Transform] Allow specifying destination index aliases in the Transform's dest config (#94943) 2023-04-17 15:08:43 +02:00
Mayya Sharipova 32c17d79c5
Increase max number of vector dims to 2048 (#95257)
Currently Lucene limits the max number of vector dimensions to 1024.
This commit overrides KnnFloatVectorField and KnnByteVectorField
classes to increase the limit to 2048 for indexed vectors in ES.
2023-04-17 09:05:49 -04:00
David Kyle 7d90c519ef
[ML] Add embedding_size to text embedding config (#95176) 2023-04-17 11:49:35 +01:00
Andrei Dan 731e6dd097
GET _lifecycle returns data streams without lifecycle (#95192)
This changes the `GET _data_stream/ds_name/_lifecycle` endpoint to
return the data stream name even if it doesn't have a lifecycle
configured.

e.g.
```
{
  "data_streams": [
    {
      "name": "logs-nginx"
    }
  ]
}
```

* Fix xcontent and tests

* Update docs

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-04-17 10:35:22 +01:00
David Turner b4b9292ce9
Small changes to corruption troubleshooting docs (#95265)
- Mention that third-party software may be to blame too
- Mention `strace` as a last resort
- Minor rewordings
2023-04-17 09:07:27 +01:00
Joe Gallo 9bc09d576a
Fix ignore_missing docs for a couple of Ingest processors (#95244) 2023-04-13 16:34:40 -04:00
Aurélien FOUCRET 9071d114f5
[Ingest Processor] Add `ignore_missing` param to the `uri_parts` ingest processor. (#95068) 2023-04-13 15:11:19 +02:00
David Kilfoyle 2c8e29807e
[DOCS] Add note about /tmp removal (#95166) 2023-04-13 08:39:53 -04:00
Andrei Dan 83402605ea
Remove the lifecycle field in the PUT _lifecycle request (#95201)
This removes a redundant `lifecycle` field in the `PUT _lifecycle`
request.

Before we had
```
PUT _data_stream/logs-nginx/_lifecycle
{
    "lifecycle": {
        "data_retention": "7d"
    }
}
```

This changes the request to
```
PUT _data_stream/logs-nginx/_lifecycle
{
  "data_retention": "7d"
}
```
2023-04-13 09:12:48 +01:00
Aurélien FOUCRET 675163b155
[Enterprise Search][Behavioral Analytics] Events ingest API (#95027) 2023-04-12 15:13:19 +02:00
Abdon Pijpelink 379131366f
[DOCS] Remove 'coming in 8.7.0' from release notes in main (#95182) 2023-04-12 14:51:28 +02:00
Pablo Alcantar Morales 3b01d7fba1
add docs for shards' capacity health indicator (#94738) 2023-04-12 11:51:22 +02:00
Alessandro Stoltenberg 2f274229cc
docs logging configuration: removed dead link and added javadoc reference instead. (#95080)
* docs: removed dead link and added javadoc reference instead.

* Update docs/reference/setup/logging-config.asciidoc

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-04-12 10:01:16 +02:00
Jean-Fabrice Bobo a7e901263b
Update geoip.asciidoc (#95101)
Fix `ingest.geoip.downloader.eager.download` setting not appearing in the rendered documentation
2023-04-12 09:59:27 +02:00
Martijn van Groningen b41f096756
Document counter field limitation. (#95155)
As is listed here:
https://github.com/elastic/elasticsearch/issues/93539#issuecomment-1420473031

Relates to #93539
2023-04-11 12:14:20 -04:00
Abdon Pijpelink 20dd5d3191
[DOCS] Rerun agg at the end of manual downsampling example (#95122)
* [DOCS] Rerun agg at the end of manual downsampling example

* Replace 'index' with 'data stream'

* One more 'index'
2023-04-11 17:33:52 +02:00
Salvatore Campagna f315e8708e
Mute get-lifecycle docs yaml test (#95131) 2023-04-11 12:31:14 +02:00
Salvatore Campagna 0eeef45ea2
Synthetic source support for flattened fields (#94842)
Here we add synthetic source support for fields whose type is flattened.
Note that flattened fields and synthetic source have the following limitations,
all arising from the fact that in synthetic source we just see key/value pairs
when reconstructing the original object and have no type information in mappings:

* flattened fields use sorted set doc values of keywords, which means two things: 
   first we do not allow duplicate values, second we treat all values as keywords
* reconstructing array of objects results in nested objects (no array)
* reconstructing arrays with just one element results in a single-value field since we
   have no way to distinguish single-valued from multi-values fields other then looking
   at the count of values
2023-04-11 10:54:28 +02:00
Matthias Wilhelm 9fdb857010
Update field-caps.asciidoc to add information about `include_unmapped` (#94888)
- Adding context why `include_unmapped` doesn't return results for fields that are not mapped in any index
2023-04-11 09:34:49 +02:00
QY 2306f78ca9
Add `keyed` param to allow named filters agg return buckets as an array of objects (#89256)
Adds a new `keyed` param for `filters` aggs to come back with their `key` attached rather than as a json object. So that sorting them is meaningful.
2023-04-10 13:53:26 -04:00
Mary Gouseti ed04559c98
Unmute get-lifecycle.asciidoc test (#95087) 2023-04-10 09:05:22 +02:00
István Zoltán Szabó f350159e32
[DOCS] Creates page for ELSER semantic search docs (#95072)
* [DOCS] Creates page for ELSER semantic search docs.
2023-04-06 13:43:16 +02:00
Abdon Pijpelink 6e0071c510
[DOCS] Add documentation for cat component templates (#95035) 2023-04-05 16:51:11 +02:00
David Kilfoyle 9a673ad7f1
95017 fix downsampling step (#95054)
* Remove extra step in manual downsampling docs

* create -> view
2023-04-05 10:09:03 -04:00
István Zoltán Szabó b0a275dee6
[DOCS] Adds tip to change point agg docs. (#94981) 2023-04-05 15:43:16 +02:00
Craig Taverner 6da08c48be
Update release notes to include 8.7.0 (#94934)
* Update release notes to include 8.7.0

Release notes and migration guide from 8.7.0 release ported into main
as well as re-generating 8.8.0 release notes. This latter step will
be overwritten anyway, multiple times, by more up-to-date regeneration
of the 8.8.0 release notes during the release process.

* Remove coming 8.7.0 line

* Update docs/reference/migration/migrate_8_7.asciidoc

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>

* Make same change to 8.8

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-04-05 12:02:53 +02:00
Mary Gouseti 99145bbe9c
Add new endpoints to configure data lifecycle on a data stream level. (#94590)
With PR we introduce CRUD endpoints which update/delete the data lifecycle on the data stream level. When this is updated it will apply at the next DLM run to all the backing indices that are managed by DLM.
2023-04-04 18:37:38 +02:00
Carlos Delgado 7a782031c4
Add Enterprise Search Module (#94381)
Create base module for ent-search with CRUD APIs to manage behavioral analytics and Search Application.

---------

Co-authored-by: Jim Ferenczi <jim.ferenczi@elastic.co>
Co-authored-by: Aurélien FOUCRET <aurelien.foucret@gmail.com>
Co-authored-by: Kathleen DeRusso <63422879+kderusso@users.noreply.github.com>
Co-authored-by: Ioana Tagirta <ioanatia@users.noreply.github.com>
Co-authored-by: Joseph McElroy <joseph.mcelroy@elastic.co>
Co-authored-by: Aurelien FOUCRET <aurelien.foucret@elastic.co>
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
2023-04-04 10:36:13 +01:00
Mary Gouseti 1af2f438a3
[DLM] Extend the simulate template API to support include defaults (#94861) 2023-04-04 11:25:35 +02:00
David Turner f0989404ab
Bootstrapping docs clarifications (#94977)
Explains why you should remove `cluster.initial_master_nodes`, and
rewords some of the other sections a little for (subjectively) improved
readability.
2023-04-03 14:43:12 +01:00
Jim Ferenczi 57cbbb3fcd
Minor ann docs update (#94783)
Replace the link to the deprecated knn search API and
added a link to the nightly benchmarks in Rally.
2023-03-31 17:59:25 +01:00
Ten Bradley d5a33e439c
Update search-your-data.asciidoc (#94878)
Minor typo `hit.hits` => `hits.hits`
2023-03-31 10:49:26 +01:00
Alessandro Stoltenberg c787e3808f
docs: set-processor minor update (#94899) 2023-03-30 14:27:05 +02:00
Benjamin Trent f23b906891
Add new `similarity` field to `knn` clause in `_search` (#94828)
This adds a new parameter to `knn` that allows filtering nearest neighbor results that are outside a given similarity.

`num_candidates` and `k` are still required as this controls the nearest-neighbor vector search accuracy and exploration. For each shard the query will search `num_candidates` and only keep those that are within the provided `similarity` boundary, and then finally reduce to only the global top `k` as normal.

For example, when using the `l2_norm` indexed similarity value, this could be considered a `radius` post-filter on `knn`.

relates to: https://github.com/elastic/elasticsearch/issues/84929 && https://github.com/elastic/elasticsearch/pull/93574
2023-03-28 15:29:01 -04:00
Rafi Estrada d0f96a8c0b
Add note about ENV for systemd installs (#91424)
* Add note about ENV for systemd installs

This ES_TMPDIR env variable is not referenced in the /guide/en/elasticsearch/reference/current/setting-system-settings.html#sysconfig section, and when searching for the error mentioned in this page, it might not become too obvious.

* Restructure

---------

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-03-28 12:07:34 -05:00
David Turner 4ef9965d47
Report transport message size per action (#94543)
Adds to the transport stats a histogram of transport message sizes for
each transport action.

Closes https://github.com/elastic/elasticsearch/issues/88151
2023-03-28 12:05:18 -04:00
David Kilfoyle 7cd484ac95
Revert "Cross-reference disclaimer" (#94829)
* Revert "Cross-reference disclaimer (#94801)"

This reverts commit 902649be31.

* Highlight sentences about removing `cluster.initial_master_nodes` setting
2023-03-28 11:17:53 -04:00
Stef Nestor 902649be31
Cross-reference disclaimer (#94801)
👋🏼 howdy, team! Can we cross pollinate the [important banner](https://www.elastic.co/guide/en/elasticsearch/reference/master/important-settings.html#initial_master_nodes) from the `cluster.initial_master_nodes` setting page to the related [bootstrap doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-discovery-bootstrap-cluster.html#bootstrap-cluster-name) to avoid user's misunderstanding the latter's "This is only required the first time a cluster starts up" as saying they don't need to comment-out these settings?
2023-03-28 00:16:40 -04:00
István Zoltán Szabó 0405a4d1f0
[DOCS] Adds an example to change point aggregation (#94776)
* [DOCS] Adds an example to change point aggregation.

* [DOCS] Edits.
2023-03-27 18:06:11 +02:00
David Turner e377a8601a
Simplify `IndicesShardStoresAction` (#94507)
- No need to use an `AsyncShardFetch` here, there is no caching
- Response may be very large, introduce chunking
- Fan-out may be very large, introduce throttling
- Processing time may be nontrivial, introduce cancellability
- Eliminate many unnecessary intermediate data structures
- Do shard-level response processing more eagerly
- Determine allocation from `RoutingTable` not `RoutingNodes`
- Add tests

Relates #81081
2023-03-27 11:34:07 -04:00
Andrei Dan 223385f887
Introduce a _lifecycle/explain API for data stream backing indices (#94621)
This adds an {index}/_lifecycle/explain API to retrieve information
about an index's status within its lifecycle.

The response looks like so:
```
"indices" : {
    ".ds-metrics-foo-2023.03.22-000001" : {
      "index" : ".ds-metrics-foo-2023.03.22-000001",
      "managed_by_dlm" : true,
      "index_creation_date_millis" : 1679475563571,
      "time_since_index_creation" : "843ms",
      "rollover_date_millis" : 1679475564293,
      "time_since_rollover" : "121ms",
      "lifecycle" : { },
      "generation_time" : "121ms"
    },
    ".ds-metrics-foo-2023.03.22-000002" : {
      "index" : ".ds-metrics-foo-2023.03.22-000002",
      "managed_by_dlm" : true,
      "index_creation_date_millis" : 1679475564351,
      "time_since_index_creation" : "63ms",
      "lifecycle" : { }
    }
  }
}
```
2023-03-27 08:44:40 +01:00
DeDe Morton a6c7c1f1e4
[DOCS] Describe how to use Elastic Agent to monitor Elasticsearch (#94348)
* [DOCS] Describe how to use Elastic Agent to monitor Elasticsearch

* Temporarily fix doc build

* Add question about showing Elastic Agent metrics in the monitoring UI

* Apply changes from review

* Activate link to Kibana docs

* Fix broken link

* Update docs/reference/monitoring/indices.asciidoc
2023-03-24 09:00:21 -07:00
Simon Cooper dc6ccbbe08
Add transport_version to node info JSON (#94669) 2023-03-24 09:00:01 +00:00
Dimitris Kotsakos 38a09bea60
[ML] Make redact processor experimental for first release (#94683) 2023-03-23 18:28:03 +02:00
Stef Nestor e12e83fa37
Search-Troubleshoot | Most Recent Record (#94409)
May we add a section to [this page](https://www.elastic.co/guide/en/elasticsearch/reference/master/troubleshooting-searches.html#troubleshooting-check-field-values) to query for the latest record on an index (pattern)? This will be helpful to decide between Kibana Discover filter and Elasticsearch ingest lag problems.

---------

Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2023-03-23 08:04:49 -06:00
Abdon Pijpelink f5c9804442
[DOCS] Show how to reset a dynamically-adjusted log level (#94573) 2023-03-23 14:39:59 +01:00
Jim Ferenczi 2f29830cd3
Add the ability to return the score of the named queries (#94564)
This change adds a new rest parameter called `rest_include_named_queries_score` that when set, includes the score of the named queries that matched the document.
Note that with this change, the score of named queries is always returned when using the transport client. The rest level has the ability to set the format of
the matched_queries section for BWC (kept as is by default).

Closes #65563
2023-03-23 13:17:26 +00:00
Alan Woodward b2cf4757f3
Fix backwards description in runtime fields documentation (#94608) (#94642)
`runtime_mappings` is the name of the param in the search request. In the 
document `put` statement, it's called `runtime`

Co-authored-by: Matthew Hinea <matthew.hinea@gmail.com>
2023-03-22 11:53:35 -04:00
Francisco Fernández Castaño da9bb382f5
Add support for custom endpoints in the Azure repository (#94576)
Closes #94537
2023-03-22 11:40:19 +01:00