Commit graph

55638 commits

Author SHA1 Message Date
Kibana Machine
8a3d4447ae
[Enterprise Search] New elasticsearchErrorHandler for server routes (#138341) (#138516)
(cherry picked from commit b8f07a1ccf)

Co-authored-by: Byron Hulcher <byron.hulcher@elastic.co>
2022-08-10 07:45:56 -07:00
Kibana Machine
470e8cf349
[Security Solution] Host/User details flyout, fix ML narrow date range (#138514)
(cherry picked from commit 08d14ef2c0)

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2022-08-10 07:41:55 -07:00
Kibana Machine
0822e376c7
[Security Solution] [Platform] Fixes the alert context menu option to add rule exception (#138291) (#138512)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5155d6a5b8)

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2022-08-10 07:40:49 -07:00
Kibana Machine
8d37a70fd6
Fixing test failure (#138156) (#138513)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 27162e0802)

Co-authored-by: doakalexi <109488926+doakalexi@users.noreply.github.com>
2022-08-10 07:21:45 -07:00
Kibana Machine
60230f5bb0
[Security Solution] Incorrect alerts count is displaying under preview results for data view (#138131) (#138497)
* [Security Solution] Incorrect alerts count is displaying under preview results for data view (#137657)

* Fix CI

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

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
2022-08-10 05:51:37 -07:00
Kibana Machine
11c02dba31
[ML] Functional tests for deleting 3rd party models (#138425) (#138494)
* tests for delete action

* revert the original delete action for dfa models

(cherry picked from commit 6d9d1b92af)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-08-10 04:47:33 -07:00
Kibana Machine
234d346114
[Security Solution] Add "Rule Preview" title before the rule preview section (#138286) (#138490)
* [Security Solution] Add "Rule Preview" title before the rule preview section (#138165)

* Review feedback: naming according to guidelines

(cherry picked from commit a0cb2608fb)

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
2022-08-10 04:21:59 -07:00
Kibana Machine
e42c547d7a
Upgrade lazystream dependency (1.0.01.0.1). (#138479) (#138488)
(cherry picked from commit ab5a726f85)

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
2022-08-10 04:01:32 -07:00
Kibana Machine
4249635f96
[SecuritySolution] Fix: flyout input focus issue (#137960) (#138481)
Workaround

- As suggested by EUI team, we can do a workaround by giving each Flyout instance a unique key which will force React to unmount and remount the flyout and never directly update it.
- This does impact user experience in minor way (imho), where user will see a new flyout sliding from right side everytime they click on a particular row. Please see below video to see how it looks like.

Co-authored-by: Jan Monschke <janmonschke@fastmail.com>
(cherry picked from commit 05ef19f7da)

Co-authored-by: Jatin Kathuria <jtn.kathuria@gmail.com>
2022-08-10 03:30:06 -07:00
Kibana Machine
abe609d12c
Fix small ui issues on index detail views (#138467) (#138472)
Fixes small ui misalignment on generate API key modal.
When fieldname and fieldvalue are too long, result table will not
truncate the text on expanded view to make all content visible.

(cherry picked from commit 8f0b6b5c45)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-09 18:44:33 -07:00
Kibana Machine
ffa6fe4eca
Remove duplicate messages after domain is deleted (#138339) (#138468)
(cherry picked from commit fb2061e0e9)

Co-authored-by: Byron Hulcher <byron.hulcher@elastic.co>
2022-08-09 17:33:39 -07:00
Kibana Machine
8f667bab70
[Security Solution][Bulk actions]- Fix bulk actions data views behavior (#138448) (#138466)
## Summary

Addresses [bug](https://github.com/elastic/kibana/issues/138383) found where even when `overwrite_data_views` was false, the rule's `index` property was being modified.

Please see added integration tests to understand desired behavior of changes. There is one edge case which is a bit weird, but I think too late to address in 8.4. If a user uses bulk delete on a rule with a data view and _no_ index patterns defined and `overwrite_data_views = true`, both data view and index will be set to `undefined`. Per our current behavior, a rule with no data source defaults to using the default index patterns. Not sure this is ideal, but it is in line with the behavior that already exists for a rule.

(cherry picked from commit 9e8b5b9784)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-08-09 16:46:00 -07:00
Kibana Machine
a889f564c5
update language of dashboard descriptions (#138422) (#138461)
Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit f1ca98369d)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-08-09 15:01:47 -07:00
Kibana Machine
87c3ad3e91
[Security Solution] [Dashboards] [137956] add regex filter for search queries to remove special characters (#138450) (#138462)
* add regex filter for search queries

* Add tests for filtering and update regex

* unskip tests

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

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-08-09 14:49:39 -07:00
Kibana Machine
1595daa933
[CI] Convert the remaining steps in primary pipelines to spot instances (#138168) (#138459)
(cherry picked from commit 4f100c4ed0)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-08-09 14:28:18 -07:00
Kibana Machine
d16a0feb49
[Maps] fix draw icons not displayed in buttons (#138433) (#138457)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0f643045cf)

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
2022-08-09 14:10:16 -07:00
Kibana Machine
636a71b728
Update deeplinks and network links to add Network evetns to global nav search (#138412) (#138456)
Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit c8e18f77b3)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-08-09 14:02:12 -07:00
Kibana Machine
ef7f4cf6d2
[Security Solution] Disables reason column internal rendering for the rule preview table (#138312) (#138455)
(cherry picked from commit 24ababf408)

Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2022-08-09 13:52:38 -07:00
Cauê Marcondes
7eb3e9e0ea
[APM] fixing annotations unit test (#138302) (#138453)
(cherry picked from commit ab937a3716)
2022-08-09 13:42:17 -07:00
Kibana Machine
716d0f3c9f
[Enterprise Search] Provide UX feedback for rechecking connector (#138432) (#138444)
(cherry picked from commit 59b403c9d8)

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2022-08-09 12:26:53 -07:00
Kibana Machine
9b27de2096
[Security Solution][Data Views] - Update bulk actions data views index param to be snake_case (#138429) (#138443)
## Summary

Overlooked a param name - should be snake case per our APIs. `overwriteDataViews` --> `overwrite_data_views`

(cherry picked from commit 6da6f18b2d)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-08-09 12:13:58 -07:00
Kibana Machine
6a5528d23f
[Security Solution] Fixes the Reset group by fields action when an EuiComboBox has validation errors (#138346) (#138436)
## [Security Solution] Fixes the `Reset group by fields` action when an `EuiComboBox` has validation errors

### Summary

This PR fixes an issue where the `Reset group by fields` action fails when an `EuiComboBox` has validation errors, per the repro steps in <https://github.com/elastic/kibana/issues/136499>.

### Details

The Alerts page `Treemap`, `Table`, and `Trend` visualizations have `Group by` and `Group by top` `EuiComboBox`s that allow users to select a field name from the combo box, or manually type a value in the input.

As reported in <https://github.com/elastic/kibana/issues/136499>, the `Reset group by fields` action was working as-expected when users selected valid options in the `Group by` and `Group by top` `EuiComboBox`s, but the `Reset group by fields` action failed when users manually typed an invalid value in the inputs.

This failure is demonstrated in the BEFORE / Treemap video below:

#### BEFORE / Treemap

<https://user-images.githubusercontent.com/4459398/183539413-2615c2de-5ddf-45f3-ae8e-895f6ffe4951.mov>

After the fix, the `Reset group by fields` action resets the _Group by_ and _Group by top_ `EuiComboBox`s when they have validation errors, per the (three) AFTER videos below:

#### AFTER / Treemap

<https://user-images.githubusercontent.com/4459398/183539620-571bfb8e-5c75-45d4-91c8-6fff447ba219.mov>

#### AFTER / Table

<https://user-images.githubusercontent.com/4459398/183539664-4a5336c6-44d0-41a4-bcea-d3843bccb191.mov>

#### AFTER / Trend

<https://user-images.githubusercontent.com/4459398/183539698-a2ae8294-44bc-4069-ad2b-bbc8e96694f1.mov>

#### Implementation details

As confirmed with the EUI team, when `EuiComboBox` has validation errors, those errors must be cleared by executing APIs, (i.e. `clearSearchValue`), that are only exposed via `EuiComboBox`'s (optional) `ref`.

(cherry picked from commit 792ddae2d5)

Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
2022-08-09 12:10:47 -07:00
Kibana Machine
cacc3c3642
Update when to run graph tests (#137993) (#138440)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2dfc992191)

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-09 11:52:50 -07:00
Kibana Machine
4737ed25ad
[Cloud Posture] Rule Tags - table column and flyout (#138401) (#138434)
(cherry picked from commit 287e3b8bad)

Co-authored-by: Jordan <51442161+JordanSh@users.noreply.github.com>
2022-08-09 11:34:27 -07:00
Kibana Machine
5c244119d0
[APM] Dependencies table showing more than 5 items per page on Service overview page (#138285) (#138314)
* fix page size

* fixing ci

(cherry picked from commit ddf0545e38)

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2022-08-09 11:16:53 -07:00
Kibana Machine
9d3cf3874c
[Osquery] Refactor telemetry to use EBT (#138221) (#138424)
(cherry picked from commit 3de9eda441)

Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2022-08-09 10:01:53 -07:00
Kibana Machine
ab091e4159
[Osquery] Add docs for Osquery API (#137162) (#138431)
(cherry picked from commit 33689abc77)

Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2022-08-10 02:28:47 +09:30
Kibana Machine
6207839c91
[Uptime] Update show apm data links (#137974) (#137558) (#138415)
(cherry picked from commit 5faf880aa5)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-09 09:06:56 -07:00
Kibana Machine
1d61738a6b
Fix butch size for event search in the Indicator Match rule. (#138356) (#138404)
* Make event list count for 3000

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

Co-authored-by: Khristinin Nikita <nikita.khristinin@elastic.co>
2022-08-09 08:50:45 -07:00
Kibana Machine
8e1e63ff19
[Uptime UI] Add warning message to Monitor Management private locations disabled tooltip (#138020) (#138403)
* Add tooltip message to notify users they need permission to modify private locations.

* Update copy based on PR feedback.

(cherry picked from commit 7800f4fb75)

Co-authored-by: Justin Kambic <jk@elastic.co>
2022-08-09 08:44:42 -07:00
Kibana Machine
e53684a7a7
Fix broken link to CiStatsReporter (#138407) (#138416)
(cherry picked from commit 73f8e52b89)

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2022-08-10 00:49:28 +09:30
Kibana Machine
cd37a21ae3
[Security Solution][Data Views] - Add alerts on alerts data view warning (#138186) (#138397)
## Summary

The default security data view includes the alerts index. This means that a rule that uses this data view can result in alerts on alerts. At first glance, it seems the default data view is equivalent to the default index patterns we normally display on rule creation, but it is not in that it includes the alerts index.

(cherry picked from commit b40663299a)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-08-09 07:58:05 -07:00
Kibana Machine
d8f57738ff
[ML] Functional tests for 3rd party models deployment (#138242) (#138389)
* test start model deployment

* start and stop tests

* wait for refresh

* wait for refresh

* update assertLastToastHeader with retry

(cherry picked from commit b08914c0db)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-08-09 07:35:48 -07:00
Kibana Machine
6c6a872ebd
[Discover] Fix discover table cloud failure (#136487) (#138391)
* [Discover]

* [Discover] try to exclude one test

* [Discover] move doc navigation tests into one file

* [Discover] exclude doc navigation tests

* [Discover] change test order

* [Discover] skip one test file

* [Discover] revert changes to check build result

* [Discover] try to skip one file

* [Discover] add test_logstash_reader role

* [Discover] unskip test file

* [Discover] add roles per each test which uses logstash

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

Co-authored-by: Dmitry Tomashevich <39378793+dimaanj@users.noreply.github.com>
2022-08-09 07:25:29 -07:00
Kibana Machine
c40cb64268
[Data Views] Documentation for create data view REST API (#138068) (#138395)
* data view rest api request body field documentation

* document sub-fields of the api request body

* add examples of different ways to create the data view

* switch order of 2 examples

* Update docs/api/data-views/create.asciidoc

* data_view properties documentation

* update documentation

* fix broken link

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/api/data-views/create.asciidoc

* Update docs/api/data-views/create.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
(cherry picked from commit f5133d449c)

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2022-08-09 23:30:04 +09:30
Kibana Machine
e614c89437
[Security Solution][Detections] fixes rules bulk delete when rule has data view id (#137585) (#138380)
## Summary

- fixes https://github.com/elastic/kibana/issues/136006
- in this PR, bulk delete index will only be applied to rule, if index pattern exists
- small code cleanup around dataViewId and index patterns actions
- adds unit/functional tests

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

(cherry picked from commit b93d4fb04b)

Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
2022-08-09 06:05:07 -07:00
Kibana Machine
cf43c0ac11
[Cloud Posture] fix deployment type selection (#137313) (#138379)
(cherry picked from commit ce090a508a)

Co-authored-by: Or Ouziel <or.ouziel@elastic.co>
2022-08-09 05:29:26 -07:00
Kibana Machine
7a26538af2
[Fleet] Bump bundled apm package to 8.4.0 (#138349) (#138372)
(cherry picked from commit 75bbe04962)

Co-authored-by: Andrew Wilkins <axw@elastic.co>
2022-08-09 04:18:15 -07:00
Kibana Machine
50da9dc827
add missing assets view (#137454) (#138375)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6655eeff50)

Co-authored-by: Or Ouziel <or.ouziel@elastic.co>
2022-08-09 04:17:20 -07:00
Kibana Machine
31726b19b9
[TIP] Enables TI plugin with kibana.yml feature flag (#137838) (#138373)
- show/hide navbar entries in both old and new navigation per feature flag value
- load plugin per feature flag value
- flag: xpack.securitySolution.enableExperimental: ['threatIntelligenceEnabled']

https://github.com/elastic/security-team/issues/4505
(cherry picked from commit ff28e68159)

Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
2022-08-09 04:10:55 -07:00
Kibana Machine
62ed40b0aa
[ML] Use data view name in anomaly detection job wizards (#138255) (#138370)
* [ML] Use data view name in anomaly detection job wizards

* adding to data recognizer

(cherry picked from commit 1bcd865363)

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2022-08-09 04:02:28 -07:00
Kibana Machine
c332f5bbb3
[Lens] fixes annotations layer removal bug (#138355) (#138367)
(cherry picked from commit 306ad2b79f)

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-08-09 03:45:10 -07:00
Kibana Machine
4390d289c5
fix cumulative sum and value count (#138246) (#138360)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
(cherry picked from commit 7cc9e96cb9)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-08-09 02:43:03 -07:00
Kibana Machine
1f3784c5cc
[Stack Monitoring] Clarify "From Source" docs (#137566) (#138364)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b864928c52)

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2022-08-09 18:45:03 +09:30
Kibana Machine
ffda8c0e44
[TIP] Restrict content visibility for non-enterprise users (#138097) (#138358)
(cherry picked from commit 335d63a516)

Co-authored-by: Luke Gmys <lgmys@users.noreply.github.com>
2022-08-09 02:13:31 -07:00
Kibana Machine
d831a8122d
[Fleet] minor agent binary host flyout fixes (#138310) (#138357)
* rephrase flout title

* fix host validation error display

* Make text even more consistent

* Make text even more consistent

* trim values before submitting

(cherry picked from commit 46a2c63ab3)

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2022-08-09 02:09:41 -07:00
Kibana Machine
12bee76b6b
[Security Solution][Alerts] Add validation for historyWindowStart (#138182) (#138353)
* Add validation to ensure that 'historyWindowStart' is earlier than 'from'

* Fix tests

* Fix test again

* Add comment

(cherry picked from commit f3f7498b76)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-08-09 00:24:38 -07:00
Kibana Machine
f2f359601f
137539 add missing network details revamp (#137541) (#137909)
* update event tab to show both alerts and events with toggle. (#136540)

* add test for SignasByCategory

* modify external_alerts_filter  to be more efficient

* Update usage across explore views to only use EventsQueryTabBody

* remove unused files and code related to external alerts  and move old alerts files to events_tab folder

* test fixes, and more removal of old usage

* update failing snapshots

* last bit of cleanup

* Fix type error

* fix type and translations issue

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>

* update network details to match hosts, and users details pages

* add events table to network pages

* Fix minor bugs with network routeing and allow old route to reach new view

* Fix failing tests

* fix types and transltions

* minor fixes before code review

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* update failing snapshot

* re-add /ip/ and have :/flowTarget appear before :/tabName

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* remove unneeded import and update type

* fix navigation issue

* use constant for administration page, and add fallback route

* Update links and redirect behaviour

* fix dependency array

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 241406a8df)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-08-08 22:13:51 -07:00
Kibana Machine
ca4a5670bf
Modified the kubernetes instruction command (#138306) (#138340)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit aa1ce834a6)

Co-authored-by: Najmieh Sadat <98463228+najmiehsa@users.noreply.github.com>
2022-08-08 18:01:03 -07:00
Kibana Machine
b6d156259f
Use name for Controls Data View picker (#138313) (#138334)
(cherry picked from commit 4226cbf2e6)

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
2022-08-08 15:44:15 -07:00