Commit graph

42281 commits

Author SHA1 Message Date
Tim Sullivan
5a6eda2b22
[Reporting] Kibana Application Privileges for Reporting (#94966)
* Implement Reporting features as subfeatures of applications

* add setting to the docker list

* update doc images

* finish docs

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* typo fix

* "PDF / PNG Reports" => "Reporting"

* Update x-pack/plugins/reporting/server/config/index.ts

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/test/functional/apps/security/secure_roles_perm.js

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* update ids of report privileges

* combine dashboard privileges into 1 group

* update jest snapshot

* fix tests

* fix tests

* updates from feedback

* add note

* update screenshot

* fix grammer

* fix bad link breaks in doc

* update doc heading

* Apply suggestions documentation feedback

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* simplify

* use const assertions

* Apply text change suggestion from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* more test for oss_features and reporting subFeatures

* reduce loc diff

* fix snapshot

* fix flakiness in licensing plugin public functional tests

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-20 20:44:24 -07:00
Ece Özalp
e39b8c6d36
[Security-Solution] Adds warning message for selected ML jobs not running, adds tooltip to combobox (#97764)
* [Security-Solution] Adds warning message for selected ML jobs not running, adds tooltip to combobox

* updates i18n

* update strings

* updates strings

* fixes i18n error
2021-04-20 23:08:02 -04:00
Nick Peihl
15ae3c0cd6
[Maps] Update to EMS v7.13 (#97732)
* Update to EMS 7.13

* Fix topojson typings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 19:10:55 -07:00
Andrea Del Rio
cd459b0b7b
Fix colors in Kibana overview page (#97741) 2021-04-20 16:51:18 -07:00
Angela Chuang
719fa69535
[SecuritySolution] remove files that are not in used (#97740)
* remove files that are not in used

* remove files that are not in used
2021-04-20 19:18:28 -04:00
Mike Côté
0507ac5da0
Create task to cleanup action execution failures (#96971)
* Initial commit

* Add tests and support for concurrency

* Ability to disable functionality, use bulk APIs

* Fix type check

* Fix jest tests

* Cleanup

* Cleanup pt2

* Add unit tests

* Fix type check

* Fixes

* Update test failures

* Split schedule between cleanup and idle

* Add functional tests

* Add one more test

* Cleanup repeated code

* Remove duplicate actions plugin requirement

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 19:11:25 -04:00
Zacqary Adam Xeper
82c425fd26
[Fleet] Fix 'Cannot read preconfigurationError of null' on setup (#97743) 2021-04-20 18:53:40 -04:00
Tyler Smalley
587d1d8f66 Revert "[7.13][Telemetry] Detection Rule Adoption (#95659)"
This reverts commit eee204ff26.
2021-04-20 15:49:09 -07:00
Cauê Marcondes
6b70784f67
[APM] Service overview: Instances table metadata foldout (#96467)
* shows instance details

* shows instance details

* shows instance details

* shows instance details

* shows instance details

* adding api test

* addressing PR comments

* addressing PR comments

* addressing PR comments

* addressing PR comments

* fixing ts issues

* fixing ci

* fixing api tests

* fixing api test

* fixing api test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 18:26:58 -04:00
gchaps
ef99b3345e
[DOCS] Fixes formatting in settings doc (#97761) 2021-04-20 15:23:49 -07:00
Kerry Gallagher
d49fbc9d1c
[Logs UI] Support runtime mappings in ML job configurations (#97627)
This PR adds our runtime mappings, as defined on the Kibana Index Pattern, to job configurations (both log rate and log categories). It also flags outdated runtime mappings in the "outdated configuration" callout.

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-04-20 23:51:10 +02:00
James Gowdy
088a618f92
[ML] Moving file data vizualizer to its own plugin (#96408)
* [ML] Moving file data vizualizer to file upload plugin

* removing maps plug dependency

* fixing imports

* small refactor

* adding missing endpoints

* fixing translations

* fxing table controls

* fixing types and disabling geo point test

* actually disabling geo point test

* making endpoints internal

* moving UI code to separate plugin

* enabling maps integration

* cleaning up dependencies

* fixing translation ids

* moving analyze file endpoint out of file upload plugin

* fixing transtations issues

* refactor for lazy loading of component

* updating limits

* updating plugin asciidoc

* code clean up

* further clean up

* adding comment

* fixing really obvious CI error

* removing commented out include

* reenabling geo point test

* fixing incorrectly changed import

* removing ml from labels and identifiers

* renaming function

* moving analyse file endpoint to file upload plugin

* reverting import path changes

* adding esUiShared back in

* fixing navigation tabs alignment in basic license

* adding key to tab wrapper

* reverting test label

* further removal of ml references

* removing ml label from more identifiers

* fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 22:17:22 +01:00
igoristic
f1d167de86
Kibana status more relevant (#97071)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 17:14:35 -04:00
Pete Hampton
eee204ff26
[7.13][Telemetry] Detection Rule Adoption (#95659)
* pushing initial experiments.

* Add name, version tags.

* Get alert count.

* Include rule type.

* Fetch cases count.

* Get all data sources working together.

* Stage work.

* Add detection adoption metrics.

* Add usage collector schema.

* Add usage collector schema.

* Update telemetry schema.

* Use let instead of const

* Fix spelling on array key.

* Update telemetry schema.

* Add unit tests.

* Fix type.

* Move types to index.

* Bug fix

* Update telemetry schema.

* Pass in signals index.

* Opps. Broke tests.

* Update.

* Fix types.

* Reflect @FrankHassanabad feedback in PR.

* Separate metric / usage telemetry code for complexity reduction.

* Add first e2e jest test.

* Add some additional tests for custom cases.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 21:58:36 +01:00
Sergey Kleyman
e5754d772f
[APM] Add agent central configuration for PHP agent (#97462)
* [APM] Add agent central configuration for PHP agent

* Fix failing test

* Fix "Check Types" test

* Undo changes to x-pack\plugins\apm\typings\es_schemas\ui\fields\agent.ts

* Undo changes to "x-pack\plugins\apm\common\agent_name.ts"

* Fix failing test

* updates telemetry mappings

* updates jest snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2021-04-20 23:49:56 +03:00
Alejandro Fernández Haro
a989c1fd20
[DOCS] server.shutdownTimeout (#97678) 2021-04-20 22:39:02 +02:00
Jen Huang
32ce42e79a
[Fleet] Show Fleet Server instructions when user wants to add another Fleet Server after the first (#97681)
* In add agent flyout, when selected policy contains fleet server, show same token and command steps from fleet server onboarding UI

* Fix types

* Move policy change handler to useCallback
2021-04-20 16:22:03 -04:00
Scotty Bollinger
216304b0bd
[Workplace Search] Add target _blank to search link (#97702) 2021-04-20 16:20:50 -04:00
Thomas Neirynck
d1361cae84
[Maps] Add telemetry (#97307) 2021-04-20 16:19:55 -04:00
Shahzad
5de8ee101d
[Exploratory view] use synthetics and rum indices settings (#97425) 2021-04-20 22:00:21 +02:00
Shahzad
df7ff908cb
[Exploratory view] Added ping histogram link (#97437)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 21:59:23 +02:00
Lisa Cawley
5c9dcf4a1d
[ML] Add tooltips in Anomalies table (#97350)
Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
2021-04-20 12:52:52 -07:00
Bryan Clement
f0c4014793
[Asset Management] Osquery agent picker tests/fixes. (#97580)
* general refactoring, tests, and fixes around host data munging

* fix kql, pull and display offline agents in search
2021-04-20 15:49:06 -04:00
Paul Tavares
32daafbdd3
[Security Solution][Endpoint] Improved retrieval of agents with no endpoint in the filter used by the metadata API (#97647)
* use agent policy id to filter out agents running endpoint
* Added endpoint policy revision number to the policy response flyout
2021-04-20 15:44:37 -04:00
Nathan Reese
0e5f12f82c
[Maps] show layer name in tooltip (#97175)
* [Maps] show layer name in tooltip

* update snapshot

* add jest test for Header

* add comment for clarity

* add header element and classes to truncate text

* add layer icon in tooltip header

* handle case where layer does not exist

* tslint and update jest test and snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 13:22:32 -06:00
Tiago Costa
660af0fec3
chore(NA): upgrades iBazel to v0.15.10 (#97489)
* chore(NA): upgrade into last ibazel version

* chore(NA): upgrade into latest ibazel version

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 20:20:59 +01:00
Devin W. Hurley
4d2414e7f5
[Security Solution] [Detections] Combine multiple timestamp searches into single request (#96078)
* merge multiple timestamp queries into one single search

* fix types and unit tests

* remove unused code for sending secondary search

* removes unused excludeDocsWithTimestampOverride

* adds integration tests to cover cases that should / should not generate signals when timestamp override is present in rule

* adds integration test to ensure unmapped sort fields do not break search after functionality of detection rules

* Need to figure out why moving the tests around fixed them...

* updates tests with new es archive data and fixes bug where exclusion filter was hardcoded to event.ingested :yikes:

* remove dead commented out code

* fixes typo in test file, removes redundant delete signals call in integration test, fixes logic for possibility of receving a null value in sort ids, removes unused utility function for checking valid sort ids

* a unit test for checking if an empty string of a sort id is present was failing because we moved the logic for checking that out of the build search query function and up into the big loop. So I moved that unit test into the search after bulk create test file.

* fix types

* removes isEmpty since it doesn't check for empty strings
2021-04-20 15:16:01 -04:00
Alejandro Fernández Gómez
f37492069a
[Fleet] Update text in Fleet Settings flyout / confirm modals (#97648)
* Remove "Global Output" heading from the flyout

* Tweak flyout description

* Tweak fleet server hosts input description

* Tweak ES hosts input description

* Tweak modal button

* Tweak confirmation modal callout title

* Tweak callout when fleet server hosts are modified

* Tweak callout when ES hosts are modified

* Fix i18n

* Remove period from title
2021-04-20 11:58:14 -07:00
Tiago Costa
016700908b
docs(NA): adds missing requirement to developing on windows (#97664) 2021-04-20 19:57:32 +01:00
igoristic
f3affd8bd4
[Monitoring] Added cgroup memory usage metric (#97076)
* Added cgroup memory usage metric

* Added memory usage and limit

* container_memory

* Fixed tests

* fixed instance tests

* fixed values

* skip failing test
2021-04-20 14:47:12 -04:00
Nicolas Chaulet
518a683ec4
[Fleet] Update fleet settings doc for Fleet Server (#97639) 2021-04-20 14:43:29 -04:00
James Gowdy
c1076414b6
[ML] Type updates after esclient type update (#95658)
* [ML] Type updates after esclient type update

* reverting expect errors

* fixing type errors

* tiny refactor

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 19:34:12 +01:00
Quynh Nguyen
9365ca84ef
[ML] Add annotation markers to the Anomaly Swimlane axis (#97202) 2021-04-20 13:33:53 -05:00
Matthias Wilhelm
597325c0de
[Discover] Fix wrong sort order with empty sort URL parameter (#97434)
Co-authored-by: Tim Roes <mail@timroes.de>
2021-04-20 20:29:47 +02:00
Matthew Kime
1b3851d58c
copy updates and snapshots (#97665) 2021-04-20 13:29:17 -05:00
Matthew Kime
9b7b7b8e72
Index patterns / scripted fields - convert sample data scripted fields to runtime fields (#97651)
* kibana_sample_data_logs scripted field to runtime field

* use runtime field instead of scripted field for flights sample data
2021-04-20 13:28:38 -05:00
Ross Wolf
8b20cbc3d8
[Security] Add telemetry for new protection types and arrays of objects (#97624)
* Add telemetry for new protection types and arrays of objects
* Add malware_signature to process.Ext + dll.Ext
* Fix comments for base fields
* Move naming convention disable to a line
* Fix unit test for rule.version
2021-04-20 14:25:21 -04:00
Greg Thompson
43850fae72
Update EUI i18n tokens (#97578)
* eui token updates

* outdated translations

* snapshot

* increase core limit

* limits

* clean up
2021-04-20 13:13:43 -05:00
Corey Robertson
e7a9b3348c
[Canvas] Function usage telemetry (#97638)
* Adds telemetry for recent function usage

* Adds description for telemetry fields

* Update Telemetry Schema

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 14:04:36 -04:00
Jen Huang
10e52bb582
[Fleet] Add instructions and generation of a service token for Fleet Server onboarding (#97585)
* Don't block standalone agent instructions when not using Fleet server yet

* Add service token instructions - UI only

* Add route for regenerating fleet server service token

* generate tokens instead of regenerate and add error catching and tests

* fix i18n typo

* i18n fix, add sudo, copy edits

* Fix commands

* Add missing test file

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 13:53:18 -04:00
Patryk Kopyciński
f0a05e8c81
[Asset management] Fix UI capabilities validation (#97663) 2021-04-20 13:42:02 -04:00
Felix Stürmer
a555338bdc
[Logs UI] Support runtime fields in the log threshold alert (#97603)
This enhances the log threshold alert executor to include the corresponding runtime mappings in the queries if the source is configured to use a KIP.
2021-04-20 19:39:54 +02:00
Dominique Clarke
a4d35601b5
[Uptime] Add Custom Fleet Integration UI (#91584)
Register Synthetics integration package override to provide custom integration ui
2021-04-20 13:33:46 -04:00
Ahmad Bamieh
285178e704
[Usage collection] mark autocomplete duration configs as safe (#97659) 2021-04-20 13:26:26 -04:00
Dominique Clarke
1981be081f
[Uptime] condense waterfall chart visuals (#96914)
* condense waterfall chart visuals

* adjust font size of waterfall chart items to medium

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 13:25:07 -04:00
Dominique Clarke
00c797320d
[Uptime] Monitor Details - add Beta disclaimer to Uptime monitor details title (#96886)
* add Beta disclaimer to Uptime synthetics monitor details title

* update beta disclaimer to use EUIBadge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 13:24:20 -04:00
Lisa Cawley
d7c6e2762e
[ML] Add tooltips for actual and typical in anomalies table (#97549) 2021-04-20 10:22:59 -07:00
Spencer
39894c58bc
[cliDevMode] set server ready status to false when restarting (#97575)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-20 10:19:58 -07:00
Ryland Herrick
538a6c0eb4
[Security Solution][Detections]Update detection alert mappings to ECS 1.9 (#97573)
* adds snapshot test for getSignalsTemplate

* [CTI] Extracts non-ecs, non-signal mappings to separate file

* adds updated ECS mappings

* Normalize/clean up various mappings files

* Adds a wrapping "mappings.properties" around our extra mappings
* Spreads our other mappings similarly to ECS mappings
* Moves dynamic: false out of ECS mappings and into our main template
* Ensures we include 'threat.properties.indicator', since that's where
  our 'type: nested' declaration resides

* Update ECS mappings snapshot post-1.9 updates

This updated snapshot reflects the mappings changes that one will receive when
migrating/rolling over to a 7.13 alerts index.

* Update signals template version as per guidelines.

The last released mappings update was #92928, which bumped from 24 ->
25. The few unreleased updates since then have increased this by 1, but
since these changes are going out with 7.13 we are bumping by 10 _since
the last release_, in order to give "room" for minor releases.

* Fix cypress test failure due to updated mappings

This magic number represents "the number of mapped fields that begin
with 'host.geo.c' and, because this PR adds a mapping for
host.geo.continent_code, the test needed to be updated.

Co-authored-by: Ece Ozalp <ozale272@newschool.edu>
2021-04-20 12:15:07 -05:00
Ross Wolf
1925cea9a2
[Security][Fleet] Install the security_detection_engine package automatically (#97191)
* Automatically install the security_detection_engine package via fleet
* Update dockerImage to include the security_detection_engine package
* Update api/fleet/setup install test
* Update test data for Endpoint package
* Fix JSON token
* Update firis json entry in destination_index
* Update destination_index structure
* Update destination_index structure
* Change KQL query to unblock testing
* Restore KQL and fix JSON instead
* update timestamps to pass tests
2021-04-20 13:07:11 -04:00