Skip to content
2 changes: 2 additions & 0 deletions docs/extend/example-text-analysis-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Elastic provides a Grade plugin, `elasticsearch.stable-esplugin`, that makes it
"filter": ["hello_world"]
}
```
% TEST[skip:would require this plugin to be installed]



Expand Down Expand Up @@ -162,6 +163,7 @@ If you are using the `elasticsearch.stable-esplugin` plugin for Gradle, you can
}
}
```
% NOTCONSOLE

4. In `src/yamlRestTest/resources/rest-api-spec/test/plugin`, create the `10_token_filter.yml` YAML file:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,23 @@ Lets say that documents 1 and 3 end up on shard A and documents 2 and 4 end up o
This is run once on each shard before any document collection is performed, and so we will have a copy on each shard:

Shard A
: ```js
"state" : {
"transactions" : []
}
```
:
```js
"state" : {
"transactions" : []
}
```
% NOTCONSOLE


Shard B
: ```js
"state" : {
"transactions" : []
}
```
:
```js
"state" : {
"transactions" : []
}
```
% NOTCONSOLE



Expand All @@ -189,19 +193,23 @@ Shard B
Each shard collects its documents and runs the map_script on each document that is collected:

Shard A
: ```js
"state" : {
"transactions" : [ 80, -30 ]
}
```
:
```js
"state" : {
"transactions" : [ 80, -30 ]
}
```
% NOTCONSOLE


Shard B
: ```js
"state" : {
"transactions" : [ -10, 130 ]
}
```
:
```js
"state" : {
"transactions" : [ -10, 130 ]
}
```
% NOTCONSOLE



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ PUT _cluster/settings
}
}
```
% TEST[skip:TODO]

### Cluster routing settings [cluster-routing-settings]

Expand Down Expand Up @@ -304,7 +305,7 @@ PUT _cluster/settings
}
}
```

% TEST[skip:TODO]

## Node allocation stats cache [node-allocation-stats-cache]

Expand Down
28 changes: 28 additions & 0 deletions docs/reference/elasticsearch/elasticsearch-audit-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ $$$event-access-denied$$$
"action":"indices:admin/auto_create", "request.name":"CreateIndexRequest",
"indices":["<index-{now/d+1d}>"]}
```
% NOTCONSOLE
::::


Expand All @@ -62,6 +63,7 @@ $$$event-access-granted$$$
"origin.address":"[::1]:52434", "request.id":"yKOgWn2CRQCKYgZRz3phJw",
"action":"indices:data/write/bulk", "request.name":"BulkRequest"}
```
% NOTCONSOLE

::::

Expand All @@ -79,6 +81,7 @@ $$$event-anonymous-access-denied$$$
"[::1]:50543", "url.path":"/twitter/_async_search", "url.query":"pretty",
"request.method":"POST", "request.id":"TqA9OisyQ8WTl1ivJUV1AA"}
```
% NOTCONSOLE

::::

Expand All @@ -97,6 +100,7 @@ $$$event-authentication-failed$$$
"url.query":"pretty", "request.method":"POST",
"request.id":"POv8p_qeTl2tb5xoFl0HIg"}
```
% NOTCONSOLE

::::

Expand All @@ -116,6 +120,7 @@ $$$event-authentication-success$$$
"url.query":"pretty", "request.method":"POST",
"request.id":"nHV3UMOoSiu-TaSPWCfxGg"}
```
% NOTCONSOLE

::::

Expand All @@ -134,6 +139,7 @@ $$$event-change-disable-user$$$
action":"change_disable_user", "request.id":"qvLIgw_eTvyK3cgV-GaLVg",
"change":{"disable":{"user":{"name":"user1"}}}}
```
% NOTCONSOLE

::::

Expand All @@ -152,6 +158,7 @@ $$$event-change-enable-user$$$
action":"change_enable_user", "request.id":"BO3QU3qeTb-Ei0G0rUOalQ",
"change":{"enable":{"user":{"name":"user1"}}}}
```
% NOTCONSOLE

::::

Expand All @@ -170,6 +177,7 @@ $$$event-change-password$$$
action":"change_password", "request.id":"bz5a1Cc3RrebDMitMGGNCw",
"change":{"password":{"user":{"name":"user1"}}}}
```
% NOTCONSOLE

::::

Expand All @@ -188,6 +196,7 @@ $$$event-create-service-token$$$
action":"create_service_token", "request.id":"az9a1Db5QrebDMacQ8yGKc",
"create":{"service_token":{"namespace":"elastic","service":"fleet-server","name":"token1"}}}`
```
% NOTCONSOLE

::::

Expand All @@ -204,6 +213,7 @@ $$$event-connection-denied$$$
"connection_denied", "origin.type":"rest", "origin.address":"10.10.0.20:52314",
"transport.profile":".http", "rule":"deny 10.10.0.0/16"}
```
% NOTCONSOLE

::::

Expand All @@ -220,6 +230,7 @@ $$$event-connection-granted$$$
"connection_granted", "origin.type":"rest", "origin.address":"[::1]:52314",
"transport.profile":".http", "rule":"allow ::1,127.0.0.1"}
```
% NOTCONSOLE

::::

Expand All @@ -245,6 +256,7 @@ $$$event-create-apikey$$$
"metadata":{"application":"my-application","environment":{"level": 1,
"tags":["dev","staging"]}}}}}
```
% NOTCONSOLE

::::

Expand All @@ -270,6 +282,7 @@ $$$event-change-apikey$$$
"metadata":{"application":"my-application","environment":{"level": 1,
"tags":["dev","staging"]}},"expiration":"10d"}}}
```
% NOTCONSOLE

::::

Expand All @@ -296,6 +309,7 @@ $$$event-change-apikeys$$$
"metadata":{"application":"my-application","environment":{"level":1,
"tags":["dev","staging"]}},"expiration":"10d"}}}
```
% NOTCONSOLE

::::

Expand All @@ -314,6 +328,7 @@ $$$event-delete-privileges$$$
action":"delete_privileges", "request.id":"7wRWVxxqTzCKEspeSP7J8g",
"delete":{"privileges":{"application":"myapp","privileges":["read"]}}}
```
% NOTCONSOLE

::::

Expand All @@ -332,6 +347,7 @@ $$$event-delete-role$$$
"delete_role", "request.id":"155IKq3zQdWq-12dgKZRnw",
"delete":{"role":{"name":"my_admin_role"}}}
```
% NOTCONSOLE

::::

Expand All @@ -350,6 +366,7 @@ $$$event-delete-role-mapping$$$
action":"delete_role_mapping", "request.id":"Stim-DuoSTCWom0S_xhf8g",
"delete":{"role_mapping":{"name":"mapping1"}}}
```
% NOTCONSOLE

::::

Expand All @@ -368,6 +385,7 @@ $$$event-delete-service-token$$$
action":"delete_service_token", "request.id":"az9a1Db5QrebDMacQ8yGKc",
"delete":{"service_token":{"namespace":"elastic","service":"fleet-server","name":"token1"}}}
```
% NOTCONSOLE

::::

Expand All @@ -386,6 +404,7 @@ $$$event-delete-user$$$
"event.action":"delete_user", "request.id":"au5a1Cc3RrebDMitMGGNCw",
"delete":{"user":{"name":"jacknich"}}}
```
% NOTCONSOLE

::::

Expand All @@ -405,6 +424,7 @@ $$$event-invalidate-apikeys$$$
"invalidate":{"apikeys":{"owned_by_authenticated_user":false,
"user":{"name":"myuser","realm":"native1"}}}}
```
% NOTCONSOLE

::::

Expand All @@ -424,6 +444,7 @@ $$$event-put-privileges$$$
"put":{"privileges":[{"application":"myapp","name":"read","actions":
["data:read/*","action:login"],"metadata":{"description":"Read access to myapp"}}]}}
```
% NOTCONSOLE

::::

Expand All @@ -446,6 +467,7 @@ $$$event-put-role$$$
{"names":["apm-all*"],"privileges":["all"],"query":"{\"term\":
{\"service.name\": \"bar2\"}}"}],"applications":[],"run_as":[]}}}}
```
% NOTCONSOLE

::::

Expand All @@ -465,6 +487,7 @@ $$$event-put-role-mapping$$$
"put":{"role_mapping":{"name":"mapping1","roles":["user"],"rules":
{"field":{"username":"*"}},"enabled":true,"metadata":{"version":1}}}}
```
% NOTCONSOLE

::::

Expand All @@ -485,6 +508,7 @@ $$$event-put-user$$$
"full_name":"Jack Sparrow","email":"[email protected]",
"has_password":true,"metadata":{"cunning":10}}}}
```
% NOTCONSOLE

::::

Expand All @@ -503,6 +527,7 @@ $$$event-realm-auth-failed$$$
"/_security/user/user1", "url.query":"pretty", "request.method":"POST",
"request.id":"POv8p_qeTl2tb5xoFl0HIg"}
```
% NOTCONSOLE

::::

Expand All @@ -522,6 +547,7 @@ $$$event-runas-denied$$$
"[::1]:52662", "request.id":"RcaSt872RG-R_WJBEGfYXA",
"action":"indices:data/read/search", "request.name":"SearchRequest", "indices":["alias1"]}
```
% NOTCONSOLE

::::

Expand All @@ -541,6 +567,7 @@ $$$event-runas-granted$$$
"[::1]:52623", "request.id":"dGqPTdEQSX2TAPS3cvc1qA", "action":
"indices:data/read/search", "request.name":"SearchRequest", "indices":["alias1"]}
```
% NOTCONSOLE

::::

Expand Down Expand Up @@ -568,6 +595,7 @@ $$$event-tampered-request$$$
"/twitter/_async_search", "url.query":"pretty", "request.method":"POST",
"request.id":"TqA9OisyQ8WTl1ivJUV1AA"}
```
% NOTCONSOLE

::::

Expand Down
3 changes: 2 additions & 1 deletion docs/reference/elasticsearch/index-settings/index-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ $$$index-mode-setting$$$ `index.mode` {applies_to}`serverless: all`
{
"settings": {
"index":{
"mode":"standard" # This index uses the `standard` index mode
"mode":"standard" <1>
}
}
}
```
1. This index uses the `standard` index mode
**Supported values**

The `index.mode` setting supports the following values:
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/elasticsearch/index-settings/slow-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ If you aren’t sure how to start investigating traffic issues, consider enablin
"index.search.slowlog.threshold.query.warn": "30s"
}
```
% TEST[setup:my_index]

* Enable for indexing requests:

Expand All @@ -219,6 +220,7 @@ If you aren’t sure how to start investigating traffic issues, consider enablin
"index.indexing.slowlog.threshold.index.warn": "30s"
}
```
% TEST[setup:my_index]


Slow log thresholds being met does not guarantee cluster performance issues. In the event that symptoms are noticed, slow logs can provide helpful data to diagnose upstream traffic patterns or sources to resolve client-side issues. For example, you can use data included in `X-Opaque-ID`, the `_source` request body, or `user.*` fields to identify the source of your issue. This is similar to troubleshooting [live expensive tasks](docs-content://troubleshoot/elasticsearch/task-queue-backlog.md).
Expand Down
Loading
Loading