Commit graph

4299 commits

Author SHA1 Message Date
Kerry Gallagher
558dd120a1
Grok debugger migration (#60658)
* Migrates Grok Debugger to new platform
2020-03-31 17:54:34 +01:00
Robert Austin
503fbfb89a
Endpoint: Fix resolver SVG position issue (#61886)
Panning, zooming, centering did now always work correctly.
2020-03-31 12:31:08 -04:00
Yuliia Naumenko
81e1dca2c8
Added styles to make combobox list items wider for alerting flyout (#61894)
* Added styles to make combobox list items wider for alerting flyout

* Fixed width for OF expression popover

* Fixed due to comments

* Fixed due to comments

* Resized
2020-03-31 08:49:08 -07:00
Jean-Louis Leysens
12c8ff78d7
[UA] Tight worker loop can cause high CPU usage (#60950)
* Addded worker padding to save some CPU

* Updated comments

* Update worker scheduler and add a new util

The worker scheduler should only sleep when it cannot process any
in progress operations. Additionally, logic has been added
for handling of queue operations that have been in the queue for
a long time and may be viewed as still in small window of time
by wokers that do not have the credentials to process those
reindex operations.

* res 👉🏻resolve

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-31 17:26:46 +02:00
Melissa Alvarez
069439a7ec
[ML] DF Analytics results table: use index pattern field format if one exists (#61709)
* classification: use index field format in results table

* regression: use index field format in results table

* outlier: use index field format in results table

* update types

* add destIndex specific fields when using sourceIndex for fields
2020-03-31 11:04:48 -04:00
James Gowdy
b96bae8427
[ML] Catching unknown index pattern errors (#61935)
* [ML] Catching unknown index pattern errors

* fixing typo

* fixing typo

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-31 16:03:42 +01:00
Matthias Wilhelm
0082ca7ad8
[Discover] Deangularize and euificate sidebar (#47559)
* Split angular templates into React components

* Add tooltip for field label

* Adapt SCSS

* Cleanup angular directives

* Extract helper functions

* Improve tests + docs

* Move css to _sidebar.scss

* Exclude _id field from displaying the Visualize button to prevent an ES error

* A11y improvements
2020-03-31 17:01:44 +02:00
Robert Austin
4899aaf565
Endpoint: Add ts-node dev dependency (#61884)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Used to run CLI scripts written in Typescript
2020-03-31 11:01:06 -04:00
Dima Arnautov
aeba1b7bb0
[ML] Handle Empty Partition Field Values in Single Metric Viewer (#61649)
* [ML] WIP support empty partition fields values

* [ML] support empty field in anomaly table

* [ML] remove comments

* [ML] fix context chart

* [ML] rename empty field label, render as italic

* [ML] rename empty field label

* [ML] fix focus chart

* [ML] add time range capping for fields_service.ts

* [ML] empty string labels in anomaly explorer
2020-03-31 16:29:00 +02:00
Melissa Alvarez
f1866b331e
[ML] Settings: Increase number of items that can be paged in calendars and filters lists (#61842)
* set size limit to 1000 for calendars/filters get routes

* update comment

* update default size comment
2020-03-31 09:14:56 -04:00
Sandra Gonzales
241a7a620a
[EPM] update epm filepath route (#61910)
* update epm filepath route

* add CHANGELOG

* add title

* fix path in changelog

* fix typo
2020-03-31 08:43:24 -04:00
Alejandro Fernández
4632f3ef85
[Logs UI] Log stream row rendering (#60773) 2020-03-31 13:12:44 +02:00
James Gowdy
0236376fa9
[ML] Fixing reporting of http request errors (#61811)
* [ML] Fixing reporting of http request errors

* fixing types

* updating translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-31 11:44:01 +01:00
James Gowdy
0033e04e0a
[ML] Fixing job ID in edit job flyout (#61840)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-31 10:10:32 +01:00
Walter Rafelsberger
d78711b3e8
[ML] Fix date nanos preview rendering. (#61792)
Fixes the rendering of columns of date type date_nanos for the transform pivot preview.
2020-03-31 10:03:04 +02:00
Alexey Antonov
1696dd5607
Delete legacy embeddable_api plugin (#61767)
* Delete legacy `embeddable_api` plugin

Closes: #61545

* fix test:karma
2020-03-31 10:33:04 +03:00
Xavier Mouligneau
4083d6682f
[SIEM] Cases clean up Phase II (#61750)
* allow case to work without security

* disable configure button + add call out if license does not match and if kibana config does not allow if

* add skeleton for crud in case

* fix link to timeline + disable action on case on read only + allow read only access to our saved object in siem + manage no x-pack.security + show msg when read-only + fix reporters bug

* add actions required in plugins

* review I

* review II

* review III

* review IV

* fix types

* review V
2020-03-31 00:20:11 -04:00
Nathan Reese
1687e8ef5a
[Maps] convert redux store to TS phase 1 (#61704)
* [Maps] convert redux store to TS phase 1

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 21:56:43 -06:00
Lukas Olson
c65196943d
Rename async search params (#61641)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 18:13:21 -07:00
Ryland Herrick
8b31ce0a89
[SIEM] Check ML Job status on ML Rule execution (#61715)
* Move isMlRule helper to a more general location

And use it during rule execution as well.

* Add error message back to rule error status

This was unintentionally removed in a previous merge commit.

* Expose mlClient as part of ML's Setup contract

This allows dependent plugins to leverage the exposed services without
having to define their own ml paths, e.g. "ml.jobs"

* Move ML Job predicates to common folder

These are pure functions and used on both the client and server.

* WIP: Check ML Job status on ML Rule execution

This works, but unfortunately it pushes this executor function to a
complexity of 25. We're gonna refactor this next.

* Move isMlRule and RuleType to common

These are used on both the frontend and the backend, and can be shared.

* Refactor Signal Rule executor to use RuleStatusService

RuleStatusService holds the logic for updating the current status as
well as adding an error status. It leverages a simple
RuleStatusSavedObjectClient to handle the communication with
SavedObjects.

This removes the need for our specialized 'writeError', 'writeGap', and
'writeSuccess' functions, which duplicated much of the rule status
logic and code. It also fixes a bug with gap failures, with should have
been treated the same as other failures.

NB that an error does not necessarily prevent the rule from running, as
in the case of a gap or an ML Job not running.

This also adds a buildRuleMessage helper to reduce the noise of
generating logs/messages, and to make them more consistent.

* Remove unneeded 'async' keywords

We're not awaiting here, so we can just return the promise.

* Make buildRuleStatusAttributes synchronous

We weren't doing anything async here, and in fact the returning of a
promise was causing a bug when we tried to spread it into our attributes
object.

* Fix incorrectly-named RuleStatus attributes

This mapping could be done within the ruleStatusService, but it
lives outside it for now.

Also renames the object holding these values to the more general
'result,' as creationSuccess implies it always succeeds.

* Move our rule message helpers to a separate file

Adds some tests, as well.

* Refactor how rule status objects interact

Only ruleStatusSavedObjectsClient receives a savedObjectsClient, the
other functions receive the ruleStatusSavedObjectsClient

* pluralizes savedObjects in ruleStatusSavedObjectsClient
* Backfills tests

* Handle adding multiple errors during a single rule execution

We were storing state in our RuleStatusClient, and consequently could
get into a situation where that state did not reflect reality, and we
would incorrectly try to delete a SavedObject that had already been
deleted.

Rather than try to store the _correct_ state in the service, we remove
state entirely and just fetch our statuses on each action.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 16:35:38 -05:00
Sandra Gonzales
5042a0d757
[EPM] update registry path structure (#61621)
* update registry path structure

* temporarily remove fleet tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 15:00:50 -04:00
Sandra Gonzales
1a93fa75a9
update to reflect change in registry /search to return 1 item (#61625)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 14:59:56 -04:00
Pete Harverson
300df648f0
[ML] Prevent training_percent of 0 for analytics job (#61789) 2020-03-30 18:42:03 +01:00
Melissa Alvarez
9bf63368e7
[ML] DF Analytics: ensure job state is up to date (#61678)
* classification results: fetch job state on load

* regression results: fetch job state on load

* outlier results: fetch job state on load

* remove deprecated code adding jobStatus to url

* update outlier result test
2020-03-30 13:17:17 -04:00
Melissa Alvarez
b844fc584a
[ML] DF Analytics Classification: clarify subset of data used in confusion matrix (#61548)
* clarify which subset of data is being used in confusion matrix

* ensure dataSubsetTitle updates correctly
2020-03-30 13:04:35 -04:00
James Gowdy
956f97172b
[ML] Fix jobs list filter in url (#61822) 2020-03-30 18:00:00 +01:00
Joe Portner
ed1a5ceaf5
Add username/password validation to login form (#60681) 2020-03-30 12:15:11 -04:00
Lukas Olson
1855d10d9d
Temporarily remove wait_for_completion (#61677)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 07:13:59 -07:00
Alison Goryachev
2c60c5e005
[Snapshot Restore] Fix doc links (#61331) 2020-03-30 09:14:01 -04:00
Alejandro Fernández
c96fb41cf4
[Logs UI] Add context fields to /log_entries/entries API (#60759)
* Add `context` to `logEntryRT`

* Query context fields

* Extract value to prevent type assertion

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Add test for the context fields

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 13:28:25 +02:00
James Gowdy
2c1508717b
[ML] Use indices options in datafeed preview (#61698) 2020-03-30 12:06:23 +01:00
Joe Reuter
b6101f042a
Graph: Migrate feature registration (#61419) 2020-03-30 11:11:00 +02:00
Alison Goryachev
256508478c
[Remote clusters] Add cloud-specific logic to remote clusters (#61639) 2020-03-29 17:44:12 -04:00
Dario Gieselaar
47184fbc29
[APM] Fix deduplication for focused service maps (#61580)
Closes #61292.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-28 22:32:38 +01:00
Christos Nasikas
3eb842fc97
[SIEM][CASE] Delete endpoints return noContent (#61721) 2020-03-28 19:01:29 +02:00
Patrick Mueller
8d539aa34a
[alerting] change eventLog schema to use dynamic false (#61633)
resolves https://github.com/elastic/kibana/issues/58518

Changes the object properties in the eventLog mappings to use `dynamic: false`
instead of `dynamic: strict`.  This provides a bit of a safety net for cases
where the mappings change during development, or potentially in production
cases.  Rather than completely lose entire events and see errors in logs, we'll
silently drop properties from events.

While researching the `dynamic` property, I remember there's also a `meta`
property available, which is a convenient place to drop our meta-data about
a field being an array value, for internal processing.  Bonus, it can live in
the generated mappings as well.

references:

- https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-meta.html
- https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html
2020-03-27 18:15:59 -04:00
Felix Stürmer
878ab20a7e
[Logs UI] Add category data quality warning based on ML job st… (#60551)
This adds warnings to the categories tab when the stats of the underlying ML job indicate a potential problem with the data quality.

closes #60385
2020-03-27 20:25:09 +01:00
Christos Nasikas
b4ee6a8fff
[SIEM][CASE] Fix dates when updating (#61603)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-27 20:50:12 +02:00
Nathan L Smith
a9a9776b39
Replace APM agent "Active" setting with "Recording" (#61538)
Also change "APM server" to "APM Server"

Fixes #61179.
2020-03-27 12:40:55 -05:00
Mike Côté
d1214f8893
Add close button to expression popovers (#61352)
* Add X to trigger expression popovers

* Fix jest tests

* PR feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-27 13:37:22 -04:00
Justin Kambic
7224253936
Fix some null reference issues. (#61465) 2020-03-27 12:53:35 -04:00
Justin Kambic
1da53ed23b
[Uptime] Fix PingList pagination (#61481)
* Add pagination.

* Update test files.
2020-03-27 12:50:49 -04:00
Gidi Meir Morris
1246dc35a3
updated es index labels (#61504)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-27 15:34:22 +00:00
Gidi Meir Morris
67397f944d
[Alerting] fixes styling of loading indicator (#61430)
Aligns the loading indicator with the middle of the form and adds some margins from the edges.

This has been done on both the alerts list and the connectors list.
2020-03-27 15:33:54 +00:00
Lukas Olson
80417f6888
[Search] Fix async search to encode index pattern in path (#61374)
* Fix async search to encode index in path

* Update docs

* Review feedback & fixing types
2020-03-27 08:31:34 -07:00
Robert Oskamp
f5e94c4ca3
[ML] Move get_module Jest tests to functional API test (#61613)
This PR removes the flaky listModules and getModule Jest tests and adds them as functional API tests.
2020-03-27 16:12:15 +01:00
Jean-Louis Leysens
01451212f2
[SearchProfiler] Set the agg treeRoot value (#61591) 2020-03-27 13:17:42 +01:00
Xavier Mouligneau
327f5a099a
[SIEM] [CASES] bug/clean up phase I (#61354)
* clean up comments + add update_by/update_at  case when comment are added/updated + return all comments

* add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page

* fix i18m

* review I

* review II
2020-03-26 20:09:58 -04:00
Yuliia Naumenko
40d50343c9
Fix alert and action telemetry reporting to stop sending data that contains dot in the name (#61389)
* fix alert and action telemetry reporting to stop sending data that starts or ends with a '.'

* Fixed due to comments

* fixed test

* revert testing data
2020-03-26 16:49:07 -07:00
marshallmain
b1fa159e17
[Endpoint] Get current host info when retrieving alert details (#60906)
* create new alert details type

* update integration test

* add await to esarchiver call

* remove unused host stats type

* does the ui types good

* change host.host to host_metadata.host

* fix mock result type

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Davis Plumlee <davis.plumlee@elastic.co>
2020-03-26 17:30:41 -04:00