Commit graph

32419 commits

Author SHA1 Message Date
Joe Reuter 4e56419ca4
Migrate timelion vis (#62819) 2020-04-17 10:42:27 +02:00
Jean-Louis Leysens eefafa2919
Replacebad scope link with actual values (#63444)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-17 10:18:01 +02:00
Uladzislau Lasitsa b81f9269e5
Index pattern management UI -> TypeScript and New Platform Ready (create_index_pattern_wizard) (#63111)
* Migrated create_index_pattern_wizard and its tests to typescript

* Fixed types

* Fixed some comments

* Fixed comments

* Fixed types

* Fixed types

* Fixed snapshot

* Removed indexPatternCreationType from state.

* Fixed comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-17 10:04:38 +03:00
Andrew Goldstein c2293cb11d
[SIEM] Threat hunting enhancements: Filter for/out value, Show top field, Copy to Clipboard, Draggable chart legends (#61207)
## [SIEM] Threat hunting enhancements: Filter for/out value, Show top field, Copy to Clipboard, Draggable chart legends

Enhancements to the threat hunting experience

![show-top-field](https://user-images.githubusercontent.com/4459398/79180753-f9bb7f80-7dc7-11ea-9ae2-d4e4fc79208c.gif)

### New draggable context menu

A new context menu with the following items has been added to all draggables:

- Filter for value
- Filter out value
- Show top _field name_
- Copy to Clipboard

as shown in the following animated gif:

![new-context-menu](https://user-images.githubusercontent.com/4459398/79173935-4dbd6880-7db6-11ea-9253-7746481e1b17.gif)

### Filter for value

The _Filter for value_ context menu action adds the draggable to the global filter bar, which is applicable to all pages in the SIEM app, per the following animated gif:

![filter-in-value](https://user-images.githubusercontent.com/4459398/79176624-f91deb80-7dbd-11ea-9b01-799145d776c8.gif)

### Filter out value

The _Filter out value_ context menu action adds the draggable to the global filter bar as a _negated_ (`NOT`) filter, per the following animated gif:

![filter-out-value](https://user-images.githubusercontent.com/4459398/79178474-9f6bf000-7dc2-11ea-9423-512ad7f89a18.gif)

### Show top _field_

The _Show top field_ context menu action displays an interactive Top 10 histogram, per the following animated gif: 

![show-top-field](https://user-images.githubusercontent.com/4459398/79180753-f9bb7f80-7dc7-11ea-9ae2-d4e4fc79208c.gif)

- The contents of the histogram are filtered by the global KQL bar / filters and current date range
- Brushing over the bars in the histogram updates the global date range / picker
- Select _Events_ or _Signals_
- The _Show top field_ action is also available in the Fields Browser, per the following animated gif:

![in-fields-browser](https://user-images.githubusercontent.com/4459398/79179548-1a360a80-7dc5-11ea-9ad7-cdd7fef0cc64.gif)

### Copy to Clipboard

The _Copy to clipboard_ context menu action copies the draggable field and value to the clipboard in KQL format (e.g. `process.name: "nice"`).

Per the following animated gifs, it's now possible to copy _any_ draggable to the clipboard, and paste it in KQL format, which addresses [this feature request from a user](https://github.com/elastic/kibana/issues/59472):

![copy-to-clipboard](https://user-images.githubusercontent.com/4459398/79178893-a7785f80-7dc3-11ea-868a-5d7bc2824912.gif)

![pasted-value](https://user-images.githubusercontent.com/4459398/79179126-2c637900-7dc4-11ea-92a7-86c7d6377688.gif)

### Draggable chart legends

You may now pivot from chart legends by dragging and dropping them to a timeline, or by selecting the Filter for / out context menu action, per the following animated gif:

![draggable-legend](https://user-images.githubusercontent.com/4459398/79179769-9deff700-7dc5-11ea-9153-b472914f2dfe.gif)

#### Desk testing

Desk tested in:

- Chrome `81.0.4044.92`
- Firefox `75.0`
- Safari `13.1`
2020-04-16 22:17:28 -06:00
Nathan Reese 420ccffcd6
[Maps] fix term join agg key collision (#63324)
* [Maps] fix term join agg key collision

* fix tslint and jest errors

* fix join functional test

* revert LayerDescriptor union and cast to VectorLayerDescriptor instead

* move getJoinKey out of constants and into its own file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 19:22:02 -06:00
Nicolas Chaulet e3eed0baed
[Ingest] Fix agent config key sorting (#63488) 2020-04-16 21:21:12 -04:00
igoristic dacc95fa85
[Monitoring] Fixed server response errors (#63181)
* Fixed server response errors

* Fixed async error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 20:07:24 -04:00
Nick Partridge 4e8ff57355
update elastic charts to 18.3.0 (#63732) 2020-04-16 17:00:36 -05:00
Vadim Dalecky 239f73b040
Start services (#63720)
* feat: 🎸 add createStartServicesGetter() to /public  kibana_util

* test: 💍 add createStartServicesGetter() tests
2020-04-16 23:13:00 +02:00
Dario Gieselaar 5413cee294
[APM] Encode spaces when creating ML job (#63683)
Closes #62370. Per 95a7eed9aa/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/utils/MlStrings.java (L20-L26), spaces are not supported in job and group ids.
2020-04-16 22:50:16 +02:00
Andrew Cholakian 6652045cbf
Uptime 7.7 docs (#62228)
Add docs for 7.7 features:

- Alerting
- Duration anomalies
- Settings

Point security docs to heartbeat.
2020-04-16 15:38:57 -05:00
gchaps 82be9c64c6
[DOCS] Updates remote cluster and ccr docs (#63517)
* [DOCS] Updates remote cluster and ccr docs

* [DOCS] Adds section on managing clusters and follower indices

* [DOCS] Incorporates review comments
2020-04-16 13:29:23 -07:00
Thomas Neirynck ad41eea211
[Maps] Add 3rd party vector tile support (#62084)
Adds support for adding an external vector tile service to Maps. This is experimental functionality. To enable, add `xpack.maps.enableVectorTiles: true` to the `kibana.yml`configuration file.
2020-04-16 16:26:13 -04:00
Jonathan Buttner 0a9e17b57f
[Endpoint][EPM] Retrieve Index Pattern from Ingest Manager (#63016)
* Endpoint successfully depending on ingest manager to initialize

* Moving the endpoint functional tests to their own directory to avoid enabling ingest in the base tests

* Removing page objects and other endpoint fields from base functional

* Updating code owners with new functional location

* Adding index pattern functionality

* Missed a file

* Pointing resolver tests at endpoint functional tests

* Pointing space tests at the endpoint functional directory

* Adding ingest service to do setup and tests for 500s

* Correcting services path

* Adding jest test names

* Updating es archives with the correct mapping and index names

* Fixing import error

* Adding resolver tests to code owners

* enabling epm flag for functional tests

* adding correct tag to test

* Removing the version information and unneeded xsrf

* Addressing endpoint index pattern feedback

* Removing unused import

* Renaming index pattern to es index pattern

* Fixing missed index pattern calls

* Removing unused import

* Fixing type error

* Moving es_index_pattern outside of installed and fixing function name

* Keeping the event index the same for now

* Wrapping index pattern await in try catch

* Address PR feedback, adding comments
2020-04-16 16:20:16 -04:00
Paul Tavares cae0c964ac
[Endpoint] Host Details Policy Response Panel (#63518)
* Added link to Policy status that updates URL and show details panel
* Custom Styled Flyout Panel sub-header component to display sub-headers
* Move Middleware spy utils under `store/` for re-use
* Changed `appStoreFactory()` to accept optional `additionalMiddleware` prop
* `waitForAction` middleware test utility now return Action on Promise resolve
* Updated PageView component to remove bottom margin
2020-04-16 16:17:00 -04:00
Shahzad a9399c3d91
[Uptime] Certificate expiration threshold settings (#63682)
* update settings

* added cert form

* update settings

* update types

* update test

* updated tests

* updated snapshots
2020-04-16 21:13:35 +02:00
Joe Portner d72de0ea16
Refactor saved object types to use namespaceType (#63217)
Remove `namespaceAgnostic` field that was deprecated in #54605,
use `namespaceType` instead.
2020-04-16 14:37:55 -04:00
Christos Nasikas 10ccc0a2f2
[SIEM][CASE] Create comments sequentially (#63692) 2020-04-16 21:26:32 +03:00
Melissa Alvarez dde3d96b14
[ML] DF Analytics Regression exploration: replace table with data grid (#63650)
* add feature_importance column correctly

* wip: switch regression table to datagrid

* add search bar to regression view

* ensure feature importance fields show up correctly

* wip: filter by training/testing

* remove separate testing/training filter

* make error more clear

* handle lucene queries

* remove unnecessary comment

* ensure boolean shows up correctly.no sorting by feature importance

* remove unused translations
2020-04-16 13:49:17 -04:00
Dmitry Lemeshko 50228df498
Code coverage: run more configs with functional tests (#63680)
* run endpoint tests with coverage

* add more configs

* add plugin_functional config
2020-04-16 20:40:55 +03:00
Larry Gregory d0b4ae7e29
Allow reserved privileges to get their capabilities (#63698) 2020-04-16 12:29:31 -04:00
Alexey Antonov 871f7209f9
[Timeseries] remove unused configuration properties (#62543)
* [Timeseries] remove unused configuration properties

* Fix PR comments

* update id of vis_type_timeseries plugin

* metrics -> vis_type_timeseries

* fix wrong plugin id

* update requiredPliugins for infra/kibana.json

* change id

* update plugin id in infra folder

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 19:28:04 +03:00
Dmitry Lemeshko 464a3c23ba
[FTR]: add chromium-based Edge browser support (#63566) 2020-04-16 19:06:33 +03:00
Daniil Suleiman 6bbcabcf1f
[NP] Visualize (#62294)
* Move visualize plugin to np

* Refactor plugin services

* Clean up

* Remove legacy style usage

* Fix style imports

* Fix timelion_options context provider

* Fix translations

* Change codeowners for visualize

* Import styles in legacy for BWC in Browser tests

* Get rid of embeddable dependency

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 18:32:46 +03:00
Maryia Lapata bae2bda7d4
[NP] Migrate Markdown to NP (#62940)
* Migrate Markdown to NP

* Refactoring

* Add ConfigSchema, server, rename markdown_vis to visTypeMarkdown

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 18:32:07 +03:00
Devin W. Hurley ebcb50227a
[SIEM] [Detection Engine] Changes find_statuses route HTTP met… (#63508)
* changes http method for find_statuses route from GET to POST

* fix test string formatting

* update sample shell script for find statuses route

* adds e2e test for find statuses
2020-04-16 10:52:43 -04:00
Devon Thomson 4b7895a8de
Fixed 0s not being checked for duplicates correctly (#63632)
Fixes duplicate 0 values being allowed in the visualize percentiles input.
2020-04-16 10:41:57 -04:00
Yuliia Naumenko 560e01a38f
[Alerting] Fixed issue when connectors dropdown not showing all available connectors (#63636) 2020-04-16 07:39:35 -07:00
Wylie Conlon 13422b8c91
[Lens] Make average the default suggested metric (#63416)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 10:34:24 -04:00
Wylie Conlon c21cec7abd
[Lens] Fix escaping of field names (#63509)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 10:32:58 -04:00
Mikhail Shustov af09fedaf2
[NP] add http resources sub-service (#61797)
* add HttpResources basic implementation

* expose http resources to plugins

* add mocks

* move http resources to a separate service

* hide rendering service

* adopt internal types

* expose HttpResources service to plugins

* update platform mocks

* plugins start using HttpResources API

* remove RenderingServiceSetup export

* RenderingServiceSetup --> InternalRenderingServiceSetup

* improve types

* remove httpRespources leftovers from http service

* remove rendering types from RequestHanlderContext

* fix security plugin tests

* add unit tests for httpResources service

* add unit tests

* remove outdated cache-control header

* restructure http resources service

* merge getUiPlugins and discover

* static route declaration shouldnt require auth & validate

* update docs

* use HttpResources service instad of rendering

* address comments

* update docs

* roll back unnecessary changes

* use getVars for rendering

* dont pass app. it is not public API

* remove static registers

* update migration guide
2020-04-16 16:09:39 +02:00
Frank Hassanabad 721e4fae1b
[SIEM][Detection Engine] Adds an error aggregator by error reason and a way to filter them
## Summary

Changes the error handling for when responses are returning with errors from the backend. We were aggregating on error status codes, but this will aggregate on the error reason per rule run and report those instead.

* Adds a utility function
* Adds unit tests for the utility function
* Adds TypeScript Types for the utility function
* Adds sample helpers for the mocks for testing 

### Checklist

- [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
2020-04-16 08:04:23 -06:00
Tim Roes fdc962f348
Remove duplicate refresh button from vis editor menu (#63633)
* Remove the refresh button from vis editor

* Remove unused translations
2020-04-16 15:22:07 +02:00
Ryan Keairns 373d49223a
Style dashboard buttons the same way (#63403)
* Stylize dashboard buttons the same way

* update snapshots

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 07:54:06 -05:00
Aaron Caldwell 11b6f7fc7d
[Maps] Update remaining client dependencies to NP (#63297)
* Routes dependencies updated (except for routes itself)

* Replace all chrome deps except map controller

* Replace npSetup and npStart with normal plugin init logic. Some clean up

* Bind kibana services in map controller

* Use kibana services in map controller

* Convert remaining deps that aren't critical to legacy operation

* Remove last angular bindings to gis map saved object loader

* Consolidate kibana services in NP

* Some fixes. Remove console logs

* Fix type errors

* Fix jest test path refs

* Accomodate legacy 'hacks' and init services for vis type alias

* Review feedback. Remove/update unused declarations

* getFileUpload actually just needed Component tacked on the end

* Handle visibility of toolbars for full screen mode using new core chrome. Should fix test

* Import source types in getInitialLayers to ensure registry
2020-04-16 05:49:53 -06:00
Shahzad a3f4acfc27
[Uptime] Update duration chart query filters (#63620)
* updated duration query

* updated snapshot

* update fixtures

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 13:48:34 +02:00
Matthias Wilhelm 5ffdeb62e0
Migrate vis_type_metric to kibana/new platform (#63096)
* Move vis_type_metric to Kibana Platform

* Adapt i18n

* Cleanup tests

* Modify CODEOWNERS

* Cleanup SCSS
2020-04-16 13:46:23 +02:00
Shahzad d20cbcb903
[Uptime] Update-paths-labeller-with-uptime (#63679)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 12:37:54 +02:00
Ahmad Bamieh 188ebe8e2c
[i18n] Update CODEOWNERS (#63354)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 12:55:22 +03:00
Mikhail Shustov f18aea5dce
add platform team definition of done (#59993)
* add platform team definition of done

* add link to ToC

* add suggestions from Josh

* add tooling

* add testing note
2020-04-16 11:53:51 +02:00
Angela Chuang 7b74aa9d69
[SIEM] move away from Joi for importing/exporting timeline (#62125)
* move away from joi

* update schema for filterQuery

* fix types

* update schemas

* remove boom

* remove redundant params

* reuse utils from case

* update schemas for query params and body

* fix types

* update validation schema

* fix unit test

* update description for test cases

* remove import from case

* lifting common libs

* fix dependency

* lifting validation builder function

* add unit test

* fix for code review

* reve comments

* rename common utils

* fix types
2020-04-16 10:17:15 +01:00
Joe Reuter 02cba10469
Fix discover preserve url (#63580) 2020-04-16 09:51:03 +02:00
Gidi Meir Morris bb9f8845ae
[alerting] Adds an alertServices mock and uses it in siem, monitoring and uptime (#63489)
Work on #61313 has revealed that we don't have amock for AlertServices, which creates coupling between us and any solution depending on us, which makes it harder to make changes in our own code.

This PR adds mocks and uses them in SIEM, Monitoring and Uptime, so that we can make future changes without having to change outside solutions.
2020-04-16 08:45:38 +01:00
Oliver Gupte 3ade2d358d
Closes #63109 for Service Map by resetting edges styles for the selected node (#63655) 2020-04-16 00:42:25 -07:00
Uladzislau Lasitsa ee1cebdbe1
MIgrated index_header to react (#63490) 2020-04-16 10:36:09 +03:00
Uladzislau Lasitsa ce9c6e258a
Index pattern management UI -> TypeScript and New Platform Ready (indexed_fields_table) (#63364)
* MIgrated indexed_fields_table to typescript.

* Updated docs

* Fixed comments

* Fixed types
2020-04-16 10:32:28 +03:00
Steph Milovic 31ed266d73
[SIEM] [Cases] Insert timeline and reporters/tags in table bug fixes (#63642) 2020-04-16 00:53:22 -06:00
Tim Sullivan 3d41ca6d27
[Reporting] Make usable default element positions (#63191)
* [Reporting] Make usable default element posistions

* revert unrelated changes

* fix ts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-15 17:00:56 -07:00
Tim Sullivan f4c81b440d
[Reporting] Switch Serverside Config Wrapper to NP (#62500)
* New config

* fix translations json

* add csv.useByteOrderMarkEncoding to schema

* imports cleanup

* restore "get default chromium sandbox disabled" functionality

* integrate getDefaultChromiumSandboxDisabled

* fix tests

* --wip-- [skip ci]

* add more schema tests

* diff prettiness

* trash legacy files that moved to NP

* create_config tests

* Hoist create_config

* better disableSandbox tests

* fix ts

* fix export

* fix bad code

* make comments better

* fix i18n

* comment

* automatically setting... logs

* replace log_configuration

* fix lint

* This is f2

* improve startup log about sandbox info

* update docs with log reference

* revert log removal

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-15 14:52:32 -07:00
Tim Sullivan 23e3f1aab5
[Reporting] Add "warning" status as an alternate type of completed job (#63498)
* [Reporting] Add "warning" as a status

* test

* fix warning status handling

* Simplify logic

* fix syntax

* more different statuses

* fix warning

* feedbacks
2020-04-15 14:05:19 -07:00