Commit graph

41371 commits

Author SHA1 Message Date
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
Kibana Machine
4f0e675d8b
[Lens] [Docs] Add more QA for Lens (#97142) (#101015)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-05-31 09:25:52 -07:00
Tiago Costa
72e71ad750
skip flaky suite (#98240) 2021-05-31 16:38:05 +01:00
Tiago Costa
0434764a5c
skip flaky suite (#100570) 2021-05-31 16:28:30 +01:00
Matthias Wilhelm
70543ade3a
[Discover] Fix infinite scrolling using Classic table (#97634) (#101003)
* Fix infinite scrolling

* Add functional tests
2021-05-31 11:21:48 -04: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
4c118d0afd
[Vega] fix redundant scrollbars in default vega config (#97210) (#100988)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-05-31 08:18:30 -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
Spencer
3ccadb4100
[ftr] migrate screenshots and snapshots services to FtrService class (#100514) (#100921)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/functional/services/index.ts
2021-05-28 14:24:04 -04:00
Spencer
2d9dd6aa08
[7.x] [ftr] migrate "browser" to FtrService class (#100507) (#100919)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 14:21:29 -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
gchaps
a3da48de12
Remove recommendation of coordinating only node (#100632) (#100932)
* Remove recommendation of coordinating only node

A documentation should be easy and straight forward and giving the user the easiest possible way to get to a fully functioning cluster.

Running a coordinating only node is a bad idea because:

1. Introduces a single point of failure, especially when it is running on the same host as Kibana.
2. Introduces complexity, because you need to run an additional node.

The easiest way to solve the issue of load balancing is to add multiple hosts in the `Elasticsearch.hosts` array in the `Kibana.yml`. This should be far easier than deploying a coordinating node.

* fixed CI errors, there were references to the deleted `load-balancing-es` https://github.com/elastic/kibana/pull/100632

Co-authored-by: Philipp Kahr <philipp.kahr@elastic.co>
2021-05-28 10:37:37 -07:00
gchaps
ab0030b43a
[DOCS] Adds video to introduction (#100906) (#100928) 2021-05-28 10:34:27 -07: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
50e63875b2
[TSVB] [Table tab] Fix "Math" aggregation (#100765) (#100896)
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-05-28 12:08:35 -04:00
Kibana Machine
64528b1851
chore(NA): moving @kbn/io-ts-utils into bazel (#100810) (#100893)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-28 12:02:21 -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
3fe14f4bd1
[TSVB] Fix Upgrading from 7.12.1 to 7.13.0 breaks TSVB (#100864) (#100883)
Closes: #100778

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-05-28 15:32:19 +00: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
Kaarina Tungseth
0f50198929
[DOCS] Adds Lens video (#100898) (#100900) 2021-05-28 07:47:18 -07: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
Kibana Machine
9d485b5c5b
[Observability] Fix typo in readme for new navigation (#100861) (#100873)
* [Observability] Fix typo in readme for new navigation

* Add rxjs dep

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-05-28 05:53:22 -07:00
Marco Vettorello
1c1f05e2d7
Update dependency @elastic/charts to v29.2.0 (#100587) (#100856)
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-28 08:05:58 -04:00
Kibana Machine
c4ad5d86fa
[Lens] Move app state to redux toolkit (#100338) (#100851)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-05-28 05:55:40 -04:00
Kibana Machine
e8039e188b
[ftr] migrate "savedObjectManagementComponent" service to FtrService class (#100614) (#100849)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 05:01:16 -04:00
Kibana Machine
f1f56d0bd6
[ftr] migrate "queryBar" service to FtrService class (#100612) (#100848)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 03:10:31 -04:00
Kibana Machine
bc7adfa40b
[ftr] migrate "MenuToggle" service to FtrService class (#100608) (#100847)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 03:06:04 -04:00
Kibana Machine
c95c60177c
[ftr] migrate "embedding" and "renderable" services to FtrService class (#100596) (#100846)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 03:00:14 -04:00
Marta Bondyra
8a6090849b
[Lens] fix error when adding a new layer (#100766) (#100834)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-27 20:20:17 -04:00