Commit graph

60248 commits

Author SHA1 Message Date
Pierre Gayvallet
cd9a53f284
Create the ftrSoApis FTR plugin (#149188)
## Summary

Fix https://github.com/elastic/kibana/issues/148412

More and more SO types will not be accessible from the HTTP APIs (either
`hidden:true` or `hiddenFromHTTPApis: true`).

However, the FTR SO client (`KbnClientSavedObjects`) still needs to be
able to access and manipulate all SO types.

This PR introduces a `ftrSoApis` plugin that is loaded for all FTR
suites. This plugin exposes SO APIs that are used by the FTR client
instead of the public SO HTTP APIs. These APIs are configured to know
about all types, even hidden ones.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-26 01:47:29 -07:00
Cristina Amico
49ff27e2ff
[Fleet] Add check for legacy managed_by field in datastream mappings (#149504)
## Summary

Closes https://github.com/elastic/kibana/issues/147605

### Description
Clusters that exist since pre-8.0 might have data streams that have
`managed_by: ingest_manager` in their` _meta` properties, instead of the
current value `managed_by: fleet`.
However, with the merge of
https://github.com/elastic/kibana/pull/143300, the data streams view
filters out any data streams that don't have `managed_by: fleet`
metadata, so when updating from 7.x to 8.6.x no data streams are
returned.

### Solution
It was decided to simply add an additional check in the data stream
handler to allow for "legacy" metadata, and to avoid doing migrations
that can be dangerous for the users data.


### Testing
I'm looking for a way to reliably test this locally - I've only managed
to reproduce it on cloud
2023-01-26 09:15:14 +01:00
renovate[bot]
1e132d1a02
Update dependency elastic-apm-node to ^3.42.0 (main) (#149562)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [elastic-apm-node](https://togithub.com/elastic/apm-agent-nodejs) |
[`^3.41.1` ->
`^3.42.0`](https://renovatebot.com/diffs/npm/elastic-apm-node/3.41.1/3.42.0)
|
[![age](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.42.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.42.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.42.0/compatibility-slim/3.41.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/elastic-apm-node/3.42.0/confidence-slim/3.41.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/apm-agent-nodejs</summary>

###
[`v3.42.0`](https://togithub.com/elastic/apm-agent-nodejs/releases/tag/v3.42.0)

[Compare
Source](https://togithub.com/elastic/apm-agent-nodejs/compare/v3.41.1...v3.42.0)

For more information, please see the
[changelog](https://www.elastic.co/guide/en/apm/agent/nodejs/current/release-notes-3.x.html#release-notes-3.42.0).

##### Elastic APM Node.js agent layer ARNs

|Region|ARN|
|------|---|

|af-south-1|arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-east-1|arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-northeast-1|arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-northeast-2|arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-northeast-3|arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-south-1|arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-southeast-1|arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-southeast-2|arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ap-southeast-3|arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|ca-central-1|arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-central-1|arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-north-1|arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-south-1|arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-west-1|arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-west-2|arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|eu-west-3|arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|me-south-1|arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|sa-east-1|arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|us-east-1|arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|us-east-2|arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|us-west-1|arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

|us-west-2|arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-3-42-0:1|

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTEuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExMS4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-26 03:09:33 -05:00
Stratoula Kalafateli
bb207aadc3
[Lens] Remove the deprecated field list sampling strategy (#149482)
## Summary

This PR removes the deprecated field list sampling setting which was
marked as deprecated on 8.1. This
https://github.com/elastic/kibana/pull/139828 was the PR that added the
deprecation callout.
2023-01-26 09:38:21 +02:00
Luke Gmys
2862d4bdb7
Replace ecs package with ecs-typescript generated code (#148804) 2023-01-26 07:10:32 +01:00
Kibana Machine
2f02592c84
[api-docs] 2023-01-26 Daily api_docs build (#149567)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/229
2023-01-26 00:48:11 -05:00
Muhammad Ibragimov
18cd16e9f7
[Console] Update console readme (#149088)
### Summary

This PR updates the Console readme file with information about the architecture changes, new features, and outstanding issues.

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-26 09:59:19 +05:00
renovate[bot]
b3a43d979c
Update dependency @types/babel__core to ^7.20.0 (main) (#149561)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/babel__core](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__core)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`^7.1.20` ->
`^7.20.0`](https://renovatebot.com/diffs/npm/@types%2fbabel__core/7.1.20/7.20.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fbabel__core/7.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fbabel__core/7.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fbabel__core/7.20.0/compatibility-slim/7.1.20)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fbabel__core/7.20.0/confidence-slim/7.1.20)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTEuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExMS4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-26 01:22:50 +00:00
Søren Louv-Jansen
80542567f0
[APM] Use constants for system indices (#149521)
We should use constants when referring to the system indices.
2023-01-26 01:40:34 +01:00
Karl Godard
d7dbc91877
[Andruil] Defend for containers UI fixes (#149372)
## Summary

- fix to invalid yaml causing null pointer in general view. 
- also fixed incrementName function to work past two digits when
duplicating selectors
- removed "click here" placeholder in yaml editor help text
- fixed usability issue with removing all conditions in a selector.
previously would be prevented, but now allows and shows a descriptive
error.

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

Co-authored-by: Karl Godard <karlgodard@elastic.co>
2023-01-25 15:46:50 -08:00
Marshall Main
f5fe104633
[Security Solution][Alerts] Add suppression icon to rule name in cases alerts table (#148934)
## Summary

Addresses https://github.com/elastic/kibana/issues/145805

`kibana.alert.suppression.docs_count` field is not always returned in
ecsData, sometimes it's in data instead. We now check both data sources
for the docs_count.


![image](https://user-images.githubusercontent.com/55718608/212439168-e4afb150-6b8c-4bbd-9fdb-2d083b468151.png)
2023-01-25 14:34:20 -08:00
Saarika Bhasi
de32cac471
[Enterprise Search] Engine list - Show indices flyout (#149241)
## Summary

Engine list - show indices flyout


https://user-images.githubusercontent.com/55930906/213495039-48713d0c-1c47-4af9-bc8c-41f71a9b8781.mov


When the Api Status returns Error

<img width="1715" alt="error"
src="https://user-images.githubusercontent.com/55930906/214635794-36ee03ed-4440-4730-a9c7-17eda3084706.png">

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 14:25:16 -07:00
Elastic Machine
30a05bdb7c
[main] Sync bundled packages with Package Storage (#149245)
Automated by
https://internal-ci.elastic.co/job/package_storage/job/sync-bundled-packages-job/job/main/1469/

Co-authored-by: apmmachine <infra-root+apmmachine@elastic.co>
2023-01-25 14:11:09 -07:00
Paul Tavares
9ac065ab02
[Security Solution][Endpoint] Response Console framework support for argument value selectors (#148693)
## Summary

- PR adds the ability for Commands to define custom value selectors -
components that will be rendered as the value when the Argument name is
entered in the Console. These Argument Selectors can then provide the
user with a better UX for selecting data that is not easily entered in
the console via text input.
- Introduces a File picker Argument Selector (not yet being used by real
commands) that will be used in upcoming features.
- Introduces a new `mustHaveValue` property to the definition of a
command's argument.

See PR on github for info.
2023-01-25 16:05:57 -05:00
Steph Milovic
cdab97bd47
[Security solution] Re-add country flag to Top Countries Table (#149460) 2023-01-25 14:04:28 -07:00
Shahzad
181950af06
[Synthetics] Step details page, step selection, location fix (#149529) 2023-01-25 20:39:05 +01:00
Rudolf Meijering
201fabc63f
Fix core app routes (#149462)
## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.


### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### 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)
2023-01-25 12:13:34 -07:00
Ignacio Rivas
9a86f923d4
[Index Management] Remove unused test (#149516) 2023-01-25 19:55:58 +01:00
Elena Stoeva
2bd137bef0
Add fields to Append Ingest Pipeline processor form (#149520)
Closes https://github.com/elastic/kibana/issues/145018

## Summary

This PR adds the `allow_duplicates` and `media_type` fields to the
Append Ingest Pipelines processor which allows these two settings to be
set through the UI.

Recording:

https://user-images.githubusercontent.com/59341489/214585327-1e151931-61c2-4d0a-9f3d-1e4b920272cd.mov

Screenshot:
<img width="500" alt="Screenshot 2023-01-25 at 14 18 19"
src="https://user-images.githubusercontent.com/59341489/214587407-f1e34d22-730b-4927-b84f-f4f64e4613d8.png">
<img width="500" alt="Screenshot 2023-01-25 at 14 21 32"
src="https://user-images.githubusercontent.com/59341489/214588123-0fadc7d7-7b82-44fa-8912-a2550457b2b0.png">


### Checklist

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [X] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [X] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [X] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
2023-01-25 18:25:25 +00:00
Tiago Costa
12cf92d317
skip flaky suite (#86545) 2023-01-25 17:58:25 +00:00
Lisa Cawley
f5aeb6dd70
[DOCS] Add "Updated on" column to the cases table screenshot (#149430) 2023-01-25 09:30:16 -08:00
Candace Park
2874f34e01
[Security Solution][Fleet] Fixes bug when adding Security Defend integration (#149232)
## Summary
- [x] Fixes a bug in the `Add Elastic Defend Integration` page in fleet
where users would encounter a broken page when trying to add the
security defend integration to their agent policy.

# Screenshot
Before

https://user-images.githubusercontent.com/91867110/211752156-e678f6fc-4a79-4ead-b1d9-1eac9e82f912.mp4

After

![integrationbug](https://user-images.githubusercontent.com/56409205/213480094-d8871c9d-8830-4414-9e9c-f078696b6a03.gif)
2023-01-25 11:33:22 -05:00
Angela Chuang
a3ba2763c9
[SecuritySolution] Fix data view not found when rendering with adHocDataView (#149513)
## Summary

Please Enable feature flags. Please add this to kibana.dev.yml
xpack.securitySolution.enableExperimental: ['chartEmbeddablesEnabled']

<img width="1513" alt="Screenshot 2023-01-25 at 12 54 54"
src="https://user-images.githubusercontent.com/6295984/214573163-1e606e07-c7c6-4980-99c5-0ce4347fb6c0.png">

AdHocDataview requires a static reference to point internal reference Id
to the given data view.
The reference of data view will be lost If we re-generate internal
reference Id every time the function is called.
To fix this, I assigned the id out side of the function so it wouldn't
change when the function is called.

Expected: Risk score over time should be rendered properly:

<img width="1501" alt="Screenshot 2023-01-25 at 13 42 56"
src="https://user-images.githubusercontent.com/6295984/214578964-06dc8d11-cf65-4ede-a2ba-a42a1268d6e5.png">

<img width="1513" alt="Screenshot 2023-01-25 at 13 43 57"
src="https://user-images.githubusercontent.com/6295984/214579194-d64ef60f-28fe-407e-8d71-abb56ef845e4.png">


### 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
2023-01-25 15:54:46 +00:00
Tiago Costa
d74e2152e2
skip flaky suite (#149256) 2023-01-25 15:22:21 +00:00
Spencer
4e7560f19d
[ci-stats] move shipper to a package, validate limits in on-merge job (#149474)
We just had an issue where two PRs were merged and it caused the limit
of the `triggerActionsUi` bundle to be exceeded, breaking PR builds. The
issue is that we didn't see any indication of this in the on-merge jobs
because we don't produce the PR report for on-merge jobs or ask ci-stats
if we should fail the job. Instead, we just ship the metrics for
baseline purposes. This fixes that problem by adding a `--validate` flag
to `node scripts/ship_ci_stats`, which takes care of sending at least
some ci-stats and will verify that the bundle limits are not exceeded.

Since we didn't catch this issue in the on-merge job the limits were
incorrect for over an hour and merged into many PRs, wasting engineering
and CI time.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 08:20:40 -07:00
Julia Bardi
179b36f93f
[Fleet] experimental toggles for doc-value-only (#149131)
## Summary

Closes https://github.com/elastic/kibana/issues/144357

WIP. Review can be started, but still requires a lot of testing and
fixing the issue below.

How to test locally:
- Turn on `experimentalDataStreamSettings` feature flag
- Go to Add integration, System integration
- On the first data stream, turn on the Doc value only switches, Save
- The mapping changes are visible under Stack Management / Index
Management / Component Templates e.g. `logs-system.auth@package`
- The numeric switch sets `index:false` on all numeric field mappings
(long, double, etc.)
- The other switch sets `index:false` on all other field type mappings
that support it (keyword, ip, date, etc.)
- The new mappings will take effect after rollover

<img width="475" alt="image"
src="https://user-images.githubusercontent.com/90178898/213206641-13ead2fc-f079-407c-9c0e-c58f99dd4903.png">
<img width="1037" alt="image"
src="https://user-images.githubusercontent.com/90178898/213495546-9962c458-590b-4787-bf2d-9f19abea3f67.png">

What works:
- When turning the new doc-value-only numeric and other checkboxes on or
off, the corresponding mapping changes are done in the component
template
- The logic also reads the package spec's template and preserves the
`index:false` values regardless of the switch (tested manually by
setting `@timestamp` field to `index:false` in the template, there is
also the `original` field in `logs-system.auth@package` stream that is
set to `index:false` in the package by default.

```
"original": {
    "index": false,
    "doc_values": false,
    "type": "keyword"
},
```

Pending:
- Add/update unit and integration tests to verify the mapping change
logic - DONE
- Manual testing (turning the switches on/off, create/update package
policy, upgrade package) - DONE
- Clarify TODOs in the code about the supported types - DONE
- Hitting an issue when turning on `doc-value-only` for "other" types
(keyword, date, etc.). Could be that one of the fields doesn't support
`index:false` setting. Didn't experience this when turning on only the
numeric types. - FIXED
```
illegal_argument_exception: [illegal_argument_exception] Reason: updating component template [logs-system.auth@package] results in invalid composable template [logs-system.auth] after templates are merged
```

EDIT: found the root cause of this: `Caused by:
java.lang.IllegalArgumentException: data stream timestamp field
[@timestamp] is not indexed`


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 15:32:12 +01:00
Jiawei Wu
e2824c3041
[RAM] Reduce triggers actions UI bundle size (#149473)
## Summary
Reduces the bundle size of `triggersActionsUI`. Fix a change in a recent
PR that added util functions to an index file that was in turn being
imported when it wasn't needed. Gets it down to `118085`.


![image](https://user-images.githubusercontent.com/74562234/214467217-7e778b38-51e9-482a-8ce2-5774f9d96425.png)
2023-01-25 06:23:02 -08:00
Rodney Norris
32b1e9b1ab
[Enterprise Search][Engines] feat: create engine flow (#149263)
## Summary

Added the create engine flyout and associated logics

### Screenshots


https://user-images.githubusercontent.com/1972968/213552877-52f81594-bf0d-41bf-bf4b-ca16f922562d.mov


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-01-25 08:21:38 -06:00
Jordan
2589e34f3e
[Cloud Posture] Benchmark page AWS changes (#149505) 2023-01-25 16:19:03 +02:00
Nicolas Chaulet
52f324b9ad
[Fleet] Fix agent status when .fleet-agents do not exists (#149509) 2023-01-25 07:09:50 -07:00
Achyut Jhunjhunwala
83d56cd776
add language specific headers (#149400)
Closes https://github.com/elastic/kibana/issues/76296

## Summary

Stacktrace for various Languages and Frameworks were not displaying
proper Title.
With this PR, it fixes the display of individual language-framework
specific error title in Exception Stack Traces

| Agent   | Template |
|---------|-----------|
| .NET    | `"${exception.type}: ${exception.message}"` | 
| Javascript | `"${exception.type}: ${exception.message}"` | 
| PHP | `"${exception.type}: ${exception.message}"` | 
| Python | `"${exception.type}: ${exception.message}"` | 
| Go      | `"${exception.message}"` | 
| Java | `exception.message ? "${exception.type}: ${exception.message}"
: "${exception.type}"` |
| Ruby | `"${exception.type} (${exception.message ? exception.message :
exception.type})"`|


## C#

### Before

<img width="1232" alt="Screenshot 2023-01-24 at 14 56 29"
src="https://user-images.githubusercontent.com/7416358/214313402-cc5309af-ddbe-4862-98b0-4e646d5702b1.png">

### After

<img width="1230" alt="Screenshot 2023-01-24 at 14 55 13"
src="https://user-images.githubusercontent.com/7416358/214313139-7068b020-b729-4cd8-b3cf-d78b5282cfa8.png">

## Javascript

### Before

<img width="1245" alt="Screenshot 2023-01-24 at 15 02 25"
src="https://user-images.githubusercontent.com/7416358/214314780-c6ea9da6-0634-4ce8-a7ad-87ff81c5c51c.png">

### After

<img width="1253" alt="Screenshot 2023-01-24 at 15 00 47"
src="https://user-images.githubusercontent.com/7416358/214314605-2942170a-b97e-4902-82ed-2c6e2850a836.png">

## PHP

### Before

<img width="1241" alt="Screenshot 2023-01-24 at 15 20 19"
src="https://user-images.githubusercontent.com/7416358/214318997-1a8e44b9-30f9-48fa-903c-3de56b2cca40.png">

### After

<img width="1243" alt="Screenshot 2023-01-24 at 15 19 31"
src="https://user-images.githubusercontent.com/7416358/214318814-62299e49-9433-4c35-ad17-27a1ad29d2ee.png">

## Python

### Before

<img width="1251" alt="Screenshot 2023-01-24 at 15 21 49"
src="https://user-images.githubusercontent.com/7416358/214319342-a6510b24-8049-402a-a92d-51002efc9a3b.png">

### After

<img width="1252" alt="Screenshot 2023-01-24 at 15 23 03"
src="https://user-images.githubusercontent.com/7416358/214319683-d21bd01b-a6c9-45a6-88b5-8527f1b4ad04.png">

## Go

### Before and After Same

<img width="1237" alt="Screenshot 2023-01-24 at 15 10 16"
src="https://user-images.githubusercontent.com/7416358/214316664-424c5a00-d113-495f-aa5a-f42d571e3bd6.png">

## Java

### Before

<img width="1237" alt="Screenshot 2023-01-24 at 15 14 19"
src="https://user-images.githubusercontent.com/7416358/214317545-f54aedb1-6e1a-42fc-883e-c32f479b639c.png">

### After

<img width="1241" alt="Screenshot 2023-01-24 at 15 18 07"
src="https://user-images.githubusercontent.com/7416358/214318481-c2b3049c-2325-4347-9789-e59b9d8db905.png">

## Ruby

### Before

<img width="1253" alt="Screenshot 2023-01-24 at 15 22 26"
src="https://user-images.githubusercontent.com/7416358/214319495-46d54586-e6b6-4226-a217-0fc4ddd02cca.png">

### After

<img width="1248" alt="Screenshot 2023-01-24 at 15 23 46"
src="https://user-images.githubusercontent.com/7416358/214319869-84fbbda6-4469-43dd-9aa8-5033ee155794.png">

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 14:32:31 +01:00
Jonathan Buttner
e6f24a2272
[Cases] Adding oldestPushDate field to get connectors API (#149451)
This PR adds the `oldestPushDate` field to the `_connectors` API. This
is needed to determine whether to show the text `pushed as new incident
<name>` or `updated incident <name>`.

Update response
```
{
    "8548e270-9c26-11ed-8376-87998de9968e": {
        "name": "Jira",
        "type": ".jira",
        "fields": {
            "issueType": "10001",
            "parent": null,
            "priority": null
        },
        "id": "8548e270-9c26-11ed-8376-87998de9968e",
        "needsToBePushed": false,
        "latestPushDate": "2023-01-24T20:35:54.325Z",
        "oldestPushDate": "2023-01-24T20:35:43.730Z", <--- New field
        "hasBeenPushed": true
    }
}
```
2023-01-25 08:15:48 -05:00
Katerina Patticha
026d347305
[APM] Display comparison for mobile stats (#149097)
## Summary 

related to https://github.com/elastic/kibana/issues/146854
1. Show the comparison for the mobile stats
2. Display a badge "comparison not supported" (when the comparison is
enabled )for the components that don't support comparison
3. display "coming soon" text for the metrics that are not available yet


Addressing feedback
- Replace the badge with a tooltip with an icon
- Always display the previous state for metrics when loading and add the
spinner
- Update Crash rate to Crash rate (Crash per minute)
- Remove fallback to transaction events badge



## Before
<img width="1420" alt="image"
src="https://user-images.githubusercontent.com/3369346/213138845-3eab0bf5-a24e-4ec0-87fb-d8eacc029a2f.png">

## After 


![Jan-25-2023
09-52-53](https://user-images.githubusercontent.com/3369346/214520021-6ff04d13-250a-47bd-b983-66c6f35cfb46.gif)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 05:56:53 -07:00
Julia Bardi
43247bdc0f
[Fleet] fix updates available when beta integrations are off (#149486)
## Summary

Fixes https://github.com/elastic/kibana/issues/149470

Loading installed packages with prerelease flag, so that the `Updates
available` is not showing prerelease versions when prerelease flag is
off.

How to test:
- Install endpoint latest GA (8.6.1)
- Check that there are no updates available on `Installed integrations`
tab
- Enable `Show Beta integrations` switch
- Check that there is 1 badge in `Updates available`, showing the latest
`Endpoint` `8.7.0-next` version.

<img width="1183" alt="image"
src="https://user-images.githubusercontent.com/90178898/214531019-e1971f73-669d-4eda-b968-0d007763ca59.png">


<img width="832" alt="image"
src="https://user-images.githubusercontent.com/90178898/214530754-0131e3e0-ae43-47cb-9454-fb4ab72adc2c.png">

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 05:53:50 -07:00
Jean-Louis Leysens
631675ba39
[Saved Objects] Import SO types from server rather than common to avoid deprecation (#149289)
## Summary

After merging https://github.com/elastic/kibana/pull/148979 there are a
number of imports that can be fixed immediately to address our new
deprecation notice.

## To Core reviewers

The package `core-saved-objects-server` is using types from
`core-saved-objects-api-server` which creates a circular dependency when
using `SavedObject` type from it's new home in
`core-saved-object-server`:

`core-saved-objects-server` -> `core-saved-objects-api-server` ->
`core-saved-objects-server`

One solution is that we can create a new package
`packages/core/saved-objects/core-saved-objects-server-shared` that will
only hold the `SavedObject` type and a select few others. I'm not sure
what the best approach here is. I have left
`core-saved-objects-api-server` unchanged for now (i.e., it is still
importing `SavedObject` from `common` which is deprecated).

Any input would be greatly appreciated!

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 05:38:05 -07:00
Antonio
a04a03b438
[Cases] Enable case search by ID (#149233)
Fixes #148084

[The uuid PR was merged](https://github.com/elastic/kibana/pull/149135)
so I am removing the `draft` status here.

## Summary

This PR introduces search by UUID in the Cases table. 

If a user puts a UUID in the search bar and presses enter the search
result will now return the case with that ID.

Additionally, we look for the matches of that search text in the title
and description fields.

See the example below:

<img width="1554" alt="Screenshot 2023-01-19 at 16 06 53"
src="https://user-images.githubusercontent.com/1533137/213477884-498d34c0-d4d1-405d-8d76-f077d46157aa.png">

We are searching for `733e1c40-9586-11ed-a29f-8b57be9cf211`. There are
two matches because that search text matches the ID of a case and the
title of another.

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))


### Release notes

Users can now search for Cases by ID.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 12:27:11 +01:00
Achyut Jhunjhunwala
7f2bf935ec
add stacktrace support for php (#149122)
Closes https://github.com/elastic/kibana/issues/80949

## Summary

This PR adds support for displaying Language specific Stacktrace for
PHP.

## PHP

**Before changes -**

<img width="1681" alt="image"
src="https://user-images.githubusercontent.com/7416358/213389631-f8dd808d-3a38-4663-b2dc-c777d87795a6.png">

**After changes the Stackttrace will look like this**

<img width="1681" alt="image"
src="https://user-images.githubusercontent.com/7416358/213192049-e4bc56b0-49ba-40a3-85c1-218be917ba71.png">
2023-01-25 12:13:36 +01:00
Stratoula Kalafateli
5ec4bde603
[Visualizations] Enables multiple values filtering on tooltip actions (#148372)
## Summary

Enables tooltip actions on:
- Lens embeddables (as soon as the unified search bar exists)
- Lens
- Agg based (as they share the same renderer with Lens)

I am not enabling this in TSVB.


![lens](https://user-images.githubusercontent.com/17003240/210559313-3c36dab0-771d-415a-b9cd-fa2a8d48579e.gif)

Also the action is not enabled for Lens if:
- there are only series with metrics

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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

Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 12:55:30 +02:00
Aleh Zasypkin
f3741b7a61
Upgrade simple-git dependency (3.15.13.16.0). (#149483) 2023-01-25 11:54:02 +01:00
Francois-Clement Brossard
876c3f89fb
[Advanced Settings] Fix query:allowLeadingWildcards description (#148264)
Fix query:allowLeadingWildcards description as there are no "experimental query features" anymore.

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2023-01-25 03:50:47 -07:00
Jorge Sanz
6453c6ebd2
[Docs] Confirm Kibana checksum with the command line (#148117)
## Summary

Following this
[recommendation](https://discuss.elastic.co/t/checksum-confirmation-during-kibana-installation-for-rpm/320425)
from a community member, this PR aligns the instructions to install
Kibana from RPM with [Elasticsearch
documentation](b7060bad9a/docs/reference/setup/install/rpm.asciidoc (L114-L117))
to also download the checksum file and use `shasum` to run the test and
confirm the file is correct.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 11:46:30 +01:00
Jorge Sanz
fc17f49f27
Update DELETE request (#127537)
Update the `DELETE` request to use `<space_name>`.

Thanks @Erni for the nudge!

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 11:45:49 +01:00
James Gowdy
8b3305f803
[ML] Allow dedicated index override in JSON editor (#148887)
Editing the `results_index_name` property in the advanced wizard's JSON
editor is now not immediately overwritten when the editor flyout closes.
This property will be reset if the user edits the job ID in the UI.


![image](https://user-images.githubusercontent.com/22172091/212331637-c8af0792-740f-4ab0-a245-7281442c8665.png)

Fixes https://github.com/elastic/kibana/issues/148860

Also includes some minor layout changes, adding extra spacers to
separate components which were too close to each other.
2023-01-25 03:31:49 -07:00
Aleh Zasypkin
750f28f535
Remove node-fetch package.json resolutions for puppeteer package. (#149398) 2023-01-25 03:25:02 -07:00
Shahzad
808b99c118
[Synthetics] Step details page error callout (#149410)
Fixes https://github.com/elastic/kibana/issues/145386

Step details page error callout !!

<img width="1779" alt="image"
src="https://user-images.githubusercontent.com/3505601/214309774-302ca366-31dc-47ee-a863-7452e7d8c848.png">
2023-01-25 10:33:06 +01:00
Carlos Crespo
252d81c46a
[Infrastructure UI] Add lens charts to hosts view (#148906)
## Summary

closes https://github.com/elastic/obs-infraobs-team/issues/921

This PR introduces a series of lens charts to hosts view page.

![out](https://user-images.githubusercontent.com/2767137/214100703-1847586a-fa87-4c2c-9eb0-af5271667702.gif)

The Lens embeddable component is fully integrated, allowing the filters
to react to clicks on the charts as well as accessing Lens directly from
the chart

The charts will show metrics for:
- Load
- CPU Usage
- RX
- TX
- Memory 
- Disk Read
- Disk Write


### How to test
- Using metricbeat
  - Enable system metric in metricbeat
  - Start your local ES

- Using oblt
  - configure kibana.dev.yml with your oblt-cluster

- Using slingshot
- Clone https://github.com/elastic/slingshot and run slingshot yarn
slingshot load --config ./configs/hosts.json

- Start your local ES
- Start kibana
- Navigate to Infrastructure > Hosts

### Notes
- I've renamed a few things that started to become confusing after this
change.
- The structure created for the lens vis is similar to the
inventory_model, but here is only used in `public` and I've placed them
as a common functionality, since this might also be used in other pages
in the future.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 10:17:52 +01:00
Muhammad Ibragimov
ce075504ae
[Console] Use elasticsearch-js's maxResponseSize option instead of raw http requests for autocomplete_entities (#148146)
Closes https://github.com/elastic/kibana/issues/145653


### Summary

This PR replaces the raw http requests with the elasticsearch client to
retrieve autocomplete suggestions. In 8.5, and 8.6, the autocomplete
suggestions were retrieved using raw http requests. This was done
because the elasticsearch client's `maxResponseSize` and
`maxCompressedResponseSize` settings were not working as expected when
`Content-Length` header was not set in the response. This was fixed in
https://github.com/elastic/elastic-transport-js/pull/57, so we can now
use the elasticsearch client instead of raw http requests.

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ignacio Rivas <ignacio.rivas@elastic.co>
2023-01-25 13:49:53 +05:00
Dzmitry Lemechko
ff77de662d
[api capacity testing] Adjust endpoint limits (#149333)
## Summary

This PR tweaks max load and thresholds for some apis in order to get
more consistent
[results](c4b07f90-58eb-563e-8e59-3be09c8074f8?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-3d,to:now))).

Current main (last 3 days):
<img width="1534" alt="Screenshot 2023-01-24 at 14 53 15"
src="https://user-images.githubusercontent.com/10977896/214314206-0b849053-9473-4a98-9f3e-e90461a5a341.png">

PR (4 runs):

<img width="1569" alt="Screenshot 2023-01-24 at 15 00 49"
src="https://user-images.githubusercontent.com/10977896/214314530-60a5b3e4-2730-4307-946d-cf25d57d04ab.png">
2023-01-25 09:20:49 +01:00
Dominique Clarke
c09a9d2e00
[Synthetics] add test coverage for editing monitors within a non default space (#149138) 2023-01-25 09:01:04 +01:00
Kibana Machine
468b897d88
[api-docs] 2023-01-25 Daily api_docs build (#149475)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/228
2023-01-25 00:55:30 -05:00