Commit graph

45116 commits

Author SHA1 Message Date
Tim Sullivan e69d57cf77
[Reporting] revive "existing indices" functional test (#107537)
* [Reporting] revive "existing indices" functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fix test service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:37:09 -04:00
Lisa Cawley 67634ecfef
[DOCS] Remove redundant attributes (#107583) 2021-08-04 08:29:26 -07:00
Christos Nasikas c4e374f512
[Cases] Fix config bug (#107637) 2021-08-04 18:22:25 +03:00
gchaps b52a2b8052
[DOCS] Updates description of (#107604) 2021-08-04 07:43:00 -07:00
Jonathan Buttner 96f27b9899
[Cases] Migrate connector ID to references (#104221)
* Starting configure migration

* Initial refactor of configuration connector id

* Additional clean up and tests

* Adding some tests

* Finishing configure tests

* Starting case attributes transformation refactor

* adding more tests for the cases service

* Adding more functionality and tests for cases migration

* Finished unit tests for cases transition

* Finished tests and moved types

* Cleaning up type names

* Fixing types and renaming

* Adding more tests directly for the transformations

* Fixing tests and renaming some functions

* Adding transformation helper tests

* Adding migration utility tests and some clean up

* Begining logic to remove references when it is the none connector

* Fixing merge reference bug

* Addressing feedback

* Changing test name and creating constants file
2021-08-04 10:39:21 -04:00
David Sánchez ec4de0d95e
[Security solution][Endpoint] Disallow list operator in event filters form (#107122)
* adds entries.list.id field in the searchable event filters fields list

* adds test case for list.id operator

* Revert "adds entries.list.id field in the searchable event filters fields list"

This reverts commit 45a66fd966.

* Revert "adds test case for list.id operator"

This reverts commit 9dba145df2.

* Disable large value list option in operators dropdown

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 15:51:24 +02:00
Tyler Smalley 7415b7a797 skip flaky suite (#107057) 2021-08-04 06:44:55 -07:00
Sandra G b03d85a20a
[Stack Monitoring] Enable OOTB alerts in RAC page and multiple rules of a rule type (#106457)
* allow rules to be managed in RAC page

* return all rules of a rule type instead of first one

* update UI to handle multiple rule types

* add comments about creating the menus by category for alerts and rules

* fix parsing of cluster alerts
2021-08-04 09:16:52 -04:00
Mikhail Shustov 41b6a99282
Remove legacyEs test service (#107567)
* migrate uptime tests to the new client. it didn't use legacy one anyway

* remove legacyEs service
2021-08-04 14:21:35 +02:00
Andrew Wilkins 2ad7d68412
[APM] always prefer url over trasaction.page.url (#107613)
Since 7.9.0, APM Server has been copying the `transaction.page.url`
value to the ECS `url` field. We should still use `transaction.page.url`
if it exists and `url` does not (i.e. for very old docs), but we should
stop expecting it in newly written documents.
2021-08-04 20:05:14 +08:00
mgiota 36f5930a18
[Observability RAC] change alerts table filter text box placeholder (#107366)
* change alerts table filter text box placeholder

* update alerts table placeholder to use the status field

* use threshold for the alerts table placeholder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 13:36:59 +03:00
Yaroslav Kuznietsov dbab7d9f70
[Canvas] Expression progress (#104457)
* Added `expression_progress` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:33:01 +03:00
Jason Rhodes 1186b7d7ce
Updated observability CODEOWNERS (#107606)
Some updated accuracy for stack monitoring and logs/metrics, the rest is just better organization and labelling
2021-08-04 10:09:48 +02:00
Cauê Marcondes ca137ea44b
[APM] Services inventory: add time comparisons to match service overview design (#107094)
* adding comparison to inventory page

* new api to get detailed statistics

* show comparison data

* adding api test

* fixing unit test

* fixing ts issue

* adding loading to table

* refactoring

* fixing TS issue

* addressing PR comments

* fixing merge

* addressing PR comments

* fixing api test

* adding comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 19:15:49 -04:00
Andrew Goldstein f4bc4d1ea4
[RAC] [TGrid] Implements sorting in the TGrid (#107495)
## Summary

This PR implements sorting in the `TGrid`, per the animated gifs below:

![observability-sorting](https://user-images.githubusercontent.com/4459398/127960825-5be21a92-81c1-487d-9c62-1335495f4561.gif)

_Above: Sorting in Observability, via `EuiDataGrid`'s sort popover_

![security-solution-sorting](https://user-images.githubusercontent.com/4459398/128050301-0ea9ccbc-7896-46ef-96da-17b5b6d2e34b.gif)

_Above: Sorting and hiding columns in the Security Solution via `EuiDataGrid`'s column header actions_

## Details

* Sorting is disabled for non-aggregatble fields
* This PR resolves the `Sort [Object Object]` TODO described [here](https://github.com/elastic/kibana/pull/106199#issuecomment-883668966)
* ~This PR restores the column header tooltips where the TGrid is used in the Security Solution~

## Desk testing

To desk test this PR, you must enable feature flags in the Observability and Security Solution:

- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:

```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```

- To desk test the TGrid in the following Security Solution, edit `x-pack/plugins/security_solution/common/experimental_features.ts` and in the `allowedExperimentalValues` section set:

```typescript
tGridEnabled: true,
```

cc @mdefazio
2021-08-03 16:41:44 -06:00
Tyler Smalley 0bbba23cc1 skip flaky suite (#106934) 2021-08-03 15:28:42 -07:00
Ece Özalp c6a70621e9
[CTI] updates Alert Summary UI (#107081) 2021-08-03 17:47:54 -04:00
Tiago Costa 7a3436fda3
chore(NA): moving @kbn/server-http-tools to babel transpiler (#107572) 2021-08-03 16:11:54 -05:00
Tiago Costa 7d5f3a2c63
chore(NA): moving @kbn/babel-code-parser to babel transpiler (#107574)
* chore(NA): moving @kbn/babel-code-parser to babel transpiler

* chore(NA): fix package.json main field
2021-08-03 17:06:28 -04:00
Cauê Marcondes cc014f5a56
[APM] Adding stickTo on charts and adjusting search bar breakpoints (#107433)
* adding stickTo prop to tooltip

* adjusting search bar breakpoints

* adjusting breakpoints

* addressing pr comments

* fixing ts issue

* fixing comparison size
2021-08-03 17:06:14 -04:00
Tiago Costa 4351d7c954
chore(NA): moving @kbn/es to babel transpiler (#107577) 2021-08-03 17:02:56 -04:00
Nathan Reese 946e145e51
[maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+ (#107442)
* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint
2021-08-03 14:18:24 -06:00
James Gowdy 1fbb34ad21
[ML] Disable query delay editing for non-admin users (#107517) 2021-08-03 20:40:16 +01:00
Cauê Marcondes 1ddb1eedf7
[APM] Share components across Service overview and transactions. Add time comparison to the Transactions page (#107299)
* adding comparison to transactions pages

* adding new transactions table

* adding throughput

* refactoring transacon group api

* adding missing filter

* fixing i18n

* fixing tests

* addressing PR comments

* moving table to shared folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 14:35:14 -04:00
Sergi Massaneda b5e8db2443
[RAC] [TGrid] Bulk actions to EuiDataGrid toolbar (#107141)
* tGrid EuiDataGrid toolbar replace utilityBar

* tgrid new prop in observability

* types and translations fixes

* bulkActions props and encapsulation

* update limits

* code cleaning

* load lazy and remove export from public

* add memoization to bulk_actions

* icon change and test fixed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 14:02:44 -04:00
Dario Gieselaar 1e1d669650
[APM] Add and link to service dependencies page (#107522)
* [APM] Add and link to service dependencies page

* Update labels
2021-08-03 18:57:13 +02:00
Nathan Reese 8df883ad49
[maps] deprecate xpack.maps.showMapVisualizationTypes (#105981)
* [maps] deprecate xpack.maps.showMapVisualizationTypes in upgrade assistent

* use custom function instead of unusedFromRoot so config does not get removed

* fix i18n ids and align deprecation message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:53:15 -06:00
Madison Caldwell 8f9086b4c2
[RAC][Security Solution] Add base Security Rule Type (#105096)
* injects bulkCreate and wrapHits to individual rule executors

* WIP create_security_rule_type_factory based on Marshall's work in #d3076ca54526ea0e61a9a99e1c1bce854806977e

* removes ruleStatusService from old rule executors, fixes executor unit tests

* fixes rebase

* Rename reference_rules to rule_types

* Fix type errors

* Fix type errors in base security rule factory

* Additional improvements to types and interfaces

* More type alignment

* Fix remaining type errors in query rule

* Add validation / inject lists plugin

* Formatting

* Improvements to typing

* Static typing on executors

* cleanup

* Hook up params for query/threshold rules... includes exceptionsList and daterange tuple

* Scaffolding for wrapHits and bulkCreate

* Add error handling / status reporting

* Fixup alert type state

* Begin threshold

* Begin work on threshold state

* Organize rule types

* Export base security rule types

* Fixup lifecycle static typing

* WrapHits / bulk changes

* Field mappings (partial)

* whoops

* Remove redundant params

* More flexibile implementation of bulkCreateFactory

* Add mappings

* Finish query rule

* Revert "Remove redundant params"

This reverts commit 87aff9c810.

* Revert "whoops"

This reverts commit a7771bd392.

* Fixup return types

* Use alertWithPersistence

* Fix import

* End-to-end rule mostly working

* Fix bulkCreate

* Bug fixes

* Bug fixes and mapping changes

* Fix indexing

* cleanup

* Fix type errors

* Test fixes

* Fix query tests

* cleanup / rename kibana.rac to kibana

* Remove eql/threshold (for now)

* Move technical fields to package

* Add indexAlias and buildRuleMessageFactory

* imports

* type errors

* Change 'kibana.rac.*' to 'kibana.*'

* Fix lifecycle tests

* Single alert instance

* fix import

* Fix type error

* Fix more type errors

* Fix query rule type test

* revert to previous ts-expect-error

* type errors again

* types / linting

* General readability improvements

* Add invariant function from Dmitrii's branch

* Use invariant and constants

* Improvements to field mappings

* More test failure fixes

* Add refresh param for bulk create

* Update more field refs

* Actually use refresh param

* cleanup

* test fixes

* changes to rule creation script

* Fix created signals count

* Use ruleId

* Updates to bulk indexing

* Mapping updates

* Cannot use 'strict' for dynamic setting

Co-authored-by: Marshall Main <marshall.main@elastic.co>
Co-authored-by: Ece Ozalp <ozale272@newschool.edu>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:48:07 -04:00
Marta Bondyra bcb16c1b86
[Lens] moving store loading to middleware (#106872) 2021-08-03 18:37:15 +02:00
Corey Robertson 91e64e0afa
Fix bug with expression reference extraction (#107309)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:30:36 -04:00
CJ Cenizal acb90020ff
Index Management ES JS client migration followup (#107463)
* Improve Index Management ts-expect-error annotations.
* Add steps for testing legacy index template mappings types to Index Management README.
* Rename component template API route handler files to follow pattern used elsewhere.
2021-08-03 09:16:59 -07:00
Byron Hulcher 1750ebb951
[App Search] Crawler Overview: Migrate Crawl Requests Table, Add Domains Table empty state (#107436)
* New CrawlRequest type

* Add crawlRequests value to CrawlerOverviewLogic

* New CrawlRequestsTable component

* Added CrawlRequestsTable to CrawlerOverview

* Hide the CrawlRequest table when there are no domains or crawl requests for an engine

* Add an empty state for CrawlerOverview when there are no domains

* Remove unused import

* Fix AddDomainLogic tests

* Apply suggestions from code review

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Fix capitalization

* Clarify test expectations

* Use noItemsMessage prop for CrawlRequestsTable empty state

* Refactor crawl requests logic

* Fix heading sizes

* Remove unused variable

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-08-03 12:16:39 -04:00
Patrick Mueller 76881a241d
[actions] change cloud icon usage for the customHostSettings connector settings (#107481)
Adds the cloud icon to `xpack.actions.customHostSettings[n].ssl.verificationMode` and removes it from `xpack.actions.customHostSettings[n].ssl.rejectUnauthorized`, in the actions configuration documentation.  The doc was written before `verificationMode` was added and `rejectUnauthorized` was deprecated.
2021-08-03 12:06:45 -04:00
Kyle Pollich 3555e74dc0
[Fleet] Remove references to legacy Elasticsearch types (#107519)
* Remove references to legacy elasticsearch types

* Fix types

* Fix more types
2021-08-03 11:58:20 -04:00
Stacey Gammon 899a6f3f11
Fix the API docs bug, where optional functions on interfaces were losing their children. (#107236)
* Fix the bug and update tests

* update api docs

* Fix tests
2021-08-03 11:58:03 -04:00
Spencer 3d8a2cfcf1
[cli-dev-mode] get values from completed state subjects (#107428)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 08:37:10 -07:00
Mark Hopkin 48a97f6d18
[Fleet] Agent policy search, support simple text filter. (#107306)
* feat: fall back to simple search on parse error

* fix: simplify query

* lint: fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 16:16:17 +01:00
Ravi Kesarwani 5cd7358834
Update SM doc for alert per object (#107420)
Update stack monitoring doc to account for alert notification now being send for each node, index, or cluster based on the rule type, instead of always per cluster (PR# 102544)
2021-08-03 10:30:55 -04:00
Joey F. Poon 14f66b54e0
[Security Solution] add transform failed warning banner on endpoints … (#107248) 2021-08-03 09:15:55 -05:00
Nathan L Smith b1a0c7dd93
Jest and Storybook fixes for observability plugin (#106255)
* Get rid of all the Jest console warnings
* Make sure none of the observability storybook pages throw errors (whether they all work correctly or are useful is another matter, but they all load now.)
2021-08-03 09:15:36 -05:00
Ahmad Bamieh 6d145c807c
[l10n] remove a couple of unused translations (#106977)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 17:04:16 +03:00
Aleh Zasypkin ed28155165
Implement interactiveSetup plugin server side functionality: setup layout (#105222) 2021-08-03 15:52:11 +02:00
Yuliia Naumenko ff2a5a8566
[Actions] Fixed broken link for ServiceNow docs (#107480) 2021-08-03 06:44:25 -07:00
Stratoula Kalafateli e3572e306b
[Visualizations] Fixes the wrong desciption of the kibana.json file (#107503) 2021-08-03 16:42:57 +03:00
Dmitry Shevchenko fddd9d7992
Implement RuleExecutionLog (#103463) 2021-08-03 15:25:26 +02:00
Andrew Kroh 4b4525ab05
[Fleet] Remove subseconds from event.ingested (#104044)
The `event.ingested` field is added to all documents ingested via
Fleet plus Agent. By removing the subseconds we can be better compression
of the values in Elasticsearch.

The primary user of `event.ingested` today is the the Security Detection Engine
as a tie-breaker in search_after, but once it moves to the using the
point-in-time API the need for precision will be lessened because PIT has
an implicit tie-breaker.

Relates #103944
Relates https://github.com/elastic/beats/issues/22388

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 08:47:50 -04:00
Tiago Costa 11c32c3de1
chore(NA): moving @kbn/i18n to babel transpiler (#107447) 2021-08-03 12:55:04 +01:00
Dario Gieselaar cee5bc6f41
[APM] Add throughput, error rate charts to backend detail page (#107379) 2021-08-03 12:36:20 +02:00
Dario Gieselaar 66b951c07c
[APM] Use 7.x compatible archive for API tests (#107367) 2021-08-03 06:29:06 -04:00
Vadim Kibana 0df0255bbf
Make url saved object in SO app clickable (#106646) 2021-08-03 12:03:42 +02:00