Commit graph

45170 commits

Author SHA1 Message Date
Jean-Louis Leysens
46e0f0ba3e
[Reporting] Added docs about the new ILM kibana-reporting policy (#108018)
* first iteration of ilm policy copy - in a callout

* apply James' suggested change

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-08-11 12:43:13 +02:00
Yara Tercero
cec5d3f27a
[RAC] - Update field names (#107857)
### Summary
### Fields used moving forward
`kibana.alert.rule.consumer` will refer to the context in which a rule instance is created. Rules created in:
- stack --> `alerts`
- security solution --> `siem`
- apm --> `apm`

`kibana.alert.rule.producer` will refer to the plugin that registered a rule type. Rules registered in:
- stack --> `alerts`
- security solution --> `siem`
- apm --> `apm`

So an `apm.error_rate` rule created in stack will have:
- consumer: `alerts` and producer: `apm`
 An `apm.error_rate` rule created in apm will have:
- consumer: `apm` and producer: `apm`

`kibana.alert.rule.rule_type_id` will refer to a rule's rule type id. Examples:
- `apm.error_rate`
- `siem.signals`
- `siem.threshold`

Also renamed the following because `rule.*` fields are meant to be ecs fields pulled from the source/event document, not refer to our rule fields.
`rule.name` --> `kibana.alert.rule.name` will refer to the rule's name.

`rule.category` --> `kibana.alert.rule.category` will refer to the rule's category.

`rule.id` --> `kibana.alert.rule.uuid` will refer to the rule's uuid.
2021-08-11 06:25:46 -04:00
Anton Dosov
e86d909ae6
include and fix hello world example test (#108072) 2021-08-11 11:14:58 +02:00
Walter Rafelsberger
86c17daec2
[ML] APM Latency Correlations: Field/value candidates prioritization (#107370)
- Makes sure fields defined in `FIELDS_TO_ADD_AS_CANDIDATE` and prefixed with one of `FIELD_PREFIX_TO_ADD_AS_CANDIDATE` get queried first when retrieving the `correlation` and `ks-test` value.
- Correctly consider the `includeFrozen` parameter.
- The bulk of the PR is a refactor:
  - Moves `query_*` files to `queries` directory
  - Introduces `asyncSearchServiceStateProvider` to manage the state of the async search service in isolation so that we no longer mutate individual vars or plain objects.
  - Introduces `asyncSearchServiceLogProvider` and extends the log to not only store messages but original error messages retrieved from ES too.
  - Refactors some more functions in separate files and adds unit tests.
  - Removes some deprecated code no longer needed.
2021-08-11 10:46:35 +02:00
Tim Sullivan
a444d8a4ab
[Reporting] Add lenience to a test on the order of asserted logs (#108135) 2021-08-11 10:15:38 +02:00
Alexey Antonov
ee10819ef0
[Lens] fix do not submit invalid query in filtered metric (#107542)
* [Lens] Do not submit invalid query in filtered metric

Closes: #95611

* fix CI

* fix PR comments

* fix PR comments

* fix PR comment

* move closePopover to useCallback

* add filter validation to utils/isColumnInvalid

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 10:56:44 +03:00
spalger
441fb796e2 skip flaky test (#108043) 2021-08-10 23:49:47 -07:00
spalger
65a5cb1476 fix newly introduced type error (#107593) 2021-08-10 22:37:06 -07:00
Tim Sullivan
e4e22ab928
[Reporting] server side code clean up (#106940)
* clean up the enqueue job function

* clean up the screenshots observable

* clean up authorized user pre routing

* clean up get_user

* fix download job response handlers

* clean up jobs query factory repetition

* clean up setup deps made available from plugin.ts

* update test for screenshots observable

* Revert "clean up setup deps made available from plugin.ts"

This reverts commit 91de680ebf.

* revert renames

* minor rename

* fix test after rename

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 22:34:42 -07:00
Spencer
c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Cauê Marcondes
6ed4b4f70c
[APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (#107593) 2021-08-10 23:40:20 -04:00
Sandra G
bfad9e354f
add manage rules link to alerts dropdown (#107950)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 21:03:14 -04:00
Quynh Nguyen
4df34e1188
[ML] Enable Index data visualizer document count chart to update time range query (#106438)
* Add brush listener

* Fix back button not working

* [ML] Remove api names in apidoc.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:33:55 -04:00
Frank Hassanabad
978c44e381
[Security Solutions][Detection Engine] Fixes "undefined" crash for author field by adding a migration for it (#107230)
## Summary

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

During an earlier upgrade/fix to our system to add defaults to our types, we overlooked the "author" field which wasn't part of the original rules. Users upgrading might get errors such as:

```
params invalid: Invalid value "undefined" supplied to "author"
```

This fixes that issue by adding a migration for the `author` field for `7.14.1`.

See https://github.com/elastic/kibana/issues/106233 for test instructions or manually remove your author field before upgrading your release and then upgrade and this should be fixed on upgrade.


### Checklist

- [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
2021-08-10 20:19:12 -04:00
Yuliia Naumenko
538a6d9288
[Actions UI] Fixed Jira Api token label. (#107776)
* [Actions UI] Fixed Jira Api token label.

* fixed tests

* fixed username

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 17:11:11 -07:00
Yuliia Naumenko
e89d069f09
[Alerting UI] Fixed display permissions for edit/delete buttons when user has read only access. (#107996)
* [Alerting UI] Fixed display permissions for Edit/delete buttons when user has read only access

* fixed due to comments
2021-08-10 17:10:49 -07:00
Nathan Reese
4ffa5cce46
[Maps] fix code owners (#108106) 2021-08-10 16:36:04 -06:00
Nick Peihl
118ef56c2e
Update EMS landing page url (#108102) 2021-08-10 15:23:59 -07:00
Constance
40766dcc08
Do not render page header for loading domains (#108078) 2021-08-10 18:01:39 -04:00
renovate[bot]
c35215fb0b
Update dependency @elastic/charts to v33.2.2 (#107939) 2021-08-10 16:43:57 -05:00
Søren Louv-Jansen
1c9edebf99
[APM] Display throughput as tps (instead of tpm) when bucket size < 60 seconds (#107850)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 23:31:41 +02:00
Nicolas Chaulet
422f64c498
[Fleet] Fix all category count (#108089) 2021-08-10 17:09:08 -04:00
Michael Olorunnisola
2bf9ae8b29
[Security Solution][Bug] - Disable alert table RBAC until fields sorted (#108034)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 17:05:19 -04:00
Ryan Keairns
ca2a591526
Add monaco default style options (#107930)
* Add monaco default style options

* Update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:02:58 -05:00
ymao1
565e07104c
[Alerting UI] Not showing edit button in rule management UI if rule is not editable in UI (#107801)
* Should not show edit button on rule management page if rule not editable in stack

* Disabling edit button in collapsed actions

* Adding tests for collapsed item actions component

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:18:10 -04:00
Sandra G
baa903d539
move rules creation out of closing popover (#107957)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:12:53 -04:00
Dario Gieselaar
b4a736c28f
[APM] Add telemetry to links into backend views (#107872) 2021-08-10 16:07:36 -04:00
Joe Portner
c21272cc5b
Sharing saved objects developer guide (#107099) 2021-08-10 16:02:45 -04:00
Sandra G
bc25c0fca9
[Stack Monitoring] Rename alerts to rules (#107654)
* rename constants and alert types to rules

* update test language

* update BaseRule properties to rule

* change rawAlert to sanitizedRule

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:02:14 -04:00
Devon Thomson
faf6482e01
[Input Controls] Options List Embeddable, Factory & Frame (#106877)
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
Co-authored-by: andreadelrio <delrio.andre@gmail.com>
2021-08-10 15:48:07 -04:00
Nathan Reese
f596f89eac
[Maps] filtered out docs with empty entity ids for tracks and top-hits layers (#107680)
* [Maps] filtered out docs with empty entity ids for tracks and top-hits layers

* eslint

* add type check for string fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 13:43:39 -06:00
Cauê Marcondes
97e345fa8d
[APM] Fixing service inventory responsive design (#107690)
* fixing service inventory responsive design

* truncate service name

* adding unit test

* addressing PR comments

* fixing test

* fixing merge problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 15:36:50 -04:00
Tiago Costa
ff9611b136
chore(NA): moving @kbn/storybook to babel transpiler (#107547)
* chore(NA): moving @kbn/storybook to babel transpiler

* chore(NA): fix import from kbn/storybook

* chore(NA): fix public interface

* chore(NA): fix kbn-storybook preset

* chore(NA): update types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:26:46 +01:00
Garrett Spong
541b19201a
[Security Solution][Detections] Updates MITRE Tactics, Techniques, and Subtechniques to v9.0 (#107708)
## Summary

Detection rules updated the MITRE ATT&CK mappings to v9.0 in https://github.com/elastic/detection-rules/pull/1401, so updating on the kibana side to ensure compatibility with latest ruleset. 

To update,  I modified 

4584a8b570/x-pack/plugins/security_solution/scripts/extract_tactics_techniques_mitre.js (L18-L19)
to point to the `ATT&CK-v9.0` tag:

```
https://raw.githubusercontent.com/mitre/cti/ATT&CK-v9.0/enterprise-attack/enterprise-attack.json
```

Then ran `yarn extract-mitre-attacks` from the root `security_solution` plugin directory.

### 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/master/packages/kbn-i18n/README.md)
2021-08-10 13:12:07 -06:00
Marta Bondyra
c5499c6592
[Lens] Redux selectors optimization (#107559) 2021-08-10 21:06:35 +02:00
Lisa Cawley
4f7e62fff3
[DOCS] Updates file upload details for geospatial data (#107985) 2021-08-10 10:06:11 -07:00
Tre
6579c6cb2c
[Archive Migration] x-pack..discover/feature_controls/spaces (#107644) 2021-08-10 17:46:04 +01:00
Kaarina Tungseth
aba804c36f
[DOCS] Removes coming tag from 8.0.0-alpha1 release notes (#106781) 2021-08-10 11:08:43 -05:00
Nathan Reese
37a97b435e
[file_upload] include caused_by field for import failures (#107907)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 09:53:50 -06:00
Dominique Clarke
1649661ffd
[Observability][Exploratory View] revert exploratory view multi-series (#107647)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:52:49 -04:00
Dmitry Tomashevich
328c36dedc
[Discover] Deangularize classic table (#104361)
* [Discover] move angular directives to react compoenents

* [Discover] add support of infiniteScroll

* [Discover] support paginated classic table

* [Discover] refactor docTable component, remove redundant angular code

* [Discover] remove redundant files

* [Discover] fix some functional tests and pgination

* [Discover] fix functionals

* [Discover] code refactoring, adding tests

* [Discover] update tests

* [Discover] fix embeddable view of doc table

* [Discover] update pagination view

* [Discover] remove unused translations

* [Discover] improve readability, fix pagination

* [Discover] adjust isFilterable check

* [Discover] improve doc viewer table row display

* [Discover] clean up implementation, fix functional test

* [Discover] fix skip button

* [Discover] update test snapshot

* [Discover] update test

* [Discover] simplify pagination, update layout in embeddable

* [Discover] fix functional, remove redundant i18n translations

* [Discover] return indexPatternField

* [Discover] add support of fixed footer for embeddable

* [Discover] move doc_table to apps/components folder, update test

* [Discover] fix imports

* [Discover] update imports, beautify code

* Update src/plugins/discover/public/application/apps/main/components/doc_table/doc_table_wrapper.tsx

Co-authored-by: Tim Roes <mail@timroes.de>

* [Discover] remove redundant styles

* [Discover] fix lining

* [Discover] fix discover grid embeddable

* [Discover] fix by comments

* [Discover] return extraWidth, describe the problem

* [Discover] fix unresolved conflicts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>
2021-08-10 18:21:08 +03:00
David Roberts
f479259a25
[ML] Adds a 30 day model prune window to non-rare Security jobs (#107752)
Adds the model_prune_window setting added in elastic/elasticsearch#75741
to all Security jobs that use functions that support model pruning.
This means that the models for split field values that are not seen for
30 days will be dropped. If those split field values are subsequently seen
again then new models will be created like for completely new entities.
The "rare" function does not support model pruning, so jobs that use
the "rare" function are not modified.
2021-08-10 16:04:57 +01:00
Josh Dover
283349ac2b
Add SO migration testing guidance to testing guide (#105959) 2021-08-10 10:52:10 -04:00
Patryk Kopyciński
9edcf9e71e
[Osquery] RBAC (#106669) 2021-08-10 16:36:27 +02:00
Nicolas Chaulet
5a92a7ef31
[Fleet] Support pipeline version for Fleet Final pipeline (#107892) 2021-08-10 10:35:59 -04:00
Jonathan Budzenski
1498a91796
[build] Clean images from png-js. Closes #107617 (#107975) 2021-08-10 10:09:33 -04:00
Paul Tavares
1c9b9e84a1
[Security Solution][Endpoint] Ensure fleet setup is done prior to attempting to install/upgrade the Endpoint package (#107929)
* Ensure install/upgrade of endpoint package first checks to see that fleet is setup
* Delete un-used `<Setup />` component
* Test cases for `useUpgradeSecurityPackages()` hook
2021-08-10 10:04:27 -04:00
Anton Dosov
6450df1885
[FieldFormats] Add editors tests (#107770) 2021-08-10 09:44:24 -04:00
Dario Gieselaar
7d6a2b520f
[APM] Default env for creating rule outside of APM app (#107942) 2021-08-10 15:40:36 +02:00
Christiane (Tina) Heiligers
cdf90aae42
Adds new SavedObjectsRespository error type for 404 that do not originate from Elasticsearch responses (#107301)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 06:16:55 -07:00