Commit graph

55638 commits

Author SHA1 Message Date
Kibana Machine
9e1eb0ed84
[SecuritySolution][Fix] Reasonformatter fix for threshold alerts. (#138909) (#139106)
## Issue

Fixes #137435

Reason formatter was not when working correctly in case of threshold alerts. In an ideal scenario, if threshold alert is grouped by a field, say `user.name` then that field should be available in the reason message.

It was missing as per the bug.

## Solution

For threshold alerts, `mergedDoc` in results in a different shape of object where the fields are contained in `_source` key instead of `fields` key.  This was corrected so that if `fields` key is not available in the `mergedDoc`, `_source` will act as the fallback key.

### 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

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit ac0635bd9d)

Co-authored-by: Jatin Kathuria <jatin.kathuria@elastic.co>
2022-08-18 09:19:11 -07:00
Kibana Machine
8ce6bcf8ef
[Enterprise Search] Create connectors index if none is present (#139092) (#139100)
(cherry picked from commit f35ccba41d)

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2022-08-18 06:51:35 -07:00
Kibana Machine
eca1fe046c
[Upgrade] Fixes cloud upgrade test failures for 8.x (#138684) (#139101)
* Update discover and canvas tests

* Add length

* Update rule name to have no spaces

* Fix calling function

* Try to close tooltip

* Fix rules spinner

* Move toggleLayerVisibility to gis_page

* Add wait for layers to load

* Remove unused declaration

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

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-18 06:50:52 -07:00
Kibana Machine
5449641339
Fixing es template string and programmatic typo (#139014) (#139023)
(cherry picked from commit 7b07faf7d1)

Co-authored-by: Kurt <kc13greiner@users.noreply.github.com>
2022-08-18 18:16:04 +09:30
Kibana Machine
f06c8ebdf2
Re-generate test PKI certificates and re-enable PKI tests. (#138993) (#139071)
(cherry picked from commit 5b993bed5c)

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
2022-08-17 23:46:23 -07:00
spalger
c909ca362c skip flaky suite (#136272) (#139033) (#139032) (#139031) (#139030) (#139028) (#139029) (#139027) 2022-08-17 10:18:12 -07:00
Kibana Machine
d7e7a7987a
[DOCS] Updates Discover docs with data view changes (#138337) (#139026)
* [DOCS] Updates Discover docs with data view changes

* [DOCS] Updates settings for Discover in Advanced Settings

* Update docs/discover/document-explorer.asciidoc

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* Update docs/management/advanced-options.asciidoc

* Update docs/management/advanced-options.asciidoc

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

* Update docs/management/advanced-options.asciidoc

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

* Update docs/user/discover.asciidoc

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

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
(cherry picked from commit 062c06d46f)

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-08-18 02:20:30 +09:30
Kibana Machine
391d999075
fixed bug with comparing upgrade version with snapshot kibana version (#139007) (#139011)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2fab2041c4)

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2022-08-17 09:00:46 -07:00
Kibana Machine
0f61496666
[8.4] [ML] Data Visualizer: Add functional tests for pinned filters (#138539) (#138738)
* [ML] Data Visualizer: Add functional tests for pinned filters (#138539)

* [ML] Add test

* [ML] Remove sample log, fix lucene

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

* Add time picker to absolute range so it shows

* Fix navigation issue with Discover hard refresh

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2022-08-17 08:29:54 -07:00
Kibana Machine
9b7dce129a
Fix console tests on cloud (#138682) (#138755)
* Fix console test on cloud

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

* Fix access to sample data

* Clean up access after test

* Fix restore test

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

Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2022-08-17 07:45:52 -07:00
Kibana Machine
57d4764899
[Enterprise Search] Add replica settings to connectors indices (#138796) (#138802)
(cherry picked from commit 68130f7037)

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2022-08-17 07:04:04 -07:00
Kibana Machine
5d002bd133
[Synthetics] Remove outdated banner (#138823) (#139000)
(cherry picked from commit d3ed44b77a)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-17 06:56:25 -07:00
Kibana Machine
352d416abe
[Lens] Axis shown on the same side in xy chart (#138745) (#138985)
* Fix axis auto assigment

* Simplify auto assignment logic + add new unit tests for that

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8dfba64acb)

Co-authored-by: Uladzislau Lasitsa <vlad.lasitsa@gmail.com>
2022-08-17 04:35:04 -07:00
Kibana Machine
95ea149385
[UX App] Fixes empty state (#138976) (#138984)
(cherry picked from commit bf461a6868)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-17 04:15:08 -07:00
Kyle Pollich
f12954223a
[Fleet] Update fleet_package.json + bump endpoint version to 8.4.0 (#138742) (#138968)
* Update fleet_package.json + bump endpoint version

* Bump endpoint to 8.4.1

* Bump docker images

* Update docker image in Fleet FTR tests

* Try using production docker image

* Try using v2 docker image globally

* Re-enable bundled package test + exclude APM from verification

* Remove comment about failing test

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

# Conflicts:
#	x-pack/test/functional/config.base.js
2022-08-16 18:59:33 -07:00
Kibana Machine
71b354aa46
[Security Solution] [Detection & Response] [134550] Fix tooltip render location problem (#138335) (#138967)
* utilize eui-textTruncate to get better placement for ToolTip

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

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-08-16 18:56:55 -07:00
Kibana Machine
8250d799c7
Revert "Revert "[Synthetics] update private locations callout (#13895… (#138963) (#138966)
* Revert "Revert "[Synthetics] update private locations callout (#138952)""

This reverts commit f487883108.

* update i18n

(cherry picked from commit f6b497f387)

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2022-08-16 18:56:00 -07:00
Kibana Machine
b5ac1fb7d4
[8.4] [Fleet Synthetics] Upgrade to 0.10.2 (#138879) (#138897)
* [Fleet Synthetics] Upgrade to 0.10.2 (#138879)

(cherry picked from commit 1b8236c768)

* Apply suggestions from code review

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
Co-authored-by: Dominique Clarke <dominiquedclarke@gmail.com>
2022-08-16 17:34:53 -07:00
Kibana Machine
307487d802
[Synthetics] project monitors - update deletion message (#138935) (#138951)
* synthetics - project monitors - update deletion message

* Update x-pack/test/api_integration/apis/uptime/rest/add_monitor_project.ts

* adjust tests

(cherry picked from commit 65d731d80c)

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2022-08-16 16:08:33 -07:00
Dominique Clarke
19cef641ba
[Synthetics] remove feature flag (#138954)
* synthetics - remove feature flag

* remove extra translations

* skip synthetics tests

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-16 18:46:59 -04:00
Kibana Machine
265309c827
[Security Solution][Exceptions] - Fix add exception to rule using data view from alert (#138856) (#138956)
## Summary

Addresses issue #138231

There's a bit of a race condition happening between data views/index patterns. When a rule has a data view defined, we really shouldn't be making calls to fetch the default index patterns which is what had started happening here, however then once the data view id was defined, the fetch index was cut short but the `useFetchIndex` hook never reset to loading `false`, hence the perpetual loading state. That initial call should be avoided all together so that's what this change does. There's still a little funkiness in the code here that I'd like to look at during our work in 8.5.

(cherry picked from commit cb8cf84720)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-08-16 14:16:14 -07:00
Ahmad Bamieh
b336affe54
[i18n] [8.4] Integrate 8.4.0 Translations (#138948) 2022-08-16 12:51:06 -07:00
Kibana Machine
a1d7d13a1b
[8.4] [Session view][BugFix]Updated orchestrator.parent.type to orchestrator.resource.parent.type in details panel (#138841) (#138944)
* updated field names for Orchestrator Accordion on details panel

* eslint auto-fix

* addressing PR comments

* addressing more comments

(cherry picked from commit a630dafae4)

Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
2022-08-16 11:53:53 -07:00
Kibana Machine
cc66d5bfed
[Security Solution][Investigations] - Use index alias in place of backing index (#138331) (#138941)
(cherry picked from commit 3ad0484d3e)

Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2022-08-16 10:41:21 -07:00
Kibana Machine
33eff615d7
[Enterprise Search] Vary Enterprise Search navigation options based on product access (#138775) (#138937)
* Added an EnterpriseSearchProvider to propagate access data

Co-authored-by: Brian McGue <mcgue.brian@gmail.com>
Co-authored-by: Rodney Norris <rodney.norris@elastic.co>

* Move productAccess into KibanaLogic

* Fix PageTemplate tests

* Add tests for access based navigation

* Push useValues for productAccess down into useEnterpriseSearchNav

Co-authored-by: Brian McGue <mcgue.brian@gmail.com>
Co-authored-by: Rodney Norris <rodney.norris@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c7ee95079c)

Co-authored-by: James Rucker <james.rucker@elastic.co>
2022-08-16 10:19:03 -07:00
Quynh Nguyen
5992a097b3
Merge conflicts (#138927) 2022-08-16 09:33:47 -07:00
Kibana Machine
919696b8ac
Use OR operator for status filters (#138622) (#138924)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 08210170bd)

Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
2022-08-16 09:04:37 -07:00
Kibana Machine
4391d77dbc
Adds new proxy tests and manual proxy tester (#138071) (#138919)
The new proxy tests added can test a variety of different proxy
and target server configurations, however many of those tests
are broken with our current proxy agents.  Hopefully to be fixed
by replacing with hpagent instead.  In the meantime, we wanted to
get the basic test framework in as well.

In addition to tests, the stand-alone forward proxy has been
enhanced to use a better proxy server, `proxy`.  The existing
proxy server `http-proxy` does not support HTTPS out of the box,
and so any HTTPS testing with it is going to be a little sketchy.

Using the stand-alone forward proxy, I was able to post to Slack
through http/https proxies with and without auth, with
proxyRequestUnauthorized set to false.  Which shows the existing
proxy agents do work in _some_ environments.

(cherry picked from commit 9631649e72)

Co-authored-by: Patrick Mueller <patrick.mueller@elastic.co>
2022-08-16 08:13:57 -07:00
Kibana Machine
e61b6c962c
[Enterprise Search]Fix page template loader conditions to trigger on page load (#138889) (#138913)
* Fix page template loader conditions to trigger on page load

This commit adds a new flag to check if we are on the page load to
adjust the load conditions. In combination with isInitialRequest it is
used to set the loading states of the page including the search bar.

* Review suggestions

(cherry picked from commit 53cc0cc226)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-16 07:35:34 -07:00
Kibana Machine
adee2fac06
Bump saved objects index fields limit to 1.5k to prevent upgrade failures (#138891) (#138912)
* Bump saved objects index fields limit to 1.5k

* Update src/core/server/saved_objects/migrations/actions/create_index.ts

Link to issue which is causing us to require an @ts-expect-error comment

(cherry picked from commit 430e2880df)

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2022-08-16 07:19:44 -07:00
Kibana Machine
ebbdb6dbb4
Update default url for elasticsearch host. (#138883) (#138890)
(cherry picked from commit 500a453f7e)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-16 05:19:05 -07:00
Kibana Machine
4ec184361f
Change document search endpoint to post (#138851) (#138880)
Also stringify the query while passing to the search api.

(cherry picked from commit 4bc142f4a3)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-16 03:30:40 -07:00
Kibana Machine
fb0e158a9f
Update broken link on api_welcome.mdx (#138198) (#138871)
(cherry picked from commit e1848168d7)

Co-authored-by: rahuldimri <107100022+rahuldimri@users.noreply.github.com>
2022-08-16 17:46:35 +09:30
Kibana Machine
b52d44a782
[Security Solution] [Platform] Data sources guided tour (#138327) (#138857)
## Summary

Adds a guided tour for data sources

(cherry picked from commit 81d7a6f9ce)

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2022-08-15 15:44:01 -07:00
Kibana Machine
90ee18f0e2
[Enterprise Search] Add override pattern for fetch_indices (#138765) (#138854)
* Add override pattern for fetch_indices

* Add tests for fetch_indices override pattern

* Include only aliases.

* Add negative check to the tests and added some comments

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

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-15 15:15:09 -07:00
Kibana Machine
69dfad2689
[Synthetics] stream results back for project monitors (#138069) (#138848)
* stream results back for private locations

* update types

* consolidate apis

* adjust tests

* Fix API tests.

* Define types more clearly.

* Reintroduce default method.

* Add error handling to observable.

Co-authored-by: Justin Kambic <jk@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 4990478dea)

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2022-08-15 14:24:43 -07:00
Kibana Machine
9463618539
[Synthetics UI] Update Read the docs link (#138838) (#138846)
* Update `Read the docs` link.

* Add new URL to appropriate link.

(cherry picked from commit e174248e9d)

Co-authored-by: Justin Kambic <jk@elastic.co>
2022-08-15 13:32:15 -07:00
Kibana Machine
c2e88ff7e5
[Detection Rules] Add 8.4 rules (#138574) (#138840)
Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
(cherry picked from commit 30218241cd)

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
2022-08-15 12:17:56 -07:00
Kibana Machine
a627e1ca7f
[8.4] [Lens] metric visualization functional tests (#137731) (#138289)
* [Lens] metric visualization functional tests (#137731)

(cherry picked from commit c9f160b4db)

* clear input before typing new color

* wait for filter retries

Co-authored-by: Andrew Tate <andrew.tate@elastic.co>
2022-08-15 12:11:27 -07:00
Kibana Machine
2308570849
[Synthetics UI] Update copy for test now functionality on private locations (#137912) (#138835)
* Update copy for test now functionality on private locations.

* Update copy based on PR feedback.

(cherry picked from commit e7772b1feb)

Co-authored-by: Justin Kambic <jk@elastic.co>
2022-08-15 10:30:02 -07:00
Kibana Machine
5e5e76c9e9
[Security solution][Detections] fixes incorrect counter for exported rules with exceptions (#138598) (#138833)
## Summary

- addresses https://github.com/elastic/kibana/issues/138354
- adds e2e test

### 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 c0363b01ba)

Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
2022-08-15 10:04:49 -07:00
Kibana Machine
46728b2245
[Security Solution][Detections] fixes failing tests for 8.4 prebuilt rules update #138794 (#138832)
- fixes the rest of tests for https://github.com/elastic/kibana/pull/138574 PR

(cherry picked from commit 167bb8eb1a)

Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
2022-08-15 09:43:22 -07:00
Kibana Machine
ed6abc24fb
[Synthetics] Enable isAllowed by default on premises (#138820) (#138831)
(cherry picked from commit 71c4e74c8e)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-15 09:42:05 -07:00
Kibana Machine
808ae20348
[CI] Use region-specific buckets for ci-proxy-cache for speed and cost savings (#138675) (#138829)
(cherry picked from commit c9a30dc27f)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-08-15 09:36:50 -07:00
Kibana Machine
e5801a58de
[Security Solution] Normalize the selected event with expandDottedObject to improve panel display (#138582) (#138825)
* Normalize the selected event with expandDottedObject to improve panel display

* Remove debugging tsconfig change

(cherry picked from commit 1f57ee2c9c)

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
2022-08-15 09:17:27 -07:00
Kibana Machine
37b175caab
[Graph] Fix closing behaviour of the field picker popover (#138799) (#138824)
(cherry picked from commit fe4553ddee)

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
2022-08-15 09:02:13 -07:00
Kibana Machine
8efb783c2d
Fix(alert): reason for non percentage threshold metrics (#138138) (#138819)
* Fix typo

* Fix metric threshold reason format

* Add test for percentage metric

* Fix formatter usage

* Invert if condition

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

Co-authored-by: Kevin Delemme <kdelemme@gmail.com>
2022-08-15 08:25:47 -07:00
Kibana Machine
cf41b17b93
Fix: Encode URL reserved characters in Exploratory View URL (#138612) (#138365) (#138815)
(cherry picked from commit edbf8f1bb4)

Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com>
2022-08-15 08:04:37 -07:00
Kibana Machine
d67dfbbbe0
[ResponseOps] Docs screenshots - initial set of automated docs screenshots (#138627) (#138806)
This PR adds initial support for automated ResponseOps docs screenshots and takes the first three screenshots.

(cherry picked from commit 6d1f3dff2c)

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2022-08-15 06:58:45 -07:00
Kibana Machine
058c5f7c54
Increase index poll timeout to 5 seconds (#138768) (#138800)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 1f5b803d6f)

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
2022-08-15 05:49:11 -07:00