Commit graph

39930 commits

Author SHA1 Message Date
igoristic
7494e25bf1
[7.x] [DOC] Updated documentation for newly added monitoring alerts (#91272) (#95725)
* [DOC] Updated documentation for newly added monitoring alerts (#91272)

* Documentation for recently added alerts

* [DOCS] Fixes broken link

* Addressed review feedback

Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/monitoring/cluster-alerts.asciidoc

* [DOC] Removes broken link

Co-authored-by: lcawl <lcawley@elastic.co>
2021-03-30 15:04:12 -04:00
Pierre Gayvallet
d2b724fb42
use correct config prefix for server config (#95792) (#95818) 2021-03-30 14:53:04 -04:00
Stratoula Kalafateli
4fe26b8198
[TSVB] Show an indicator when using Last Value mode (#91977) (#95817)
* [TSVB] Show an indicator when using Last Value mode

* Extended some TSVB types, remove unused translations and do some refactoring

* Fix some functional tests and label displaying for Last value

* Fix some functional tests and label displaying for Last value

* Refactor data_time_range_mode_label and change some types

* fix CI

* Refactor timeseries_visualization seriesData

* Remove unused re export

* Replace "href" prop with "onClick" in EuiLink and refactor tooltip content

* Change link to text and add pointer style to it

* FIx import in kibana_framework_adapter

* Remove label for entire time range mode and add an icon for last value mode label

* Add action to show last value label for TSVB embeddables

* Fix TimeseriesVisParams import

* Revert "Add action to show last value label for TSVB embeddables"

This reverts commit 15f16d6f72.

* Put the "Last value" badge on the top of visualization and add an option to hide it

* Fix failing _tsvb_markdown test and refactor timeseries_visualization

* Move I18nProvider frim timeseries_visualization to timeseries_vis_renderer

* Add condition to hide gear button when entire time range mode is enabled, fix gauge scroll issue

* Change text in the popover, add condition to indicator if series data is empty, create migration script to hide last value label for previously created visualizations and a test for that

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

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 14:49:18 -04:00
Zacqary Adam Xeper
8c4f2a7809
[Fleet] Configure Fleet packages and integrations through endpoint (#94509) (#95816) 2021-03-30 14:45:45 -04:00
Kibana Machine
f39f67a431
do not re-render embeddable so often (#95653) (#95812)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-03-30 14:13:55 -04:00
Kibana Machine
0f488c4542
update mock and types (#95771) (#95810)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-03-30 14:04:16 -04:00
Paul Tavares
d415a0ac14
[FLEET][Artifacts] Use artifact information to generate a unique ID when creating a new Artifact (#95705) (#95809)
* Change id generation for artifact create
2021-03-30 13:59:31 -04:00
Kibana Machine
1a5edfa21b
Disable indexing for .fleet-agents action_seq_no field (#95584) (#95807)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Aleksandr Maus <aleksandr.maus@elastic.co>
2021-03-30 13:48:17 -04:00
Quynh Nguyen
f5258014ed
[7.x] [ML] Add Anomaly Explorer charts embeddable (#94396) (#95793) 2021-03-30 12:07:55 -05:00
Stratoula Kalafateli
af9f768af9
Update vega related modules (master) (#92651) (#95800)
* Update vega and vega-lite

* Update specs for vega-lite

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-03-30 12:48:13 -04:00
David Sánchez
d0e8eef2c0
[Security Solution] User can filter Trusted Applications by Hash, Path, Signer, or Trusted App name (#95532) (#95795)
* Allows filter param. Empty by default

* Uses KQL for filter from Ui

* Adds search bar to dispatch trusted apps search. Fixes some type errors. Added filter into the list View state

* Fix tests and added a new one. Also split query on array to improve readability

* Decouple query parser to be used outside the middleware

* Reuse code using a map

* Filter by term using wildcards. Updates test

* Adds useCallback to memoize function
2021-03-30 12:30:15 -04:00
Kibana Machine
3d6df8ea18
[optimizer] Compress sass assets in production (#94846) (#95794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-30 12:15:08 -04:00
Nathan Reese
2701177d67
[file_upload] add has_import_permission route (#95190) (#95790)
* [file_upload] add has_import_permission route

* remove ml hasImportPermissions

* fix tsconfig path

* tslint

* review feedback

* make pipeline check optional since geojson upload does not use pipeline

* ts cleanup

* make geojson permission failure message actionable

* revert privilege change in functional test

* add global_index_pattern_management_all permission to functional test

* rename hasPipeline to checkHasManagePipeline

* add api integration test

* tslint

* revert change to es_search_source

* simpilify error message when users can't create index pattern

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 12:02:09 -04:00
Kibana Machine
63d40c50f5
[Lens] Expose events from lens for lens embeddable (#94670) (#95786)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-03-30 11:41:38 -04:00
Shahzad
8132d63a85
[7.x] [Uptime] Support agent data streams (#91469) (#95385)
* [Uptime] Support agent data streams (#91469)

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

* update test

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 11:27:51 -04:00
Kibana Machine
3076ad46f6
[Workplace Search] Add download diagnostics button to source settings (#95726) (#95785)
* Add routes

* Add button to UI

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-03-30 15:17:40 +00:00
Christiane (Tina) Heiligers
bd3f30f1bd
[DOCS] Adds user-facing docs for the new KP logging configuration (#94993) (#95803)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
# Conflicts:
#	docs/migration/migrate_8_0.asciidoc
2021-03-30 11:16:48 -04:00
Mike Côté
52f41d8750
Create new alerting HTTP APIs that use the new terminology (#93977) (#95781)
* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Create new rule HTTP APIs (#93980)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Add necessary files

* Create rule route

* Get rule API

* Update rule API

* Delete rule route

* Aggregate rules API

* Disable rule API

* Enable rule API

* Find rules API

* Fix Update API

* Get rule alert summary API

* Get rule state API

* Health API

* Rule types API

* Mute all API

* Mute alert API

* Unmute all API

* Unmute alert route

* Update API key API

* corrected tpye by making it much more complicated

* removed unneeded cocde

* Fixes

* Add back health route

* mutedInstanceIds -> mutedAlertIds

* lastRun -> last_run

* alert_type_state -> rule_type_state & alert_instances -> alerts

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* Create docs for new rule HTTP APIs, deprecate old docs (#94745)

* Create docs for new APIs, deprecate old docs

* Remove connector_type_id

* Update docs

* Add link to legacy APIs from rules API docs

* Remove connector_type_id references

* [DOCS] Add legacy APIs to index.asciidoc

* Fix camel case

Co-authored-by: lcawl <lcawley@elastic.co>

* Make alerting tests use new rules APIs (#95159)

* Make API integration tests use new HTTP APIs

* Fix end to end tests

* Fix test failures

* Fix more test failures

* Rename some files

* Add tests for legacy APIs (#95333)

* Initial commit (#95457)

* Move some new alerting APIs to /internal (#95461)

* Initial commit

* Update README.md

* Use internal API

* Merge deprecated warning w/ alternative solution

* Update API docs

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
# Conflicts:
#	api_docs/core.json
2021-03-30 10:41:41 -04:00
Kibana Machine
8f5fd0fd63
[Sessions] Extract search abort controllers logic into a separate class (#95688) (#95779)
* simplify abort controller logic and extract it into a class

* docs

* delete unused tests

* code review

* code review

* code review

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-03-30 10:34:34 -04:00
Pierre Gayvallet
41eb6e2b12
Remove core->cli dependency (#95145) (#95775)
* extract http_tools to package

* fix readme

* start moving stuff

* cleaning up `isDevCliParent`

* choose bootstrap script

* fix bootstrap script logic

* fix watch paths logic

* import REPO_ROOT from correct package

* create the @kbn/crypto package

* update core's `dev` config

* only export bootstrap function

* extract sslConfig to http-tools package

* fix core types

* fix optimizer tests

* fix cli_dev_mode tests

* fix basePath proxy tests

* update generated doc

* fix unit tests

* create @kbn/dev-cli-mode package

* remove useless comment

* self-review NITS

* update CODEOWNERS file

* add devOnly flag

* use variable for DEV_MODE_PATH

* review comments

* fix logger/log adapter

* fix log calls in base path proxy server

* address some review comments

* rename @kbn/http-tools to @kbn/server-http-tools

* more review comments

* move test to correct file

* add comment on getBootstrapScript

* fix lint

* lint

* add cli-dev-mode to eslint dev packages

* review comments

* update yarn.lock

* Revert "[ci] skip building ts refs when not necessary (#95739)"

This reverts commit e46a74f7
# Conflicts:
#	.github/CODEOWNERS
2021-03-30 09:48:48 -04:00
David Sánchez
16b8c0213a
Fix unit test. Get rid of snapshots and use query element instead (#95656) (#95763)
# Conflicts:
#	x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/__snapshots__/trusted_apps_page.test.tsx.snap
2021-03-30 09:24:48 -04:00
Kibana Machine
879b08ac1f
[App Search] Add a Sample Engine CTA panel to the engines table when empty (#94647) (#95766)
* Added new onboarding complete route for App Search

* Allow responses without JSON bodies in Enterprise Search

* New SampleEngineCreationCtaLogic

* New SampleEngineCreationCta component

* Add SampleEngineCreationCTA to engines EmptyState

* Improve SampleEngineCreationCta

* Fix spelling error in Enterprise Search request handler test

* Improve SampleEngineCreationCtaLogic

* Fix types

* Fix tests after origin/master merge

* Turns out I 'fixed' my tests by removing this test

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

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
2021-03-30 09:03:48 -04:00
Kibana Machine
7505514d6e
Better error serialization for error provided to HTTP response factory (#95671) (#95765)
* pass error reason for ES responses provided in HTTP response body

* add a test

* ML: update functional tests when index does not exist

* transform: fix integration test for error message

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-03-30 08:59:27 -04:00
Matthias Wilhelm
630f00897e
[Discover] Improve sidebar rendering for large field lists (#95038) (#95764)
* 50 fields are rendered initially, more fields are rendered while user is scrolling

* This is a big performance improvement when there are lots of fields to render
2021-03-30 08:41:47 -04:00
Angela Chuang
8961505b55
[SecuritySolution] Unskip uncommon_processes·ts (#95343) (#95757)
* wrap with retry

* wrap with retry

* wrap tests with retry

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 08:33:14 -04:00
Alejandro Fernández Gómez
e5f116a79c
[Fleet] Expose permissions as part of the agent policy (#94591) (#95753) 2021-03-30 07:55:17 -04:00
Kibana Machine
d4c046f620
export type and runtme code separation (#95320) (#95751)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-03-30 07:21:57 -04:00
Kibana Machine
8d44ade11b
[ML] Functional tests - stabilize anomaly explorer tests for slow network (#95628) (#95747)
This PR stabilizes the ML anomaly explorer functional tests for slow network environments.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-03-30 06:58:23 -04:00
Kibana Machine
3bebdd3af6
More detailed instructions for deleting corrupt saved object documents (#95046) (#95762)
* More detailed instructions for deleting corrupt saved object documents

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>

Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>
2021-03-30 06:39:58 -04:00
Kibana Machine
3d8702f87f
Revert "[ci] skip building ts refs when not necessary (#95739)" (#95746) (#95749)
This reverts commit e46a74f7

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-03-30 02:04:11 -07:00
Uladzislau Lasitsa
9e5b4bffa2
[TSVB] Change the default mode from last value to entire timerange (#93608) (#95662)
* Make 'enter time range' value as default and add telemetry for 'last value' mode

* Fix telemetry schema

* Fix test

* Add possibility count timeseries created from dashboard

* Fix remark

* Fix remark

* Fix problem with time_range_mode

* Fix tests

* Fix tests

* Fix tests for markdown and table

* exclude TSVB which have type as timeseries

* Add description for field in schema in telemetry

* Fix telemetry schema

* Fix some remarks

* Added check for hits

* fix CI

* fix CI

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 03:31:54 -04:00
Kibana Machine
d79ef66ed9
[ci] skip building ts refs when not necessary (#95739) (#95740)
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-03-30 02:53:57 -04:00
Kibana Machine
f3815fca81
[Workplace Search] Send kibana_host when calling /reauth_prepare (#95529) (#95737)
* WIP almost there?

* Fix server route validation

* fix account route

* Fix test expectations

Co-authored-by: scottybollinger <scotty.bollinger@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: James Rucker <james.rucker@elastic.co>
Co-authored-by: scottybollinger <scotty.bollinger@elastic.co>
2021-03-29 23:59:42 -04:00
Kibana Machine
c58a1b3ca8
[Enterprise Search] Fix bug in indexing status (#95719) (#95731)
* Add interface

The component was already passing the props the logic file needed, they just aren’t listed in the interface

* Pass props to logic file

Also destructures from props to prevent collision with the local logic values that are repopulated when data is fetched.

* Update logic file to use props for default values

* Fix test and use spy

* Remove resetContext

No longer needed!

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-03-29 23:08:20 -04:00
Tiago Costa
1041ed9e7a
skip flaky suite (#95642) 2021-03-30 03:39:27 +01:00
Yara Tercero
966e66c252
[7.x] [Security Solution][Exceptions] - Moves ExceptionItem component to lists plugin (#95246) (#95608)
* [Security Solution][Exceptions] - Moves ExceptionItem component to lists plugin (#95246)

## Summary

Moves part of the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I am moving single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.

The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `BuilderExceptionItem` which deals with rendering the individual exception items.

* updating snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 22:07:56 -04:00
Brandon Morelli
c20914375d
docs: add getting started and service map vids (#95722) (#95729) 2021-03-29 19:56:42 -04:00
Kibana Machine
ef9d604d05
[kbn-ui-shared-deps] Minify css (#94869) (#95703)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-29 19:47:57 -04:00
Pierre Gayvallet
70e9e5d8ef
fix globalSearchBar jest env (#95640) (#95702) 2021-03-29 19:40:46 -04:00
Paul Tavares
dd87ddf8c0
[Security Solution][Endpoint] Migration of user generated Artifacts to Fleet (#95481) (#95692)
* Migration of artifacts from SO to fleet index
* Better errors out of fleet server setup
* Expose `fleetSetupComplete()` out of FleetStartContract
* Ensure that ManifestTask only runs after `.start()` is called
2021-03-29 16:31:20 -04:00
Jonathan Budzenski
0e9aa2352f
[deb/rpm] Fix SysV init scripts (#95018)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 15:26:45 -05:00
Kibana Machine
4dda827170
[App Search] Remove API logs/Analytics-specific unavailable logic (#95601) (#95691)
* EngineOverview: Remove apiLogsUnavailable logic & UnavailablePrompt

* Analytics: Remove analyticsUnavailable logic & AnalyticsUnavailable

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-03-29 20:09:10 +00:00
Kibana Machine
a4e5347c97
[Enterprise Search] DRY out various repeated action button copy (#95114) (#95689)
* DRY out repeated button/table/modal actions copy to a shared file

* DRY out 'Edit' copy

* DRY out 'Delete' copy

* DRY out 'Save' copy

* DRY out 'Cancel' copy

* DRY out 'Continue' copy

* DRY out 'Close' copy

* DRY out 'Manage' copy

* DRY out 'Update' copy

* [WS] DRY repeated 'Update'/'Save'/'Cancel' copy

* [AS] DRY out 'Restore defaults' button

- used on 2 pages so far, and will also be used on result settings

* PR feedback: Add _BUTTON_LABEL specificity

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-03-29 20:07:40 +00:00
Kibana Machine
bbe82a7ed2
Increase timeout for user management tests (#95661) (#95690)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-03-29 16:06:16 -04:00
Kibana Machine
5e196284ff
[ML] Add search time runtime support for index based Data Visualizer (#95252) (#95684)
* [ML] Add runtime support from index pattern for data viz

* [ML] move runtime mappings outside of aggregatableFields loop

* [ML] Change arg name to runtimeMappings

* [ML] Fix dv full time range broken

* [ML] Fix dv broken with time range

* [ML] Add better error handling/transparency

* [ML] Update to using estypes.RuntimeField

* [ML] Update to use some shared common functions between ml and transform

* Revert "[ML] Update to use some shared common functions between ml and transform"

This reverts commit ce813f01

* [ML] Disable context menu if no charts

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-03-29 19:16:21 +00:00
Kibana Machine
60a894975b
[App Search] Refactor Result Settings logic (#95531) (#95682)
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-03-29 15:10:21 -04:00
Marta Bondyra
2e46e1287f
[Lens] (Docs) fix quality of images from advanced guide (#95629) (#95694)
* correct quality of docs images

* no amsterdam
2021-03-29 14:43:52 -04:00
Kibana Machine
c0aa030d30
[Lens] Fully unmount React when flyout closes (#95359) (#95677)
* [Lens] Fully unmount React when flyout closes

* Fix bug with editor frame unmounting

* Fix type

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

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-03-29 14:42:36 -04:00
igoristic
b37e83b6e0
[Monitoring] Removed timefilter refresh override (#94648) (#95674)
* Removed refresh override

* Changed default behavior

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 14:27:27 -04:00
Adam Locke
5596a274fc
Update link for enabling security (#95519) (#95668)
* Update link for enabling security

This change updates the `elasticsearchEnableSecurity` link to the new page for [Configuring security for the Elastic Stack](https://www.elastic.co/guide/en/elasticsearch/reference/master/configuring-stack-security.html).

Closes #84337

* Updating test to use expected doc link.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 14:04:34 -04:00