Commit graph

15363 commits

Author SHA1 Message Date
Kibana Machine
43372b9b53
[DOCS] Fix link in list of Kibana plugins (#141514) (#141697)
(cherry picked from commit 28924818e4)

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-10-18 13:13:40 -05:00
Kibana Machine
1765d1dea3
Hide Enterprise search panel when no nodes are present (#127100) (#127114)
(cherry picked from commit fc3aedcf78)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-03-08 02:31:56 -07:00
Joe Portner
066d6a2d46
Fix session cleanup test (#126966) (#127087)
(cherry picked from commit 2f83c6516d)

# Conflicts:
#	x-pack/plugins/security/server/session_management/session_index.ts
2022-03-07 18:04:38 -07:00
Lisa Cawley
4f52c18c41
Edits dateFormat settings (#126858) (#126965)
(cherry picked from commit 5f8f4d7c4f)
2022-03-04 15:48:10 -07:00
Xavier Mouligneau
c058d822bc
[8.0] [RAM] Fix bulk action for o11y for 7.17 (#126686) (#126854)
* [RAM] Fix bulk action for o11y for 7.17 (#126686)

* fix bulk action for o11y

* review I

* discuss it more with Devin

* clean up

(cherry picked from commit 8f277d4677)

* fix es client

* fix function
2022-03-04 08:43:23 -07:00
Christos Nasikas
44c3fb380b
[Cases] Fix bug when pushing a case and the closure option is set to automatic (#126705) (#126782)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0c806e9e41)

# Conflicts:
#	x-pack/plugins/cases/server/client/cases/push.ts
2022-03-03 09:48:10 -07:00
Tiago Costa
e3eb5407eb
chore(NA): bump version to 8.0.2 (#126603) 2022-03-01 14:32:44 -07:00
Chris Cowan
e2bd785da8
[RAC][Rule Registry] Paginate results for fetching existing alerts (#122474) (#126516)
* [RAC][Rule Registry] Paginate results for fetching existing alerts

* Change to difference to increase performance by 2 seconds for 50K alerts

* Changing the pagination to break up the request into 10K chunks

* Updating NOTICE.txt per CI instructions

* Changing warning message to debug

* Prefix log message with [Rule Registry]

(cherry picked from commit 0236c8ae42)

# Conflicts:
#	x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts
2022-02-28 14:19:34 -07:00
Chris Cowan
599f75a481
[Metrics UI] Increase composite size to 10K for Metric Threshold Rule and optimize processing (#121904) (#126506)
* [Metrics UI] Increase composite size for Metric Threshold Rule to 10K

* Adding performance optimizations

* Fixing metrics_alerting integration test

* fixing tests

* Fixing integration test and config mock

* Removing the setTimeout code to simplify to a for/of

* Adding new setting to docs

* Adding metric_threshold identifier to the config setting

(cherry picked from commit ae0c8d5ecb)

# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts
2022-02-28 13:47:57 -07:00
Chris Cowan
05c0327711
[Infrastructure UI] Remove reduces from Log Threshold Rule (#126402) (#126502)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 29879e2978)
2022-02-28 13:20:48 -07:00
Kyle Pollich
827e50d184
Improve error message for duplicate package policies (#126170) (#126452)
(cherry picked from commit 2b8b331271)

# Conflicts:
#	x-pack/plugins/fleet/server/services/package_policy.ts
2022-02-28 07:05:06 -07:00
Kibana Machine
cd88dc09b5
[Fleet] Fix package policy name verification on update (#126356) (#126372)
(cherry picked from commit 43a2622b97)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-24 11:59:17 -07:00
Steph Milovic
9c546f1a21
Hide timeline bar if user does not have security solution crud capability (#123775) (#126289)
* Hide timeline bar if user does not have security solution crud capability

* change visibility to be based on show instead of crud

* PR fix

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit 5aa26ed37d)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-02-23 14:33:21 -07:00
Kibana Machine
b869b7f245
[Fleet] Reset preconfiguration delete preconfiguration deletion record (#126273) (#126286)
(cherry picked from commit 448436f89f)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-23 13:48:47 -07:00
Nick Partridge
7ce80f4c7f
Restores default chart timezone to 'local' (#123265)
* fix timezone changes

* fix failing checks and type errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-23 21:08:16 +01:00
Kibana Machine
3e97bfe1c2
[Fleet] Fix preconfiguration inputs enablement (#126205) (#126246)
(cherry picked from commit b1444ca4be)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-23 08:09:49 -07:00
Kibana Machine
050546b6cb
[8.0] [Exploratory view] Update mobile index pattern to account for metrics events (#125916) (#125954)
* [Exploratory view] Update mobile index pattern to account for metrics events (#125916)

(cherry picked from commit f7cdf2ed93)

* Update mobile_test_attribute.ts

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
Co-authored-by: Dominique Clarke <dominiquedclarke@gmail.com>
2022-02-22 14:29:02 -07:00
Kibana Machine
557be1fc84
Exponentially increases retry time when extending session fails (#125973) (#126188)
* Exponentially increases retry time when extending session fails

* Ensure unit test fails without exponential retry backoff

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c5918c7e07)

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2022-02-22 14:14:34 -07:00
Julia Bardi
721b7abd22
[8.0] backport fix for edit package policy page validation (#126102)
* [8.0] backport fix for edit package policy page validation

* removed test
2022-02-22 02:39:20 -07:00
István Zoltán Szabó
28c513e163
[ResponseOps] Adds tooltip to time window selector in ES query rule flyout (#125764) (#126051) 2022-02-21 04:53:40 -07:00
Kibana Machine
e60cd94587
[8.0] [Security Solution][Upgrade] Add tag for disabled rules on upgrade (#125448) (#125894)
* [Security Solution][Upgrade] Add tag for disabled rules on upgrade (#125448)

* Add tag for disabled rules on upgrade

* Resiliency

* Restore 8.0 AAD migration and add 8.0.1 migration for auto-disabled tags

* Add integration test for migration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8f03c791e0)

* Rename RawRule to RawAlert

Co-authored-by: Madison Caldwell <madison.caldwell@elastic.co>
2022-02-17 10:36:41 -07:00
Walter Rafelsberger
f41c1b4980
[ML] Transforms: Fix editing retention policy without default value. (#123450) (#125926)
- Previously, a bug with how the form state would handle retention policy and populating the field select, a user could be blocked from setting the field or the form state wouldn't pick up the initial setting.
- This is now fixed by setting hasNoInitialSelection to reflect the form set. If no retention policy had been set previously, the select dropdown will be empty until the user does a selection (which will then correctly update the to be updated transform config).
- Functional tests have been updated to fail reflect the change and fail without the fix.
- Fixed a cloning issue: When loading the wizard it didn't pick up the retention policy value provided by the config to be cloned but always fell back to the first available date field.

(cherry picked from commit 1ecb42bf01)
2022-02-17 06:48:51 -07:00
Yulia Čech
ade71c13ca
[8.0] [Snapshot & Restore] Fix repository types on Cloud (#125656) (#125835)
* [Snapshot & Restore] Fix repository types on Cloud (#125656)

* [Snapshot & Restore] Fix repository types on Cloud

* [Snapshot & Restore] Move repo types tests into `on-prem` describe block

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 37dfc22c1a)

# Conflicts:
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.test.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.ts

* [Snapshot & Restore] Fix linting issue
2022-02-17 05:26:34 -07:00
Kibana Machine
5619b914dc
[Security Solution] Apply field aliases to all legacy indices, not just <= version 45 (#125888) (#125900)
* Apply field aliases to all legacy indices, not just <= version 45

* Update unit tests

(cherry picked from commit 5b752653f4)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-02-17 00:44:12 -07:00
Kibana Machine
75a523d66c
Populate kibana.alert.uuid in eql sequence alerts (#125890) (#125898)
(cherry picked from commit 01a87e040b)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-02-17 00:43:32 -07:00
Nathan Reese
2c775e32a0
[8.0] [maps] fix Dashboards with by-value maps are broken when copied to new space (#125599) (#125887)
* merge with main

* update expect
2022-02-16 20:46:05 -07:00
Kevin Lacabane
2dfb0c40bd
[8.0] [Stack Monitoring] update rules queries to support metricbeat 8.0 [fixed PR] (#125748) (#125877)
* [Stack Monitoring] update rules queries to support metricbeat 8.0 [fixed PR] (#125748)

* update queries to use metricset.name and fix paths

* fix ccr query

* fix cluster health query paths

* update elasticsearch version mismatch

* update fetchLicense paths

* use ecs properties in fetch_index_shard_size

* Clarified comment about createDatasetFilter

* Re-editing a clarifying comment

* Small comment edit

* Revert "use ecs properties in fetch_index_shard_size"

This reverts commit cdf8b2493e.

* simplify fetch_index_shard_size document handling

Co-authored-by: neptunian <sandra.gonzales@elastic.co>
Co-authored-by: klacabane <kevin.lacabane@elastic.co>
(cherry picked from commit 7126bc9cc1)

# Conflicts:
#	x-pack/plugins/monitoring/server/lib/alerts/create_dataset_query_filter.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_ccr_read_exceptions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_ccr_read_exceptions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cluster_health.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cluster_health.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_clusters.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_clusters.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cpu_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cpu_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_disk_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_disk_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_elasticsearch_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_elasticsearch_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_kibana_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_kibana_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_licenses.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_licenses.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_logstash_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_logstash_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_memory_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_memory_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_missing_monitoring_data.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_missing_monitoring_data.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_nodes_from_cluster_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_nodes_from_cluster_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_thread_pool_rejections_stats.ts

* import createDatasetFilter

* target correct filter property

Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
2022-02-16 16:34:02 -07:00
Kevin Qualters
0dbedb5434
[8.0] [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331) (#125810)
* [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331)

* Fetch alert ecs data in actions.tsx and not a hook in every table row

* Add error handling and tests for theshold timelines

* Fix bad merge

* Remove unused imports

* Actually remove unused file

* Remove usage of alertIds and dead code from cases

* Add basic sanity tests that ensure no extra network calls are being made

* Remove unused operator

* Remove unused imports

* Remove unused mock

(cherry picked from commit e312c36e4c)

# Conflicts:
#	x-pack/plugins/cases/public/components/case_view/case_view_page.tsx
#	x-pack/plugins/cases/public/components/user_actions/types.ts
#	x-pack/plugins/security_solution/public/cases/pages/index.tsx
#	x-pack/plugins/security_solution/public/timelines/components/side_panel/event_details/footer.tsx

* Fix types

* Fix failing tests
2022-02-16 15:01:38 -07:00
Kibana Machine
090f7aab59
[Fleet] Use package policy version to determine managed policy upgrades (#125788) (#125826)
(cherry picked from commit 3dd2d75bce)

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2022-02-16 11:21:39 -07:00
Hannah Mudge
a1a5b914fb
[8.0] [Dashboard] Transfer state when drilldown is opened in a new tab (#124770) (#125740)
* [Dashboard] Transfer state when drilldown is opened in a new tab (#124770)

* Translate dashboard state to URL conditionally

* Add functional tests

* Fix typo in functional test descriptions

* Remove deprecated references

* Rename useUrl to be more specific

(cherry picked from commit 17a997cccb)

# Conflicts:
#	src/plugins/dashboard/public/index.ts

* Fix lint
2022-02-16 11:06:23 -07:00
Kibana Machine
91ee460a0a
[Security Solution][Lists] - Fix exception list with comments import bug (#124909) (#125808)
### Summary

Addresses https://github.com/elastic/kibana/issues/124742

#### Issue TLDR
Import of rules that reference exception items with comments fail. Failure message states that comments cannot include `created_at`, `created_by`, `id`.

(cherry picked from commit f894d8673b)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-02-16 10:21:02 -07:00
Kibana Machine
226be06574
[8.0] [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525) (#125672)
* [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525)

(cherry picked from commit 928638e395)

* [Fleet] Use registry version check on main (#125495)

* [Fleet] Get package info should not store the whole package (#123509)

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-16 05:41:23 -07:00
Liza Katz
38c6c85855
[8.0] Reverse parent child context relationship (#125486) (#125670)
* Reverse parent child context relationship (#125486)

* reverse parent child context relationship

* bad merge

* ts

* ts

* fix jest

* try unblocking flaky test

* doc

(cherry picked from commit 724e3b2ebf)

# Conflicts:
#	docs/user/troubleshooting/trace-query.asciidoc
#	src/plugins/discover/public/embeddable/saved_search_embeddable.tsx
#	src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx
#	x-pack/plugins/lens/public/embeddable/embeddable.tsx

* backport fixes

* ts

* skip

* es
2022-02-16 04:14:52 -07:00
Kibana Machine
fba6713de8
[Security Solution] Upgrade tests for DE rule types - alerts on legacy alerts (#125331) (#125709)
* Add integration tests for alerts-on-legacy-alerts

* Remove query rule tests from prior location - they were moved

* Remove 'kibana' field from alerts on legacy alerts

* Fix tests

* Delete alerts before proceeding from compatibility tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7d186f945b)

Co-authored-by: Madison Caldwell <madison.caldwell@elastic.co>
2022-02-15 13:51:21 -07:00
Patryk Kopyciński
6d001e4d58
[8.0] [Osquery] Fix infinite loop (#124332) (#125615)
* [Osquery] Fix infinite loop (#124332)

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
(cherry picked from commit 1f4a7d4d72)

# Conflicts:
#	x-pack/plugins/osquery/public/packs/queries/query_flyout.tsx
#	x-pack/test/osquery_cypress/artifact_manager.ts

* Update index.tsx

* fix

* fix

Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
2022-02-15 13:18:30 -07:00
Kibana Machine
b1ad06ab6b
[Fleet] Fix output form validation for trusted fingerprint (#125662) (#125681)
(cherry picked from commit 181d04c2e1)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-15 10:25:22 -07:00
Kibana Machine
bc031b47df
revert package policy validation that caused issue with input groups (#125657) (#125679)
(cherry picked from commit 35f4ba5362)

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2022-02-15 10:15:55 -07:00
Dima Arnautov
bd277583e7
[8.0] [ML] Fix flaky Trained Models tests (#125484) (#125623)
* [ML] Fix flaky Trained Models tests  (#125484)

* add extra assertion

* prevent extra call on init

* fix stats call

(cherry picked from commit b51c87f24c)

# Conflicts:
#	x-pack/test/functional/services/ml/common_ui.ts
#	x-pack/test/functional/services/ml/index.ts

* update refresh button check
2022-02-15 08:36:32 -07:00
Kibana Machine
ef3c39efbf
[Fleet] Update copy for integration server (#125592) (#125654)
(cherry picked from commit 743733d6eb)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-15 07:47:34 -07:00
Jan Monschke
fe3991fcd3
fix: enrich threshold data from fields data (#125634) 2022-02-15 06:44:59 -07:00
Yulia Čech
2205ea3bc2
[Snapshot & Restore] Fix date parsing in the search bar (#125234) (#125637)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c14173cd09)
2022-02-15 06:31:29 -07:00
Yulia Čech
25b073ff8f
[Snapshot & Restore] Add component tests for snapshot list search (#121537) (#125617)
* [Snapshot & Restore] Add component tests for snapshot list search

* [Snapshot & Restore] Fix term search

* [Snapshot & Restore] Add error handling tests

* [Snapshot & Restore] Add code review suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c4585b3382)
2022-02-15 04:50:11 -07:00
Kibana Machine
e85b4f22ab
SavedObjects management: change index patterns labels to data views (#125356) (#125606)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit ff5a4dce9d)

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
2022-02-15 01:29:46 -07:00
Kibana Machine
664b0e98f0
[Fleet] Add retries when starting docker registry in integration tests (#125530) (#125575)
(cherry picked from commit 57aefd0a6b)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-14 15:10:37 -07:00
Kibana Machine
785f7396db
[Fleet] Tell users when assets are installed in a different space (#125278) (#125573)
* Show new message when assets installed in separate space

* move variable into useEffect

(cherry picked from commit a81b11e0fb)

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2022-02-14 14:46:01 -07:00
Ersin Erdal
4313930141
Alert doesn't fire action if it's muted or throttled (#124775) (#125562)
* Alert doesn't fire action if it's muted or throttled

(cherry picked from commit e4dd6e769c)

# Conflicts:
#	x-pack/plugins/alerting/server/task_runner/task_runner.test.ts
#	x-pack/plugins/alerting/server/task_runner/task_runner.ts
2022-02-14 12:52:26 -07:00
Dominique Clarke
bbefaf052e
[Uptime] handle null duration on ping list (#125438) (#125552)
* uptime - handle null duration

* adjust types

* Update x-pack/plugins/uptime/server/lib/synthetics_service/service_api_client.ts

* raise per page of synthetics monitors

* Remove tooltip

(cherry picked from commit 52e9c51d15)

# Conflicts:
#	x-pack/plugins/uptime/public/components/monitor/ping_list/ping_list_table.tsx
#	x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list.tsx
#	x-pack/plugins/uptime/server/lib/synthetics_service/synthetics_service.ts
2022-02-14 12:16:45 -07:00
Kibana Machine
87895d8ff8
[ci] Splits Jest integration tests (#125454) (#125532)
(cherry picked from commit 435b772786)

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-02-14 10:44:18 -07:00
Kibana Machine
34348522ca
[Fleet] Fix invalid permission entry if the elastic agent package is not installed (#125447) (#125529)
(cherry picked from commit d383bda82e)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-02-14 10:43:35 -07:00
Christos Nasikas
1fbfbd091d
[Response Ops][Cases] Add more granular checks before decoding user actions (#124896) (#125468)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
(cherry picked from commit 97bd50da88)

# Conflicts:
#	x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts
#	x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts

Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2022-02-14 04:00:31 -07:00