Commit graph

15062 commits

Author SHA1 Message Date
Ahmad Bamieh 3e755ccf1f
[7.x] [Deprecations service] make correctiveActions.manualSteps required (#100997) (#101156)
* merge conflicts

* update deprecation message
2021-06-02 11:28:22 -04:00
Kibana Machine 137a720b97
[Maps] spatially filter by all geo fields (#100735) (#101153)
* [Maps] spatial filter by all geo fields

* replace geoFields with geoFieldNames

* update mapSpatialFilter to be able to reconize multi field filters

* add check for geoFieldNames

* i18n fixes and fix GeometryFilterForm jest test

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-02 10:19:52 -04:00
Kibana Machine 54b8d288b3
[Exploratory view] Core web vitals (#100320) (#101144)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-02 08:33:23 -04:00
CJ Cenizal e044137bd4
Migrate CCR to new ES JS client. (#100131) (#101125)
* Update SectionError component to render error root causes correctly.
* Fix 404 error rendering.
* Add test for follower index update API route.
2021-06-01 21:24:18 -04:00
Nathan Reese d6cb25aeea
[Maps] fix line and polygon label regression (#101085) (#101124) 2021-06-01 21:22:20 -04:00
Wylie Conlon 1a2e46ba65
[Expressions] Use table column ID instead of name when set (#99724) (#101110)
* [Expressions] Use table column ID instead of name when set

* Update ID matching to match by name sometimes

* Add an extra case to prevent insertion of duplicate column

* Simplify logic and add test for output ID

* Respond to review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 18:59:54 -04:00
Kibana Machine e99f42d848
[Uptime] New width/delay definition for waterfall sidebar item tooltip (#100147) (#101083)
* Add new width definition for waterfall sidebar item. Add delay to tooltip.

* Add default value for style if/when undefined.

* Create shared style for eui breakpoints to use by both waterfall tooltip types.

* Add a comment.

* Use viewport units instead of breakpoints.

* Rename a style.

* Add top margin to prevent tooltip from missing target item. Rename a style.

* Adjust custom `margin-top`.

* Add index to tooltip content.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-06-01 20:56:12 +00:00
Sandra Gonzales 0a3e83aa10
Re-enable _mb suffixed stack monitoring func tests (#98354) (#101081)
* Reenabled _mb suffixed stack monitoring func tests

These tests were disabled temporarily in #98238 because of intermittent failures in master.

* use test_user instead of basic_monitoring_user

* remove security service

* remove logout and cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: neptunian <sandra.gonzales@elastic.co>

Co-authored-by: Jason Rhodes <jason.rhodes@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 16:53:44 -04:00
Kibana Machine b2766e9730
[Fleet] Better input for multi text input in agent policy builder (#101020) (#101077)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-01 19:27:33 +00:00
Kibana Machine 313a887d34
Create API keys with metadata (#100682) (#101074)
Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-06-01 18:50:59 +00:00
Kibana Machine 491e90c362
[ML] Functional tests - disable categorization tests (#101057) (#101069)
This PR temporarily disables categorization tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-01 14:04:19 -04:00
Greg Thompson 0480fbc945
Upgrade EUI to v33.0.0 (#99382) (#101067)
* eui to 33.0.0

* resize observer type inclusion - revisit

* src snapshot updates

* x-pack snapshot updates

* table sort test updates

* code block language sh -> bash

* datagrid datetime sort inversion

* types

* kbn-crypto

* refractor yarn resolution

* refractor yarn resolution

* update cypress tests

* url state test

* trial

* Revert "trial"

This reverts commit adc3538145.

* trial anomaly timeout

* Revert "trial anomaly timeout"

This reverts commit 9a11711ba8.

* kbn-telemetry-tools

* Change a useMemo to useCallback so the code executes when intended

* Removed no-longer-used import

* exitOrFail already retries for longer than tryForTime

* Wait for loading indicator to disappear

* Intentionally adding `.only`

* Revert .only

* Increase wait time for the ML chart to load

* Remove unused var

* overflow

* chartWidth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-01 13:56:37 -04:00
Kibana Machine 4b9c159e57
[Lens] mock htmlIDGenerator to avoid messages when running tests (#101042) (#101066)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-06-01 17:54:54 +00:00
Kibana Machine f7b99c2278
[Logs UI] Replace legacy es client usage in category examples (#100716) (#101055)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-01 11:47:09 -04:00
Kibana Machine 8a205e3bb6
Allow for ID in create package policy request (#100908) (#101053)
E2E tests are failing because they include the ID field returned by the
package list endpoint. This just updates our request schema to accept an
ID, though we don't persist or deal with the ID anywhere.

Closes #100897

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-01 11:24:48 -04:00
Stratoula Kalafateli c18944f156
[Lens] By Value Migrations for 7.13 (#100622) (#101031)
* quick fix for 7.13 lens migration not being run on by value panels

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 10:23:48 -04:00
Kibana Machine c0fe7d0834
[Index Patterns Field Formatter] Added human readable precise formatter for duration (#100540) (#101046)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-01 13:59:27 +00:00
Tiago Costa 1faae80762
skip flaky suite (#90565) 2021-06-01 12:54:43 +01:00
Tiago Costa 7579ce6dfa
skip flaky suite (#64473) 2021-06-01 12:50:35 +01:00
Kibana Machine 4e5bc2118e
[Observability] Expose options to customize sidebar route matching (#100886) (#101036)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-01 07:17:59 -04:00
Alejandro Fernández Gómez 8a62b29374
[Fleet] Remove beats management plugin (#99789) (#101010)
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/deprecations.mdx
#	api_docs/security.json
#	api_docs/spaces.json
2021-05-31 13:33:12 -04:00
Tiago Costa 0434764a5c
skip flaky suite (#100570) 2021-05-31 16:28:30 +01:00
Cauê Marcondes 9856fda344
[7.x] [APM] Move APM tutorial from apm_oss to x-pack/apm (#100780) (#100967)
* [APM] Move APM tutorial from apm_oss to x-pack/apm (#100780)

* Register tutorial on APM plugin

* using files from apm

* removing tutorial from apm_oss

* removing export

* fixing i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts

* fixing merge

* fixing merge
2021-05-31 11:00:42 -04:00
Kibana Machine 4b09416ac2
[Lens][Dashboard] Share session between lens and dashboard (#100214) (#100985)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-05-31 07:25:23 -04:00
Kibana Machine 45c8744d08
[Security Solution] Add modified at and modified by fields to the trusted apps card (#100868) (#100981)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-05-31 06:09:46 -04:00
Kibana Machine e09cbcb48b
[ML] Functional tests - reenable DFA feature importance suite (#100850) (#100977)
This PR re-enables the data frame analytics feature importance test suite.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-05-31 09:49:59 +00:00
CJ Cenizal 66d63f384e
[7.x] Remove license check from Index Management (#100188) (#100971)
* Remove license check from Index Management (#100188)

# Conflicts:
#	x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts
#	x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts

* Fix linting error.
2021-05-31 00:24:21 -04:00
CJ Cenizal fb14fb049d
Remove license check from Ingest Node Pipelines UI (#100189) (#100959)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-29 13:26:59 -04:00
Kibana Machine ad66f73729
[Security Solution][Detections] Update rule integration tests (#98512) (#100960)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-05-28 23:40:28 -04:00
Tyler Smalley 52dd72e0a2 Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)"
This reverts commit be40e96806.
2021-05-28 17:21:51 -07:00
Kibana Machine 22b7991212
[ML] Fixing management app race condition (#100785) (#100949)
* [ML] Fixing management app race condition

* updating test id

* translation id

* adding link to license page

* fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-05-28 18:13:46 -04:00
Kibana Machine 5747871a36
[ML] Severity control for Anomaly timeline (#99489) (#100945)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-05-28 17:36:23 -04:00
Pete Hampton 028b5f4563
Remove / Consolidate legacy usage adoption metrics (#100480) (#100941)
* Remove legacydetection rule stat summaries

* Remove ML usage summary and consolidate with ML metric telemetry.

* Remove ML usage summary and consolidate with ML metric telemetry.

* Move legacy helper constructs into index.

* Separate rule logic from ml logic. Add ml unit tests.

* Abstract types away into their own file.

* Update telemetry schema.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 16:57:35 -04:00
Garrett Spong 8ca9d3ffc8
[RAC][Security Solution] Register Security Detection Rules with Rule Registry (#96015) (#100940)
## Summary

This PR starts the migration of the Security Solution rules to use the rule-registry introduced in https://github.com/elastic/kibana/pull/95903. This is a pathfinding effort in porting over the existing Security Solution rules, and may include some temporary reference rules for testing out different paradigms as we move the rules over. See https://github.com/elastic/kibana/issues/95735 for details

Enable via the following feature flags in your `kibana.dev.yml`:

```
# Security Solution Rules on Rule Registry
xpack.ruleRegistry.index: '.kibana-[USERNAME]-alerts' # Only necessary to scope from other devs testing, if not specified defaults to `.alerts-security-solution`
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
```

> Note: if setting a custom `xpack.ruleRegistry.index`, for the time being you must also update the [DEFAULT_ALERTS_INDEX](9e213fb7a5/x-pack/plugins/security_solution/common/constants.ts (L28)) in order for the UI to display alerts within the alerts table.

---

Three reference rule types have been added (`query`, `eql`, `threshold`), along with scripts for creating them located in:

```
x-pack/plugins/security_solution/server/lib/detection_engine/reference_rules/scripts/
```

Main Detection page TGrid queries have been short-circuited to query `.alerts-security-solution*` for displaying alerts from the new alerts as data indices.

To test, checkout, enable the above feature flag(s), and run one of the scripts from the above directory, e.g.  `./create_reference_rule_query.sh` (ensure your ENV vars as set! :)

Alerts as data within the main Detection Page 🎉
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/119911768-39cfba00-bf17-11eb-8996-63c0b813fdcc.png" />
</p>

cc @madirey @dgieselaar @pmuellr @yctercero @dhurley14 @marshallmain

# Conflicts:
#	x-pack/plugins/security_solution/server/plugin.ts
2021-05-28 16:46:51 -04:00
Kibana Machine f759046189
[Enterprise Search] Log warning for Kibana/EntSearch version mismatches (#100809) (#100935)
* Add server log warnings whenever Kibana and Enterprise Search versions are mismatched

* Copy feedback

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-05-28 15:53:04 -04:00
Tyler Smalley be40e96806
[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)
* [FTR][CI] Use default distribution for all tests (#94968)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Use default output

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* [FTR] Use importExport for saved_object/basic archive

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Update suggestions tests

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Fix build

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* More migrations to kbnArchiver

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-05-28 15:25:52 -04:00
Pete Harverson 7b17455d8c
[ML] Fix categorization job view examples link when datafeed uses multiple indices (#100789) (#100923)
* [ML] Fix categorization job view examples link when datafeed uses multiple indices

* [ML] Fix operator in index pattern check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 14:41:59 -04:00
Kibana Machine 92bc2ec74f
Fixing ES archive mapping failure (#100835) (#100917)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2021-05-28 14:15:43 -04:00
Kibana Machine 499d47a7e6
[Security Solution][Endpoint] Add event filters summary card to the fleet endpoint tab (#100668) (#100915)
* Shows event filters card on fleet page

* Uses aggs instead of while loop to retrieve summary data

* Add request and response types in the lists package

* Fixes old import

* Removes old i18n keys

* Removes more old i18n keys

* Use consts for exception lists url and endpoint event filter list id

* Uses event filters service to retrieve summary data

* Fixes addressed pr comments such as changing the route without underscore, adding aggs type, validating response, and more

* Uses useMemo instead of useState to memoize object

* Add new e2e test for summart endpoint

* Handle api errors on event filters and trusted apps summary api calls

* Add api error message to the toast

* Fix wrong i18n key

* Change span tag by react fragment

* Uses styled components instead of modify compontent style directly and small improvements on test -> ts

* Adds curls script for summary route

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-05-28 18:05:42 +00:00
Kibana Machine 3c7b809756
Fix bug with Observability > APM header navigation (#100845) (#100916)
Call `setHeaderActionMenu(undefined)` when the HeaderMenuPortal is unmounted.

Found this line in the docs:

> Calling the handler with `undefined` will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a weird toast error message and the header menu is gone forever

Now:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a working header menu

Fixes #97140

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-05-28 14:03:10 -04:00
Kibana Machine ce5145748e
[Actions] Taking space id into account when creating email footer link (#100734) (#100913)
* Taking space id into account when creating email footer link

* Handling undefined space when spaces is disabled

* Handling undefined space when spaces is disabled

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-28 13:54:32 -04:00
Kibana Machine 3fa7834ab8
[Security Solution] Improve find rule and find rule status route performance (#99678) (#100912)
* Fetch rule statuses using single aggregation instead of N separate requests

* Optimize _find API and _find_statuses

* Merge alerting framework errors into rule statuses

* Add sortSchema for top hits agg, update terms.order schema

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2021-05-28 13:47:10 -04:00
Pete Hampton 29e0969601
Update detection rule telemetry field name. (#100256) (#100910)
* Changing variable name of cases_count_daily to cases_count_total.

* Taking comments out of tests and reverting tests to previosu state.

* Changing meta description to be more descriptive.

* Changing meta description to be more descriptive.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Claire Burn <80253545+clburn-elastic@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 13:21:01 -04:00
Kibana Machine f6ebf81521
[Fleet] Improve combo box for fleet settings (#100603) (#100909)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-05-28 13:18:54 -04:00
Kibana Machine 228cc9458f
[Security Solution][Endpoint] Endpoint generator and data loader support for Host Isolation (#100813) (#100904)
Re-introduces the changes from #100727 which was backed out due to a bug. Changes included:

* Generate random isolation values for endpoint metadata
* Generator for Fleet Actions
* Added creation of actions to the index test data loader

Plus:

* Fix generator `randomBoolean()` to ensure it works with seeded random numbers
* Update resolver snapshots due to additional call to randomizer

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-05-28 12:38:25 -04:00
Kibana Machine 41ef9ec8a0
[Alerting] Adding feature flag for enabling/disabling rule import and export (#100718) (#100887)
* Adding feature flag for enabling rule import and export

* Removing item from docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-28 11:48:28 -04:00
Kibana Machine 324854c536
[Lens] Adds dynamic table cell coloring (#95217) (#100878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2021-05-28 15:18:56 +00:00
Kibana Machine 0dff3fe05b
[Security Solution][Endpoint] Do not display searchbar in security-trusted apps if there are no items (#100853) (#100877)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-05-28 11:17:30 -04:00
Alison Goryachev fc3814d079
[Infra] Update LogStream component docs (#100795) (#100872) 2021-05-28 10:41:22 -04:00
Pete Hampton 9f19a64a98
Add ML usage collector descriptions to the schema. (#100387) (#100860)
* Add ML usage collector descriptions to the schema.

* Update the telemetry mappings file
2021-05-28 09:09:48 -04:00