kibana/docs
Frank Hassanabad b399fb03d1
[SIEM][Detection Engine][Lists] Adds the ability to change the timeout limits from 10 seconds for loads for imports (#73103)
## Summary

By default the upload time limit for payloads is 10 seconds. This is really too short and we were getting internal QA bug reports that uploads are timing out on large value list importing. This PR adds the plumbing and unit tests to make the timeout configurable for routes.

* Adds a single timeout option for routes and then normalizes that through Hapi for the socket, payload, and server timeouts.
* Adds unit tests which test the various options
* Adds integration tests which test the various options
* Adds some NOTES about where there are odd behaviors/bugs within Hapi around validations and the timeouts
* Adds a configurable 5 minute timeout to the large value lists route

**Manual testing of the feature**

You can manually test this by adding a configurable option to your chrome network throttle like so below where you throttle upload by some configurable amount. I chose to use 300 kbs/s upload
<img width="556" alt="Screen Shot 2020-07-23 at 11 26 01 AM" src="https://user-images.githubusercontent.com/1151048/88318015-5ab3f700-ccd7-11ea-9d9b-7e3649ec65de.png">

And then run an import of large value lists using a large enough file that it will exceed 5 minutes:
![screen-shot-upload](https://user-images.githubusercontent.com/1151048/88318584-28ef6000-ccd8-11ea-90a1-8ca4aafabcb4.png)

After 5 minutes you should see this message within your server side messages if you have configured your kibana.dev.yml to allow for these messages:

```ts
server  respons [10:52:31.377] [access:lists-all] POST /api/lists/items/_import?type=keyword 408 318292ms - 9.0B
``` 

Note that it should show you that it is trying to return a `408` after `318292ms` the timeout period. Sometimes you will get the 408 in the browser and sometimes the browser actually will not respect the 408 and continue staying in a pending state forever. This seems to be browser side issue and not a client/user land issue. If you get the browser message it will be this error toaster

![timeout-message](https://user-images.githubusercontent.com/1151048/88318760-74a20980-ccd8-11ea-9b7b-0d27f8eb6bce.png)

### Checklist

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [x] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2020-07-28 17:47:41 -06:00
..
api [DOCS] Adds ID to logstash pipeline (#71726) 2020-07-14 16:25:31 -05:00
apm [APM] UI text updates (#71333) 2020-07-10 12:07:49 +02:00
canvas [DOCS] Image cleanup (#71258) 2020-07-09 10:38:50 -05:00
dev-tools [DOCS] Removes occurrences of X-Pack Security and Reporting (#72302) 2020-07-17 14:53:04 -07:00
developer [Security Solution] Use docker for endpoint tests (#73092) 2020-07-27 14:13:50 -04:00
development [SIEM][Detection Engine][Lists] Adds the ability to change the timeout limits from 10 seconds for loads for imports (#73103) 2020-07-28 17:47:41 -06:00
discover [DOCS] Image cleanup (#71258) 2020-07-09 10:38:50 -05:00
drilldowns docs: ✏️ add "Explore underlying data" user docs (#70807) 2020-07-17 19:06:54 +02:00
getting-started [DOCS] Image cleanup (#71258) 2020-07-09 10:38:50 -05:00
infrastructure [DOCS] Move metrics app content to metrics monitoring guide (#69033) 2020-06-12 19:33:26 +01:00
ingest_manager Add ingest manager topic to docs (#68980) 2020-06-12 11:27:55 -07:00
logs [DOCS] Move Logs app content to Logs monitoring guide (#68644) 2020-06-10 16:14:46 +01:00
management [DOCS] Updates Management docs to match UI (#72514) 2020-07-22 08:00:53 -07:00
maps [maps][docs] add trouble shooting for index not listed (#73066) 2020-07-23 15:22:54 -06:00
migration Move kibana-keystore from data/ to config/ (#57856) 2020-07-13 10:56:25 -05:00
plugins Update known-plugins.asciidoc (#69370) 2020-07-02 18:01:31 +03:00
settings 32 characters requirement for xpack.reporting.encryptionKey (#72593) 2020-07-28 09:35:00 -05:00
setup [DOCS] Removes occurrences of X-Pack Security and Reporting (#72302) 2020-07-17 14:53:04 -07:00
siem [DOCS] Updates links to security docs (#72099) 2020-07-16 09:51:46 -07:00
spaces [DOCS] Updates Management docs to match UI (#72514) 2020-07-22 08:00:53 -07:00
uptime [DOCS] Move Uptime Kibana documentation into Uptime guide (#67508) 2020-06-04 15:58:58 +01:00
user 32 characters requirement for xpack.reporting.encryptionKey (#72594) 2020-07-28 09:35:08 -05:00
visualize [docs] remove references to tile map visualization in supported aggregations (#72493) 2020-07-21 09:26:05 -06:00
accessibility.asciidoc Adding the Accessibility Statement to docs (#57153) 2020-02-11 17:31:43 -05:00
CHANGELOG.asciidoc
glossary.asciidoc [DOCS] Fixes mismatched tagged regions in glossary (#70348) 2020-06-30 11:26:40 -07:00
gs-index.asciidoc [DOCS] Adds kibana-pull attribute for release docs (#69554) 2020-06-18 13:19:10 -07:00
index.asciidoc [DOCS] Adds kibana-pull attribute for release docs (#69554) 2020-06-18 13:19:10 -07:00
index.x.asciidoc
limitations.asciidoc [DOCS] Condenses limitations docs (#57393) 2020-02-12 08:18:58 -08:00
migration.asciidoc [DOCS] Adds What's New (#68918) 2020-06-11 12:06:29 -07:00
redirects.asciidoc [DOCS] Move metrics app content to metrics monitoring guide (#69033) 2020-06-12 19:33:26 +01:00
template.asciidoc [DOCS] Kibana docs template (#44695) 2019-09-16 11:19:01 -05:00