Commit graph

41414 commits

Author SHA1 Message Date
Kibana Machine 6b6c48dbcb
Automated package testing (#88900) (#100812)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2021-05-27 20:33:04 +00:00
Kibana Machine b8efa8e32c
[Maps] timeslider (#99661) (#100811)
* [Maps timeslider]

* just arrowLeft and arrowRight icons

* tslint

* color icon when timeslider is open, auto select first section on open

* increase width to prevent timeslider from changing sizes during interaction

* fix filters disappearing when timeslice advances

* use shorter date format for ticks

* review feedback

* do not show timeslider button when map is embedded

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-05-27 16:25:21 -04:00
Kibana Machine 72e000f14e
chore(NA): moving @kbn/monaco into bazel (#100709) (#100808)
* chore(NA): moving @kbn/monaco into bazel

* chore(NA): update register globals definitions

* chore(NA): remove build script

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-27 15:51:54 -04:00
Anton Dosov 64017d65cc
[Index patterns] Default index pattern REST API (#100691) (#100798) 2021-05-27 14:00:43 -04:00
Georgii Gorbachev d3fbb91a22
[RAC] Rule monitoring: Event Log for Rule Registry (#98353) (#100794)
**Needed for:** rule execution log for Security https://github.com/elastic/kibana/pull/94143
**Related to:**

- alerts-as-data: https://github.com/elastic/kibana/issues/93728, https://github.com/elastic/kibana/issues/93729, https://github.com/elastic/kibana/issues/93730
- RFC for index naming https://github.com/elastic/kibana/issues/98912

## Summary

This PR adds a mechanism for writing to / reading from / bootstrapping indices for RAC project into the `rule_registry` plugin. Particularly, indices for alerts-as-data and rule execution events. This implementation is similar to existing implementations like `event_log` plugin (see https://github.com/elastic/kibana/pull/98353#issuecomment-833045980 for historical perspective), but we're going to converge all of them into 1 or 2 implementations. At least we should have a single one in `rule_registry` itself.

In this PR I tried to incorporate most of the feedback received in the RFC (https://github.com/elastic/kibana/issues/98912), but if you notice I missed/forgot something, please let me know in the comments.

Done in this PR:

- [x] Schema-agnostic APIs for working with Elasticsearch.
- [x] Schema-aware log definition and bootstrapping API (creating hierarchical logs).
- [x] Schema-aware write API (logging events).
- [x] Schema-aware read API (searching logs, filtering, sorting, pagination, aggregation).
- [x] Support for Kibana spaces, space-aware index bootstrapping (either at rule creation or rule execution time).

As for reviewing this PR, perhaps it might be easier to start with:

- checking description of https://github.com/elastic/kibana/issues/98912
- checking usage examples https://github.com/elastic/kibana/pull/98353/files#diff-c049ff2198cc69bd50a69e92d29e88da7e10b9a152bdaceaf3d41826e712c12b
- checking public api https://github.com/elastic/kibana/pull/98353/files#diff-8e9ef0dbcbc60b1861d492a03865b2ae76a56ec38ada61898c991d3a74bd6268

## Next steps

Next steps towards rule execution log in Security (https://github.com/elastic/kibana/pull/94143):

- define actual schema for rule execution events
- inject instance of rule execution log into Security rule executors and route handlers
- implement actual execution logging in rule executors
- update route handlers to start fetching execution events and metrics from the log instead of custom saved objects

Next steps in the context of RAC and unified implementation:

- converge this implementation with `RuleDataService` implementation
  - implement robust index bootstrapping
  - reconsider using FieldMap as a generic type parameter
  - implement validation for documents being indexed
- cover the final implementation with tests
- write comprehensive docs: update plugin README, add JSDoc comments to all public interfaces
2021-05-27 13:33:45 -04:00
Kibana Machine 3f455e8ef6
[Uptime] Waterfall use different styling for number (#97216) (#100793)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-05-27 12:56:16 -04:00
Kibana Machine 39c2a52abc
[Logs UI] Add shared observability page template and navigation (#99380) (#100792)
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
2021-05-27 12:52:41 -04:00
Kibana Machine 9c7006ea59
Add kibana.yml configuration for cases (#100583) (#100788)
Make it so `xpack.observability.unsafe.alertingExperience.enabled` only shows and hides the Alerts page, and `xpack.observability.unsafe.cases.enabled` show and hides the Cases page.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-05-27 12:46:06 -04:00
Anton Dosov b9115a6122
[Index Patterns] Migrate tests to the new es client (#100760) (#100782) 2021-05-27 11:43:58 -04:00
Candace Park fad75020d3
[Security Solution][Endpoint][Host Isolation] User can unisolate host from alert details (#100401) (#100777) 2021-05-27 11:26:45 -04:00
Kibana Machine 7b2f4c33b2
[Lens] Improve caching with more stable Elasticsearch requests (#100414) (#100776)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-05-27 15:22:02 +00:00
Stratoula Kalafateli 36e90c21da
[TSVB] Support triggers only for timeseries chart (#100323) (#100774)
* [TSVB] Support triggers only for timeseries chart

* fix the type

* Fix type falure

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 11:15:27 -04:00
Patrick Mueller 12f6d2de3b
[alerting] add ignore_above to alerts params mappings to handle immense params (#100726) (#100772)
resolves https://github.com/elastic/kibana/issues/100607

This fixes a problem when very large parameters (over 32K bytes) are saved with
an alert.  Before this fix, an error from elasticsearch would be thrown with
the following message, and a 400 returned from create (and presumably update).

    Document contains at least one immense term in field=\"alert.params\"
    (whose UTF8 encoding is longer than the max length 32766), all of which
    were skipped.

After the fix, alerts with immense params can be saved and executed.

Note that the immense params will not be searchable, since they won't be indexed,
but that seems both unavoidable, and not a severe issue.
2021-05-27 11:09:36 -04:00
Kibana Machine 4c6d3c9de9
[ftr] migrate "comboBox" service to FtrService class (#100592) (#100761)
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-27 13:13:03 +00:00
Kibana Machine 121427f75d
[Maps] Isolate mapbox-gl types and align downstream package versions. (#100610) (#100752)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-05-26 23:00:25 -04:00
Kibana Machine 41944dbc06
[Fleet] Pass policy namespace to agent monitoring settings (#100500) (#100511)
* Pass agent policy namespace to agent monitoring settings

* Adjust copy

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-05-26 22:56:52 -04:00
Tim Sullivan f215c3a89e
[Reporting] Use the deprecations service to advise critical config changes (#100427) (#100750)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/reporting/server/core.ts
#	x-pack/plugins/reporting/server/plugin.ts
2021-05-26 22:42:45 -04:00
Kibana Machine 12ec99f3fd
[Alerting] Link to action config settings from connector docs (#100358) (#100751)
* wip

* Adding section about connector networking config to all connectors

* Updating wording

* Changing header size

* Updating links

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-05-26 18:07:58 -07:00
Kibana Machine df8ba923c4
[ftr] migrate AppsMenuService to FtrService class (#100588) (#100745)
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-26 19:33:14 -04:00
Kibana Machine ced8ee59c5
Bump dependencies (#100724) (#100742)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-05-26 19:02:56 -04:00
Kibana Machine b6a231621c
[ftr] migrate "flyout" and "inspector" services to FtrService class (#100602) (#100739)
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-26 18:52:52 -04:00
Kibana Machine 0055a4aaea
remove src/legacy and src/optimizer from configs (#100538) (#100736)
* cleanup removed dirs

* delete removed folders from other places in the repo

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

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-05-26 17:55:49 -04:00
Kibana Machine 9479eaa067
[ftr] migrate "toasts" service to FtrService class (#100613) (#100729)
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-26 17:35:35 -04:00
Kibana Machine a97a1065a3
[Uptime] Move uptime actions to Header Actions Menu (#100298) (#100728)
* Move uptime actions to Kibana's HeaderActionsMenu.

* Delete a comment.

* Extract ActionMenu content to dedicated component to make testing easier.

* Add tests.

* Use `EuiHeaderLinks` instead of `EuiFlexItem`.

* Clean up tests.

* Prefer `getByRole` for a test.

* Fix copy mistake.

* Fix a test broken by the previous commit.

* Prefer `EuiHeaderSectionItem` over `EuiHeaderSectionLink` to avoid nesting `button`s within `buttons`.

* Reverse "Settings" and "Alerts" menu options to make them uniform with APM.

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

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-05-26 17:28:16 -04:00
Kibana Machine 55651f9abe
[7.x] [ftr] migrate "testSubjects" to FtrService class (#100512) (#100656)
* [ftr] migrate "testSubjects" to FtrService class (#100512)

Co-authored-by: spalger <spalger@users.noreply.github.com>

* fix clickAndValidate() fn

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-26 17:08:14 -04:00
Kibana Machine fb74e7204a
[ftr] migrate management services to FtrService class (#100521) (#100723)
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-26 17:03:51 -04:00
Kibana Machine 483f2b89a1
[ftr] migrate visualizations service to FtrService classes (#100522) (#100721)
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-26 16:54:31 -04:00
Spencer 9693644fdd
[ftr] migrate dashboard services to FtrService class (#100519) (#100720)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/functional/services/dashboard/add_panel.ts
#	test/functional/services/index.ts
2021-05-26 16:52:43 -04:00
Ignacio Rivas 20dca6d7f3
[Ingest pipelines] add support for fingerprint processor (#100541) (#100711) 2021-05-26 15:35:54 -04:00
Lisa Cawley 7b977771d9
[7.x]Use documentation link service for index pattern field editor #100609 (#100708) 2021-05-26 12:30:35 -07:00
Kibana Machine 112e174c31
[Fleet] Support browsing granular integrations (#99866) (#100707)
* Manual cherry pick of work to support integration tiles and package-level vars

* Fix types

* Remove registry input group typings

* Show integration-specific readme, title, and icon in package details page

* Revert unnecessary changes

* Add package-level `vars` field to package policy SO mappings

* Fix types

* Fix test

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

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-05-26 14:55:24 -04:00
Pete Harverson a89dd49316
[ML] Adds functional tests for anomaly detection job custom URLs (#100455) (#100706)
* [ML] Adds functional tests for anomaly detection job custom URLs

* [ML] Remove debug test tag from custom URL tests

* [ML] Update custom URL editor Jest snapshots

* [ML] Clean up in embeddables tests to fix dashboard test

* [ML] Delete test dashboard after test suites complete

* [ML] Edits to custom URL tests following review

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-26 14:42:36 -04:00
Tre 35a193d8d6
[QA] Add saved objects info svc (#96364) (#100700)
Add svc and fn to return saved object types in a given index,
defaulted to ".kibana" index.
2021-05-26 14:00:21 -04:00
Kibana Machine 08864b2f35
[Maps] Add draw wizard (#100278) (#100695)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-05-26 13:20:51 -04:00
Kibana Machine 2028d54b3e
[Maps] filter dashboard by map extent (#99860) (#100690)
* [Maps] filter dashboard by map extent

* clean up

* remove warning from filter pill

* tslint

* API doc updates, i18n fixes, tslint

* only show context menu option in edit mode

* add functional test

* review feedback

* do not use search session when filtering by map bounds

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-05-26 12:45:01 -04:00
Anton Dosov a4921f3cbc
[Docs] Index patterns REST API docs (#100549) (#100703) 2021-05-26 09:43:14 -07:00
Sandra Gonzales 0cbea09a69
fix anomaly functional test (#100504) (#100683)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-26 12:22:18 -04:00
Kibana Machine a6b67c699c
improve default time ranges (#100536) (#100673)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-05-26 11:12:54 -04:00
Stratoula Kalafateli 1d5254c166
[Gauge] Fixes wrong translations on ranges less than symbol (#100535) (#100670) 2021-05-26 10:59:54 -04:00
Kibana Machine 2fe74fe817
[ftr] migrate "globalNav" service to FtrService class (#100604) (#100665)
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-26 14:11:34 +00:00
Kibana Machine d2f6b58d6f
Fix spaces test flakyness (#100605) (#100655)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-26 08:39:17 -04:00
Ignacio Rivas 85544b89d0
[Ingest pipelines] add support for ip type in convert processor (#100531) (#100647)
* add ip option type to convert processor

* remove duped option

* small CR changes

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-26 07:39:33 -04:00
Kibana Machine 2aa49fd513
[ftr] migrate "find" service to FtrService class (#100509) (#100644)
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-26 06:58:10 -04:00
Mikhail Shustov b5b784a423
[telemetry] report config deprecations (#99887) (#100643)
* return the list of changes config keys during deprecation

* gather changed config keys in the core

* adjust Security plugin deprecations tests

* update docs

* update interface

* update telemetry schema

* update spaces tests

* update tests in other x-pack plugins

* remove testing instruction

* improve tests. get rid of snapshots
2021-05-26 06:47:57 -04:00
Kibana Machine 94d1c48cd8
[ftr] migrate "docTable" service to FtrService class (#100595) (#100640)
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-26 06:37:39 -04:00
Kibana Machine f43da37f87
[ftr] migrate "listingTable" service to FtrService class (#100606) (#100637)
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-26 10:32:32 +00:00
Kibana Machine 166e732e8c
Fixed comparing real value with formatted according to mode. (#100456) (#100636)
Before this part of code was comparing clean data, which came from dataset, with X/Y values. They were true according to normal mode, but in percentage mode, for example, it was comparing absolute value with percentage value. To avoid it, need to compare datum (feature #822 from elastic/elastic-charts) of geometry with clean value from row info.

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

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-05-26 06:28:47 -04:00
Kibana Machine 9992e63e75
[ftr] migrate "dataGrid" service to FtrService class (#100593) (#100633)
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-26 05:58:14 -04:00
Yaroslav Kuznietsov efb903e467
[TSVB] Fix more than one empty labels in markdown breaks the values for all other labels (#100432) (#100548)
* Fixed multiple empty labels monitoring with [].

* Fixed regexp group behavior and replaced by ''.replaceAll.

* Changed ''.replaceAll with ''.split(...).join(...)

* Added test for (empty) label case.

* Removed not necessary comment.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-26 04:15:35 -04:00
Thomas Watson 3088c70d63
[7.x] Re-add support for configuring server.host: "0" (#100551)
Support for this was lost in #100378.
2021-05-26 10:14:34 +02:00