Commit graph

4113 commits

Author SHA1 Message Date
Kibana Machine
1392633fae
[8.8] Update APM links (#156460) (#156462)
# Backport

This will backport the following commits from `main` to `8.8`:
- [Update APM links
(#156460)](https://github.com/elastic/kibana/pull/156460)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brandon
Morelli","email":"brandon.morelli@elastic.co"},"sourceCommit":{"committedDate":"2023-05-03T01:42:18Z","message":"Update
APM links (#156460)\n\nThis PR updates three APM links. For the failing
links
in\r\nhttps://github.com/elastic/apm-server/pull/10560.","sha":"72c5d5286a651d8c4a3f7b9268a142270c7c3310","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.8.0","v8.9.0"],"number":156460,"url":"https://github.com/elastic/kibana/pull/156460","mergeCommit":{"message":"Update
APM links (#156460)\n\nThis PR updates three APM links. For the failing
links
in\r\nhttps://github.com/elastic/apm-server/pull/10560.","sha":"72c5d5286a651d8c4a3f7b9268a142270c7c3310"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156460","number":156460,"mergeCommit":{"message":"Update
APM links (#156460)\n\nThis PR updates three APM links. For the failing
links
in\r\nhttps://github.com/elastic/apm-server/pull/10560.","sha":"72c5d5286a651d8c4a3f7b9268a142270c7c3310"}}]}]
BACKPORT-->

Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co>
2023-05-02 22:04:47 -04:00
Kibana Machine
e5a7b51638
[8.8] [DOCS] Edits Kibana alerting settings (#155318) (#156022)
# Backport

This will backport the following commits from `main` to `8.8`:
- [[DOCS] Edits Kibana alerting settings
(#155318)](https://github.com/elastic/kibana/pull/155318)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-04-27T14:26:19Z","message":"[DOCS]
Edits Kibana alerting settings
(#155318)","sha":"7efe3d53c6e8dfeec7da7815d2d4c7a2a965c40e","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","v8.8.0","v8.7.2","v8.9.0"],"number":155318,"url":"https://github.com/elastic/kibana/pull/155318","mergeCommit":{"message":"[DOCS]
Edits Kibana alerting settings
(#155318)","sha":"7efe3d53c6e8dfeec7da7815d2d4c7a2a965c40e"}},"sourceBranch":"main","suggestedTargetBranches":["8.8","8.7"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.7","label":"v8.7.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/155318","number":155318,"mergeCommit":{"message":"[DOCS]
Edits Kibana alerting settings
(#155318)","sha":"7efe3d53c6e8dfeec7da7815d2d4c7a2a965c40e"}}]}]
BACKPORT-->

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2023-04-27 08:12:21 -07:00
Aleh Zasypkin
7112c286ab
Document compatibilityMode query string parameter in Resolve import errors API. (#155696) 2023-04-25 17:36:31 +02:00
Oliver Gupte
077245606b
[APM] Create plugin for logs onboarding (#154728)
Closes #154733

Creates a new plugin for logs onboarding with wizard to organize steps
into discrete views.

#### TODO:
- [x] rename plugin to observability_onboarding
- [x] configure: UI and server plugin
- [x] enable/disable new plugin
- [x] remove the link to it from Observability nav

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yngrid Coello <yngrid.coello@elastic.co>
Co-authored-by: Yngrid Coello <yngrdyn@gmail.com>
2023-04-25 11:14:21 -04:00
Lisa Cawley
fb68f2075a
[DOCS] Automate two rule management screenshots (#155566) 2023-04-25 08:11:22 -07:00
Lisa Cawley
e1b3bc259a
[DOCS] Automate email-params-test.png, add title in connector table rows (#155469) 2023-04-21 12:19:33 -07:00
Lisa Cawley
da4c42da48
[DOCS] Automate email connector screenshot, edit secrets field label (#155464) 2023-04-21 11:04:09 -07:00
Lisa Cawley
a0aae1aa23
[DOCS] Automate rule-flyout-rule-conditions.png (#155461) 2023-04-21 07:51:28 -07:00
Lisa Cawley
5120d692c8
[DOCS] Remove or move book-scoped attributes (#155210) 2023-04-20 09:12:09 -07:00
Mike Côté
5a4dd3fccd
Remove alerting_framework_heath from the alerting framework health API response (#154276)
Resolves https://github.com/elastic/kibana/issues/135035.

In this PR, I'm removing the deprecated attribute
`alerting_framework_heath` from the alerting framework health API.

## To verify

1. Start Kibana.
2. Call `/api/alerting/_health`.
3. Notice `alerting_framework_heath` is no longer part of the HTTP API
response.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2023-04-20 07:16:27 -04:00
Mike Côté
d2c905bef5
Deprecate usage of ephemeral tasks (#154275)
Resolves https://github.com/elastic/kibana/issues/151457.

In this PR, I'm deprecating ephemeral tasks and their related settings.
The following settings have been deprecated with proper warning
messages:
- `xpack.task_manager.ephemeral_tasks.enabled`
- `xpack.task_manager.ephemeral_tasks.request_capacity`
- `xpack.alerting.maxEphemeralActionsPerAlert`

## To verify

1. Set the following in your `kibana.yml`
```
xpack.task_manager.ephemeral_tasks.enabled: true
xpack.task_manager.ephemeral_tasks.request_capacity: 10
xpack.alerting.maxEphemeralActionsPerAlert: 10
```
2. Start up Kibana
3. Notice the deprecation warnings about these settings appear in the
logs
4. Remove settings from step 1

## Sample warning logs

```
[2023-04-18T09:45:36.731-04:00][WARN ][config.deprecation] Configuring "xpack.alerting.maxEphemeralActionsPerAlert" is deprecated and will be removed in a future version. Remove this setting to increase action execution resiliency.
[2023-04-18T09:45:36.732-04:00][WARN ][config.deprecation] Configuring "xpack.task_manager.ephemeral_tasks.enabled" is deprecated and will be removed in a future version. Remove this setting to increase task execution resiliency.
[2023-04-18T09:45:36.732-04:00][WARN ][config.deprecation] Configuring "xpack.task_manager.ephemeral_tasks.request_capacity" is deprecated and will be removed in a future version. Remove this setting to increase task execution resiliency.
```

### Release notes

The following settings have been deprecated. Remove them to increase
task execution resiliency.
- `xpack.task_manager.ephemeral_tasks.enabled`
- `xpack.task_manager.ephemeral_tasks.request_capacity`
- `xpack.alerting.maxEphemeralActionsPerAlert`

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2023-04-20 07:14:04 -04:00
Yngrid Coello
153e1fcf45
[APM] plugin description (#155041)
While I was checking [some
documentation](https://www.elastic.co/guide/en/kibana/current/plugin-list.html)
I discovered APM plugin description was `undefined`

<img width="1847" alt="image"
src="https://user-images.githubusercontent.com/1313018/231450602-926abacc-b915-42dd-88fb-462643cc8dc1.png">
2023-04-19 09:49:10 +01:00
Dominik Giger
8e17c8b3ee
Update email.asciidoc: Remove reference to Elastic Cloud email allowlist. (#153854)
Removes the warning about the email allowlist in Elastic Cloud from the docs.

It is not necessary anymore to allowlist individual email addresses in Elastic Cloud. The connector can now be used immediately without any additional config.

Instead I added a link to the list of limitations for the Elastic Cloud connector (rate-limit etc.)
2023-04-18 14:15:34 +02:00
Patrick Mueller
bcfe4b0005
[ResponseOps] provide config to turn off email action footer (#154919)
resolves https://github.com/elastic/kibana/issues/135402

Allows deployments to not have the default footer added to alerting
emails via the new `xpack.actions.enableFooterInEmail` config setting.
The default value is `true`, which renders the footer.  Setting the
value to `false` will cause no footer to be rendered.

Also changes the footer separator from `--` to `---`, which renders
nicer in HTML, as a `<hr>` element.
2023-04-17 11:19:16 -04:00
gchaps
049b7c8866
Updates docs landing page (#154400)
## Summary

This PR updates the Kibana docs landing page to move the most visited
docs higher on the page.


[Preview](https://kibana_154400.docs-preview.app.elstc.co/guide/en/kibana/master/index.html)

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-04-17 07:59:31 -07:00
Jonathan Buttner
f111d93d08
[Cases] Adding cases settings docs (#154672)
This PR adds the new configuration settings to the docs. The
configurations were added in this PR:
https://github.com/elastic/kibana/pull/154013

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-04-11 22:15:26 -04:00
Coen Warmer
26f65b3262
[Observability] Add Observability Shared app (#154716)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-11 21:51:59 +02:00
Yngrid Coello
628db34d8a
[APM] Display latest agent version in agent explorer (#153643)
Closes https://github.com/elastic/kibana/issues/152326.

### Changes
- `fetchWithTimeout` function was added, so we can fetch the external
bucket where the versions are with a timeout. This is mostly useful for
air-gapped environments.
- `fetchAgentsLatestVersion` was introduced an it's in charge of
fetching the bucket and handling the errors accordingly.
- `getAgentsItems` now returns `latestVersion` property for each agent.
- New column was created in the UI to list the latestVersion per agent.

When no timing out


https://user-images.githubusercontent.com/1313018/227519796-e5569475-451d-4c04-8243-d18c8e7126c3.mov

When timing out


https://user-images.githubusercontent.com/1313018/227520011-ae616a07-e87b-4d0f-bd29-4b3338aa5df2.mov

### Pending

- [ ] Replace bucket URL with production bucket url

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-11 14:31:13 +02:00
Lisa Cawley
f446b3cda5
[DOCS] Remove obsolete X-Pack settings page (#154683) 2023-04-10 19:34:34 -07:00
Tiago Costa
66ac756b98
fix(NA): external plugins development flow with the new modern package plugins in place (#153562)
This PR fixes the 3rd party external plugin development workflow by
introducing a dev step for plugins that allows for development usages of
those with Kibana.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-06 18:00:24 +01:00
gchaps
0a62f2c662
[DOCS] How to duplicate a search (#154008)
## Summary

Adds content on how to duplicate a search in [Save a search for
reuse](https://www.elastic.co/guide/en/kibana/current/save-open-search.html).

Closes #149850

---------

Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2023-04-05 13:47:05 -07:00
Nathan Reese
f4efe1b70b
[Maps] layer work flow usability (#154102)
All this dashboard usability work as sparked some ideas to make better
work flows in Maps

### Adding layer
Enhance "Add layer" work flow by allowing users to exit wizard after
layer is added instead of forcing users to continue wizard even if they
do not have any additional configuration changes to make.

Old
<img width="300" alt="Screen Shot 2023-03-30 at 2 56 56 PM"
src="https://user-images.githubusercontent.com/373691/228962788-397e77fe-81b5-438a-a45c-3210101be336.png">


New
<img width="300" alt="Screen Shot 2023-03-30 at 2 22 44 PM"
src="https://user-images.githubusercontent.com/373691/228962403-ed18f8dc-c518-473d-8dd1-f889f7e51684.png">

### Editing layer
"Save" language in layer editor is poor choice since layer changes are
not persisted until user clicks "Save" button in top chrome to save
entire map. Updated copy to better reflect action.

Old
<img width="300" alt="Screen Shot 2023-03-30 at 2 57 16 PM"
src="https://user-images.githubusercontent.com/373691/228962822-d923978f-71c4-4c7f-96f9-b003ededfbbe.png">


New
<img width="300" alt="Screen Shot 2023-03-30 at 2 49 57 PM"
src="https://user-images.githubusercontent.com/373691/228962420-4bd9d554-97ae-4c37-b677-84cd762e3f39.png">

### Other changes
"Map settings" => "Settings"

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-04 11:48:21 -06:00
Brandon Morelli
d498c2fe74
docs: link to android agent central config docs (#154303)
### Summary

The Android agent officially supports central configuration as of
version 0.4.0. This PR links from the central configuration
documentation to the Android agent config reference. Closes
https://github.com/elastic/observability-docs/issues/2812. cc
@LikeTheSalad
2023-04-03 23:01:36 -04:00
Nick Peihl
95d4820592
[Docs] Fix curl examples in update data view api docs (#153292)
## Summary

Fixes typos in the curl examples in the Update data views API docs.

[Reported by a community
user](https://discuss.elastic.co/t/kibana-data-view-update-api-request-doesnt-work/327435/5).
2023-04-03 16:02:26 -04:00
David Kilfoyle
da4e7826c4
[DOCS] Add details to xpack.fleet.outputs settings (#154247)
This updates the [Fleet settings in
Kibana](https://www.elastic.co/guide/en/kibana/current/fleet-settings-kb.html)
page with details for the `xpack.fleet.outputs` settings.

@nchaulet and @jeanfabrice In addition to what we discussed I updated
the `is_default` setting as well, but it probably could use some fixing
up (i.e., is the setting for "all non-monitoring data" or something
else)?

Preview:

![Screenshot 2023-04-03 at 9 25 55
AM](https://user-images.githubusercontent.com/41695641/229524885-f468deff-947f-4ae8-8f87-5044ca3eae7f.png)
2023-04-03 10:04:18 -04:00
Patrick Mueller
cd727fa190
[ResponseOps] move alert UUID generation from rule registry to the alerting framework (#143489)
resolves https://github.com/elastic/kibana/issues/142874

The alerting framework now generates an alert UUID for every alert it
creates. The UUID will be reused for alerts which continue to be active
on subsequent runs, until the alert recovers. When the same alert (alert
instance id) becomes active again, a new UUID will be generated. These
UUIDs then identify a "span" of events for a single alert.

The rule registry plugin was already adding these UUIDs to it's own
alerts-as-data indices, and that code has now been changed to make use
of the new UUID the alerting framework generates.

- adds property in the rule task state
`alertInstances[alertInstanceId].meta.uuid`; this is where the alert
UUID is persisted across runs
- adds a new `Alert` method getUuid(): string` that can be used by rule
executors to obtain the UUID of the alert they just retrieved from the
factory; the rule registry uses this to get the UUID generated by the
alerting framework
- for the event log, adds the property `kibana.alert.uuid` to
`*-instance` event log events; this is the same field the rule registry
writes into the alerts-as-data indices
- various changes to tests to accommodate new UUID data / methods
- migrates the UUID previous stored with lifecycle alerts in the alert
state, via the rule registry *INTO* the new `meta.uuid` field in the
existing alert state.
2023-04-03 09:19:48 -04:00
Aleh Zasypkin
a1fccfd880
Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00
Nick Peihl
b692e347f4
[Dashboard Usability] Unified dashboard settings (#153862)
## Summary

Adds flyout for changing individual dashboard settings such as title,
description, tags, and save time with dashboard. This also moves the
existing dashboard options (show panel titles, sync colors, use margins,
sync cursor, and sync tooltips) into the flyout.

Fixes #144532

[Flaky test
runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2055)

### 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 was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### 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-03-31 09:52:51 -04:00
Lisa Cawley
fe683844e8
[DOCS] Fix case visualization screenshot failure (#153813) 2023-03-30 09:52:46 -07:00
Brandon Morelli
733a6c2244
[APM] 8.7.0 Documentation and screenshot updates (#153140)
### Summary

- Closes https://github.com/elastic/observability-docs/issues/2632.
- Closes https://github.com/elastic/observability-docs/issues/2631.
- Closes https://github.com/elastic/observability-docs/issues/2633.
- Closes https://github.com/elastic/observability-docs/issues/2630.
- Closes https://github.com/elastic/observability-docs/issues/1339.
2023-03-29 10:21:44 -07:00
Coen Warmer
6b6a8dfecb
[Observability] Copy Exploratory View into a separate app (#153852) 2023-03-29 10:30:58 +02:00
Lisa Cawley
782a3d5e42
[DOCS] Add responses components in connector open API specification (#153136) 2023-03-28 19:28:43 -07:00
Lisa Cawley
2b9be70f84
[DOCS] Refresh rule detail screenshots (#153705) 2023-03-28 12:08:15 -07:00
Tomonori Soejima
4506391efd
[DOCS] Update create_rule.asciidoc (#153734) 2023-03-27 09:20:46 -07:00
Victor Martinez
e1b12fd61a
docs: interpreting ci failures (#153549)
## Summary

Replace the deprecated Jenkins specifics in the interpreting CI failures
section for something Buildkite specific.

Please bear with me, I'm not much familiar with the implementations but
found the current documentation to be obsoleted.
2023-03-24 17:27:11 +01:00
Lisa Cawley
bd50903109
[DOCS] Add alert flapping and rule setting details (#153605) 2023-03-24 09:22:20 -07:00
Lisa Cawley
552e47280d
[DOCS] Refresh and automate screenshots for connector logs (#153510) 2023-03-23 11:27:00 -07:00
DeDe Morton
9ff847dec7
[DOCS] Describe how to use Elastic Agent to monitor Kibana (#152634)
## Summary

Add Elastic Agent as another way to collect monitoring data.

This work is tracked by
https://github.com/elastic/observability-docs/issues/2602.

There will be additional PRs to address changes required to monitoring
docs for other stack components. TBH, it pains me a bit to see how many
places users need to go to find info about stack monitoring, but fixing
that problem is not in scope for these updates unfortunately. :-/

Please respond to questions addressed to reviewers.

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

### To Do before merging

- [x] Remove questions to reviewers.

---------

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2023-03-23 11:00:13 -07:00
Lisa Cawley
cc11df727f
[DOCS] Automate screenshots in tracking containment rule (#153406) 2023-03-22 07:51:16 -07:00
Jon
67fab79f4c
Update on rpm.asciidoc (#150269) (#153333)
Forward port of https://github.com/elastic/kibana/pull/150269 from 7.17.
Thanks to the author of the original PR.

Fixes the checksum filename used to verify the Kibana rpm.

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

---------

Co-authored-by: koso3ht4y <thantzin1802@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2023-03-22 00:45:10 +00:00
Jason Rhodes
cae4385744
New asset manager plugin (tech preview, off by default) (#152456)
## Summary

This plugin will contain the asset inventory and topology API in Kibana,
giving Kibana projects access to inventory and topology data via an HTTP
and/or JS API on the server and client.

[Currently proposed API
docs](https://github.com/elastic/o11y-topology-playground/tree/main/docs/api)
will be moved to this repo as well, contained inside this plugin folder,
as a part of this PR.

## Enabling the plugin

This plugin is entirely in "technical preview" and because of this, must
be specifically enabled via config for it to do anything besides being
run by the core plugin framework. To enable the server API layer, as
well as the index template management, put the following line in your
kibana.yml file:

```yml
xpack.assetManager.alphaEnabled: true
```

## Running the API integration tests

Run the functional test server with the asset manager config in place:

```shell
$ node scripts/functional_tests_server --config x-pack/test/api_integration/apis/asset_manager/config.ts
```

Then run the functional test runner with the same config, to target just
these tests:

```shell
$ node scripts/functional_test_runner --config=x-pack/test/api_integration/apis/asset_manager/config.
ts
```

_Note:_ The config file added in this folder enables the tech preview
plugin ([see file
here](https://github.com/elastic/kibana/pull/152456/files#diff-bc00de6c34c9bc131cfbdf3570c487fe9ee947e9a88a84c59d6b139b79d7708eR20)).

### Running the integration tests for verifying that the plugin is
"disabled" by default

There is a small set of tests that confirm that the endpoints return 404
and there is no index template installed if the config value is not set
in the kibana.yml file. To run this suite, use the following config:

```shell
$ node scripts/functional_tests_server --config x-pack/test/api_integration/apis/asset_manager/config_when_disabled.ts
$ node scripts/functional_test_runner --config=x-pack/test/api_integration/apis/asset_manager/config_when_disabled.
ts
```

## Testing this PR with sample data

There are some sample data mechanisms in place inside this PR to allow
us to build out the endpoints.

### View sample docs
```http
GET /api/asset-manager/assets/sample
```

This will return a list of the assets that are included if you elect to
write assets. This is a good endpoint to use to find EAN (Elastic Asset
Name) values that you may want to exclude from writing for a given time
period, to simulate assets appearing/disappearing over time.

### Write sample docs
```http
POST /api/asset-manager/assets/sample
{
  "baseDateTime": "2023-02-28T12:00:00.000Z",
  "excludeEans": ["k8s.cluster:cluster-002"]
}
```

This posts all of the sample asset documents to Elasticsearch using the
`baseDateTime` value as the timestamp. Any valid string or number that
is accepted by `new Date()` should work for `baseDateTime`.

The `excludeEans` value is an array of EAN ("Elastic Asset Name") values
that you don't want to write on this particular run. This way you can
have assets appear (exclude them in the past, don't exclude them during
a later run) or disappear (vice versa) and see how that shows up in
other endpoints.

**Note:** *Remember that when you curl a Kibana server API with a POST
request, you must include a `kbn-xsrf` header with any string value you
want.*

### Get asset docs from ES
```http
GET /api/asset-manager/assets?type=k8s.cluster&from=now-10m
```

This is the primary "real" endpoint available right now. It should
retrieve a list of assets based on the type/from/to/ean filter values
you specify. Once you load the sample data, this endpoint should return
results.

## Debug logging

There are some extra debug logs for ES queries that are running in the
code in this PR. To print those logs to the Kibana server console, run
Kibana using `DEBUG_LOGGER=true`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-20 13:31:01 -07:00
Jeramy Soucy
ba6058c147
Uses refresh=false for creating, updating, and invalidating user sessions (#151800)
closes #149338

## Summary
Sets refresh parameter to false in session create, update, and
invalidate. Previously refresh was set to 'wait_for' (or 'true' in the
case of invalidating by query).

### Tests
Several unit tests and functional tests have been updated to reflect the
change in test snapshots and to manually refresh the session index in
order to complete testing. The bulk of the test changes reside in the
[concurrent session limit
suite](66a43be28c/x-pack/test/security_api_integration/tests/session_concurrent_limit/global_limit.ts).

Flaky Test Runner for relevant test suites:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1984

### Documentation
Adds a note to the session-management ascii doc to document a known
limitation of enforcing the concurrent sessions limit...
```
NOTE: Due to the rate at which session information is refreshed, there might be a few seconds where the concurrent session limit is not enforced.
This is something to consider for use cases where it is common to create multiple sessions simultaneously.
```

---------

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2023-03-10 13:18:09 -05:00
Maja Grubic
c69bb77235
[Custom Branding] Update text (#151631)
## Summary

This PR updates text for Custom Branding.
<img width="1505" alt="Screenshot 2023-02-20 at 16 22 10"
src="https://user-images.githubusercontent.com/1937956/220145333-68aedb04-5c57-4dca-aa1f-037a245100ba.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]
[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)~


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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
2023-03-10 09:45:06 +01:00
Kaarina Tungseth
e57883f3be
[DOCS] 8.7 Presentation docs (#151797)
## Summary

- #148331: [Updated
screenshots](https://kibana_151797.docs-preview.app.elstc.co/guide/en/kibana/master/add-controls.html)
- #146335:
[Docs](https://kibana_151797.docs-preview.app.elstc.co/guide/en/kibana/master/dashboard.html#search-or-filter-your-data)
- #146363:
[Docs](https://kibana_151797.docs-preview.app.elstc.co/guide/en/kibana/master/dashboard.html#edit-panels)
- #144867:
[Docs](https://kibana_151797.docs-preview.app.elstc.co/guide/en/kibana/master/add-controls.html#edit-controls)
2023-03-08 16:09:43 -06:00
gchaps
df620e1d7e
[DOCS] Updates text on docs landing page (#152152)
## Summary

This PR updates the text in the solutions cards on the docs landing
page.


[Preview](https://kibana_152152.docs-preview.app.elstc.co/guide/en/kibana/master/index.html)
2023-03-08 08:05:13 -08:00
gchaps
8d6c63472c
[DOCS] Updates Discover docs (#151953)
## Summary

This PR updates the Discover docs for 8.7.
2023-03-08 07:05:25 -08:00
Carly Richmond
867c906f6c
Updating debugging docs: replacing apm.dev.js configuration references with kibana.dev.yml (#152237)
## Summary

Updating the Debugging Kibana documentation:

1. Adding Python as additional pre-requisite technology
2. Replacing apm.dev.js configuration with updated kibana.dev.yml
approach

Similar to recent discussion in issue #79490, I've found that the
`apm.dev.js` approach is no longer working.


### Checklist

Delete any items that are not applicable to this PR.

- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

### Risk Matrix

N/A

### 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-03-08 14:43:34 +00:00
Nathan Reese
7473ab5deb
[lens][maps] log warning when unable to fetch EMS boundaries for lens region map (#152762)
Fixes https://github.com/elastic/kibana/issues/152495

<img width="500" alt="Screen Shot 2023-03-06 at 12 46 41 PM"
src="https://user-images.githubusercontent.com/373691/223216940-0b41a775-cbf4-424d-ab89-6c1a3b8a4c14.png">


Running Kibana in an offline environment without setting
`map.includeElasticMapsService: false` is an anti-pattern and leads to
lens and maps visualizations delaying initialization while waiting for
EMS connection. This PR ensures there is proper console notification.
Better messaging should point users to the correct resolution of setting
`map.includeElasticMapsService: false`.

The PR does not resolve the timeout issue. Not going to resolve the
timeout issue since running in an offline environment without setting
`map.includeElasticMapsService: false` is not supported.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-03-07 10:05:02 -07:00
Lisa Cawley
b6cff1ad72
[DOCS] Automate rule-types-index-threshold-example-alerts.png (#152618) 2023-03-07 11:43:49 -05:00
Lisa Cawley
0c60d8edb7
[DOCS] Refresh index threshold rule screenshots (#152310) 2023-03-02 07:46:19 -08:00