Commit graph

34695 commits

Author SHA1 Message Date
Ryland Herrick
9e2ebe2040
[Security Solution][Detections] Update telemetry to use ML contract (#71665)
* Update security solution telemetry to use ML providers

This interface recently changed and we're now able to use the ML
contract to retrieve these values. A few unnecessary arguments are
stubbed as we're in a non-user, non-request context.

* Simplify our capabilities stub assignment

This is more legible but still gets the point across; the intermediate
variable was explicit but ultimately unnnecessary.

* Update tests following telemetry refactor

We're not calling different methods, so our mocks need to change
slightly.
2020-07-14 14:20:24 -05:00
spalger
513d0e09e1 skip flaky suite (#71713) 2020-07-14 11:49:16 -07:00
Pete Harverson
6e30ce1ff2
[ML] Fix error toasts shown when starting or editing jobs (#71618)
* [ML] Fix error toasts shown when starting or editing jobs

* [ML] Adds toast_notification_service.ts file

* [ML] Fix Jest and type_check tests

* [ML] Alter check for statusCode in error object handling

* [ML] Fix errors Jest test
2020-07-14 19:45:10 +01:00
Josh Dover
8db71dee09
[DOCS] Clarify 'fields' option in SO.find docs (#71491) 2020-07-14 12:43:08 -06:00
Jonathan Buttner
23ddd27f94
[EPM][IngestManager][SecuritySolution] Correctly handle nested types (#71680)
* Correctly handling nested types

* Correct test names
2020-07-14 14:32:45 -04:00
Gidi Meir Morris
d0c9fe9284
merged lodash imports (#71672)
This is just a code cleanup.
A previous PR accidentally added a second import of the same module into alerts_client.ts.
This PR corrects that.
2020-07-14 19:08:19 +01:00
MadameSheema
f0e75e80b5
updates edit exception text save button (#71684) 2020-07-14 19:56:49 +02:00
Shahzad
981d678e42
[Uptime] Duration Anomaly Alert (#71208) 2020-07-14 19:53:14 +02:00
Ryland Herrick
8f8736cce8
Fix bug where lists "needs configuration" while index is being created (#71653)
The behavior here was that you'd be redirected to detections from
wherever you were, with no warning/indication.

When we knew we needed an index, and that we could create one,
needsConfiguration was incorrectly 'true' during the time between
realizing this fact and creating the index. That intermediate state is
now captured in needsIndexConfiguration, which is true if we either
can't create the index or we failed our attempt to do so.
2020-07-14 12:45:15 -05:00
Quynh Nguyen
c24f180391
[ML] Anomaly Detection: Annotations enhancements (#70198)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 12:36:01 -05:00
Yara Tercero
65c804efa7
[Security Solution][Lists] - Update exception comments logic in API (#71602)
### Summary

Updated the logic so that newly added exception item comments are shown as expected.
2020-07-14 13:13:20 -04:00
Sonja Krause-Harder
ef2a583981
[Ingest Manager] Send kibana version on requests to package registry (#71443)
* Send kibana version on requests to registry search.

* Only use semver part of kibanaVersion.

* Adjust test.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 19:03:28 +02:00
Cauê Marcondes
7243e97883
[Observability] Landing page: Add promo panel for Ingest Manager (#71213)
* adding ingest manager panel

* adding ingest manager panel

* changing url

* removing git conflicts
2020-07-14 18:59:46 +02:00
Robert Austin
8763652a7b
[Resolver] Remove Client side API limits (#71660) 2020-07-14 12:57:00 -04:00
patrykkopycinski
52bbffff61
[Security][Detections] Create Threshold-based Rule type (#71371) 2020-07-14 18:32:07 +02:00
Matthew Kime
b26e3198b3
Management API - simpler interface, remove app context usage (#71144)
Management API - simpler interface, remove app context usage, consolidate rendeing
2020-07-14 11:30:01 -05:00
MadameSheema
01f021daa1
updates exception empty prompt text (#71654) 2020-07-14 18:18:57 +02:00
Angela Chuang
9c91fd9cb7
[SIEM] Add scripts for on boarding prepackage timeline (#67496)
* add prepackaged timelines

* generate ndjson

* expose end api points

* fix types

* fix types

* fix unit test

* install prepackage timelines

* plumbing for prepackaged timelines

* read ndjson by line

* fix unit test

* update templates

* fix types

* fix types

* fix integration test

* update script

* name it back

* add timeline status into rule status api

* fix update messages

* fix unit tests

* fix integration test

* rename types

* update prepackaged timelines

* update prepackaged timelines script

* update scripts

* fix update for elastic template

* move timeline utils

* export timelines scripts

* update module path

* fix intefration test

* add delete all timelines script

* readme

* add get_timeline_by_templatetimeline_id

* add getTimelineByIdRoute

* rename file

* add unit test

* fix types

* fix types

* update readme

* fix error id

* fix unit test

* update path

* update i18n

* update readme

* load prepacked timelines by default

* add unit tests

* Update x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_timelines/README.md

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>

* review

* update prepacked timelines

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-07-14 17:18:32 +01:00
Cauê Marcondes
2c9dac2cef
[APM] Respect default time range defined in Kibana Advanced Settings (#71464)
* using kibana settings on date picker

* fixing unit tests and use date picker component to update the query params

* fixing translations
2020-07-14 18:13:58 +02:00
Joe Reuter
4e97bb11eb
[Graph] Ensure inclusive language (#71416) 2020-07-14 18:13:20 +02:00
Aaron Caldwell
f0787f1224
Fix coordinate maps layers dropdown (#70609) 2020-07-14 09:58:47 -06:00
Nathan Reese
301d9cecf6
[Maps] get isClustered from count request instead of source data request (#71528)
* [Maps] get isClustered from count request instead of source data request

* better naming

* tslint

* review feedback
2020-07-14 09:58:14 -06:00
Nathan Reese
385e4d0a21
[Maps] expose registerLayerWizard and registerSource in maps plugin start (#71553) 2020-07-14 09:56:05 -06:00
Uladzislau Lasitsa
d8823d8996
Migrate timelion to the NP. (#69160)
* Migrate timelion to the NP.

* fixed ci

* Fixed paths

* fixed UI settings

* Fixed ci

* fix CI

* Fixed some comments

* Fixed browser tests

* fixed state

* Fixed comments

* Fixed save expression

* Fixed navigation

* fix CI

* Fixed some problem

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-07-14 18:41:12 +03:00
Paul Tavares
30cc39855d
Ignore equality check against the manifest_version of the full agent config (#71637) 2020-07-14 11:35:32 -04:00
Nick Peihl
54e09cd94e
Update ems-landing-page-url to 7.9 (#71532) 2020-07-14 08:26:58 -07:00
Diana Derevyankina
7d57be6d80
Convert vega tests to jest (#71073)
* Convert vega tests to jest

Part of #57813

* Remove unused config

* Move assets to __test__ folder and remove unnecessary code

* clenup

* cleanup

* Revert default.spec.hjson file and mock default_spec

* Refactor some code

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-07-14 18:11:00 +03:00
Nicolas Chaulet
561b5befac
[Ingest Manager] Enable ingest manager plugin by default. (#70955) 2020-07-14 11:05:09 -04:00
Elizabet Oliveira
19920cb9ad
[Maps] 7.9 design improvements (#71563)
* Design improvements

* more improvements

* Updated snapshots

* Removing unecessary flex item

* Updated snapshot

* Addressing pr review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 15:55:54 +01:00
James Gowdy
a1e511a727
[ML] Changing all calls to ML endpoints to use internal user (#70487)
* [ML] Changing all calls to ML endpoints to use internal user

* updating alerting

* updating documentation

* [ML] Changing all calls to ML endpoints to use internal user

* updating alerting

* updating documentation

* fixing missed types

* adding authorization headers to endpoint calls

* correcting has privileges call

* updating security tests

* odd eslint error

* adding auth header to module setup

* fixing missing auth argument

* fixing delete DFA job permission checks

* removing debug test tag

* removing additional ml privilege checks

* adding authorization header to _evaluate

* updating alerting cluster client name

* code clean up

* changing authorizationHeader name

* updating alterting documentation

* fixing secondary credentials

* adding management links

* updating SIEM telemetry

* fixing merge conflicts

* granting access to index patterns

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 15:48:24 +01:00
Patrick Mueller
67f466aab6
[eventLog] prevent log writing when initialization fails (#71339)
resolves https://github.com/elastic/kibana/issues/68309

Previously, if the initialization of the elasticsearch resources failed
during initialization, the event logger would still try to write events.
Which is somewhat of a catastrophic failure, as typically the logger would
try writing to the alias name, but no alias exists, so a new index would
be created with the name of the alias.  Making it impossible to initialize
successfully later until that index was deleted.

The core initialization calls already returned success indicators, so this
PR just responds to those and prevents the logger from writing to the index
if initialization failed.
2020-07-14 10:42:27 -04:00
Cauê Marcondes
386c7b501c
[Observability] landing page always being displayed (#71494)
* hides overview item when no other obs plugin is available.

* reverting tests changes

* reverting tests changes

* adding overview to observability tests
2020-07-14 16:32:28 +02:00
Alison Goryachev
c19cac743f
[IM] Address data stream copy feedback (#71615) 2020-07-14 10:30:36 -04:00
Kerry Gallagher
a91209c92f
[Logs UI] Anomalies page dataset filtering (#71110)
Adds dataset filtering to logs anomalies page
2020-07-14 15:26:22 +01:00
Luke Elmers
7b026bb984
[data.search.aggs] Remove use_field_mapping from top hits agg (#71168) 2020-07-14 08:19:14 -06:00
Dima Arnautov
50f8db75ce
[ML] Anomaly swim lane embeddable navigation and filter actions (#71082)
* [ML] dragSelect as part of ExplorerSwimlane component

* [ML] use wrapper ref

* [ML] rename callback

* [ML] WIP open in anomaly explorer

* [ML] MlUrlGenerator unit tests

* [ML] WIP actions

* [ML] restore pagination

* [ML] fix fromPage on initial load

* [ML] fix cell selection, filter and time range actions

* [ML] update url generator params

* [ML] prevent label text selection on drag select

* [ML] fix types and unit tests

* [ML] fix embeddable init

* [ML] fix swim lane unit tests

* [ML] change action label, use filter action only for single cell click

* [ML] fix time range bounds

* [ML] fix TS issues

* [ML] fix pagination persistence

* [ML] use viewByFrom the embeddable input
2020-07-14 16:17:26 +02:00
Lisa Cawley
0090de0187
Fixes typo in siem_cloudtrail job description (#71569) 2020-07-14 07:08:03 -07:00
Larry Gregory
9356966e14
Require granted API Keys to have a name (#71623) 2020-07-14 09:58:43 -04:00
Ahmad Bamieh
801ad64658
Update getUsageForCollection (#71609) 2020-07-14 16:56:58 +03:00
Corey Robertson
1ceaea185b
Only fetch saved elements once (#71310)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 09:22:41 -04:00
Jonathan Buttner
763390fd93
[SecuritySolution][Resolver] Adding siem index and guarding process ancestry (#71570)
* Adding siem index and guarding process ancestry

* Fixing type errors
2020-07-14 09:17:37 -04:00
Nathan L Smith
c6705e8053
[APM] Additional data telemetry changes (#71112)
* Add a date range of `now-1d` to the cloud query
* Add a timeout of 5m to all queries (we'll investigate using async queries to improve this in the future.)
* Factor out the date range filter into a variable
* Fix a bug with the `indices_stats` tasks when it doesn't return data
* Update the merge mapping script to create a migration file
2020-07-14 08:16:20 -05:00
Marco Liberati
6154002b83
[Visualize] Fix export table for table export links (#71249)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 14:41:28 +02:00
Liza Katz
dc55b20777
[Search] Server side search API (#70446)
* [search] Refactor the way search strategies are registered/retrieved on the server

* Fix types and tests and update docs

* Fix failing test

* Move strategy name into options

* Remove FE strategies

* TypeScript of hell
delete search explorer

* Fix search interceptor OSS tests

* test cleanup

* fix

* return search wrapper

* initial api

* Shiny happy cleanup

* docs

* fix jest test

* simplify strategy registration

* fix rebase

* fix rebase

* fix backport

* types

* TS for strategy

* docs

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 15:18:59 +03:00
Pierre Gayvallet
5353db5ca6
use inclusive language (#71607) 2020-07-14 14:18:29 +02:00
Robert Austin
97afee5b06
[Security Solution] Hide timeline footer when Resolver is open (#71516)
* Hide the Timeline footer, in the event viewer, if Resolver is showing
2020-07-14 08:12:51 -04:00
Sébastien Loix
fdc999769d
[Index template wizard] Remove shadow and use border for components panels (#71606) 2020-07-14 13:47:03 +02:00
Walter Rafelsberger
262e0754ff
[ML] Kibana API endpoint for histogram chart data (#70976)
- Introduces dedicated Kibana API endpoints as part of ML and transform plugin API endpoints and moves the logic to query and transform the required data from client to server.
- Adds support for sampling to retrieve the data for the field histograms. For now this is not configurable by the end user and is hard coded to 5000. This is to have a first iteration of this functionality in for 7.9 and protect users when querying large clusters. The button to enable the histogram charts now includes a tooltip that mentions the sampler.
2020-07-14 13:37:36 +02:00
Alejandro Fernández
d8204643fe
[Logs UI] Refine log entry row context button (#71260)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 13:28:35 +02:00
Tiago Costa
a4efa1ead0
[test] Skips test preventing promotion of ES snapshot #71612 2020-07-14 11:58:17 +01:00