Commit graph

44265 commits

Author SHA1 Message Date
Tim Roes
1d02a0d6c1
Fix telemetry advanced setting style (#103838) 2021-06-30 13:37:16 +02:00
Dima Arnautov
a63084b8de
[Transform] Fix default naming and sorting fields suggestion for top_metrics agg (#103690)
* [ML] remove advanced settings

* [ML] fix getUpdatedItem for switching to single field agg

* [ML] incremental naming for top aggs

* [ML] set default sorting field based on date type

* [ML] set desc order by default

* [ML] fix TS

* [ML] change sorting direction init
2021-06-30 12:52:47 +02:00
Dario Gieselaar
8cf6e00b1b
[APM] use conventional error rate color for correlations (#103500) 2021-06-30 12:30:35 +02:00
Pete Hampton
eca1460f62
Endpoint Telemetry: Agents Metrics + Policy Config / Response (#102171)
* [PH] Initial setup for endpoint task telemetry.

* Refactor / Add daily task for collecting fleet detail / policy resp / EP metrics

* [PH CD] Code walkthrough. Start fetching fleet policy configs.

* [PH] pass in fleet agent service rather than homebrew kuerys.

* [PH] prepare to move away from legacy es client. Get fleet ep agents.

* Fetch agent policy configs.

* Stub ep policy responses.

* Fix CI + Types. Fix dep injection. Reimagine SO client creation.

* Create SO client properly

* Fetch EP Policy responses.

* Fetch EP Policy responses.

* Remove unused import

* Fetch failed policy responses from EP data stream.

* Remove unused imports.

* Combine failed policy responses with policy configs.

* Attach fleet agent + ep agent ids

* Add dedicated channel sender. Temp disable with feature flag.

* Remove ublock from the failed policy response.

* Fetch endpoint metrics.

* Fix bad merge commit.

* Get EP telemetry.

* Record last execution time of endpoint task

* Remove send on demand feature flag.

* Simplify cache conditional.

* Refactor into Promise.allSettled

* Fix type error.

* Bail if there is no endpoint metrics

* Bump interval to 24h.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-30 05:33:50 -04:00
Yuliia Naumenko
7b8645e0fc
[Alerting] Fixed search results are not updated when search term is removed on Rules and Connectors page (#103663) 2021-06-30 02:17:07 -07:00
Shahzad
1a6cb4634d
fix too many rernders (#103672) 2021-06-30 11:05:48 +02:00
Søren Louv-Jansen
4aca0b7b61
[APM] Add “Analyze Data” button (#103485)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2021-06-30 10:20:31 +02:00
Marco Liberati
21858a570d
[Lens] Fix value popover spacing (#103081)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-30 10:06:38 +02:00
Alexey Antonov
790bd35ea7
[TSVB] Fix TSVB is not reporting all categories of Elasticsearch error (#102926)
* [TSVB] Fix TSVB is not reporting all categories of Elasticsearch error

Closes: #94182

* move validation to server side

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-30 10:54:06 +03:00
Lisa Cawley
b92d955b56
[SECURITY] Adds security links to doc link service (#102676) 2021-06-30 00:27:58 -07:00
renovate[bot]
345b9382b1
Update dependency @elastic/charts to v31 (#102078)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 09:11:31 +02:00
Ryland Herrick
569c209f2c
[Security Solution][CTI] Investigation time enrichment UI (#103383)
* Add pure fn and consuming hook to fetch event enrichment

It's not being invoked yet, but I've added a placeholder where it's
going.

* Move existing enrichment tests to new spec file

This is a rough copy/paste, I'll clean up as I flesh out the new tests.

* Move test constants into tests that use them

* style: declare FC function as an FC

* Extract some inline parsing logic into a helper function

And test it!

* Solidifying enrichment types on the backend

* Declares an enum for our types
* Sets type during indicator match rule enrichment
* Sets type during investigation-time enrichment

* WIP: Enrichment rows are rendered on the alerts summary

There are lots of TODOs here, but this implements the following:

* Fetching investigation-time enrichments from the backend
* Parsing existing enrichments from timeline data
* Merging the two enrichment types together, and rendering them in rows
  as specified

Much of the data-fetching is hardcoded, and this broke the existing
pattern with SummaryView/SummaryRow so that got a little messy; I may
end up just using my own EuiTable but we'll see.

Threat Intel tab is currently broken; that's up next.

* Updates ThreatDetailsView to accept an array of enrichments

The investigation-time enrichments are a little messy because they
contain all the non-ECS fields that indicators contain; other than that,
this is looking good.

Still need to add the new header, and potentially sort the fields.

* Sort our details fields

This promotes sanity for the user.

* Add "view threat intel data" button

This simply opens the threat intel tab.

* Implement header for threat details sections

* Add a basic jest "unit" test around ThreatSummaryView

* Fix remaining tests for components we modified

This also addresses a bug where we were not properly sorting new
enrichments by first_seen; this is covered under the tests that were
fixed.

* Filter out duplicate investigation-time enrichments

Because the enrichment endpoint is dumb and doesn't know about the
existing event or its enrichments, we need to merge these together on
the client to reduce noise and redundant data.

* Add inspect button to investigation enrichments

* Massages the response into the format that the inspect component uses
* Moves stateful fetching of query and persisting in redux to new, more
  specialized hook
* Moves existing enrichment hook to a more suitable location in
  containers/

* Fix failing unit tests

* indicator match rule now specifies `matched.type` as coming from the
  rule
* Inspecting the enrichment query requires use of the redux store, which
  was not previously mocked

* Fix existing CTI cypress tests

This covers the basics of the Alert Summary and Threat Intel tabs; the
investigation-time enrichment functionality is up next.

* Adds a cypress test exercising investigation time enrichment

* Loads more indicators (filebeat data, `threat_indicator2` archive)
  AFTER the rule has executed
* Asserts that those indicators are also found on the alert summary.

* Populate event enrichment call with actual alert fields

This was previously hardcoded during development.

* Add a new field to our suspicious event to trigger enrichment

The existing myhash field will generate an alert due to the way the rule
is written, but the alert had no other fields that would match the
investigation time enrichment. This gives it a source.ip, and updates
the indicator to match.

* Only fetch enrichments data if there are valid event fields

If none of the alert's fields would be relevant to the enrichment query,
then we don't make the request at all.

* Update enrichments matched.typed in integration tests

This field was updated to reflect the source of the match, in this case:
indicator match rules.

* Ensure draggable fields are unique in a multi-match scenario

If a given field matched multiple indicators, then the previous
contextId was not unique as it was based on field/value that matched.
Adding provider to the mix would fix it, except that we're not
guaranteed to have a provider.

I've added both provider (if present) and an index value to the key to
ensure that it's unique.

* Simplify types

This field can never be null, as we always set it in our response.

* Move helper functioons out of shared location and into consuming component

These are unlikely to be used elsewhere.

* Clean up data parsing logic using reduce

This obviates the need for our filter/guard function and the extra loop
that it entails. We have to specify the return value of our reduce fn,
however, but that's mostly equivalent to our type guard.

* Move our general function into a general location

* Extract the concept of "enrichment identifiers"

This was already partially codified with 'buildEnrichmentId,' which is
used to dedup enrichments; this extends the idea to all fields that
could uniquely identify a given indicator.

* Use existing constant as the source of our enrichments query

This is now used by both the overview card and the enrichment query.

* Codify our default enrichment lookback as constants

* Remove unnecessary flexbox

The generic SummaryView component previously had to deal with
multi-valued CTI fields, representing the multiple values coming from
the multiple nested objects with that field.

However, with the new UI we no longer have that constraint, and so the
default columnar style, and the corresponding overriding styles, are no
longer necessary.

* Filter out partial responses in the event enrichment observable

The UI does not currently handle these. We need to test the behavior of
long-running queries with this filter, but this should simplify the
behavior to complete/error until we handle partial responses.

* Display placeholders while event enrichment is loading

Displays a loading spinner in the Threat Intel tab title, and some
loading lines where the enrichments summary is.

* Update our indicator data to be within the last 30 days

This fixes our cypress test, but it's going to start failing again in 30
days. However, by that time I'll have implemented the absolute data
picker, which will allow for a more comprehensive test in addition to us
sidestepping this issue.

* Fix type error with our details tabs

The name prop on a Tab will be rendered as a node, so both strings and
elements are acceptable. This relaxes the types to inherit from the
component itself.

* Fix failing jest tests

The addition of our filtering of the search observable broke this test,
since we now need to implement the search observable.

Rather than do that, we'll instead mock our local hook as that's more
likely to change.
2021-06-30 01:16:24 -04:00
Lisa Cawley
0fb21c49b9
Adds ECS guide to doc links service (#102246) 2021-06-29 21:47:38 -07:00
Mat Schaffer
0324a06bd9
Update format_number time test for APJ timezones (#102691)
* Update format_number test for APJ timezones

* Switch asertion to optional leading 1

* Allow leading 1 or 2

In EMEA timezones H:mm:ss can return 20:42:17

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-30 13:16:13 +09:00
Tiago Costa
5f35d23416
chore(NA): moving @kbn/es-archiver into bazel (#103770) 2021-06-29 23:33:02 -04:00
Clint Andrew Hall
9a3a359c69
[canvas] Restore Workpad Title/button to Home; fix mounting behavior (#103601) 2021-06-29 23:28:08 -04:00
Melissa Alvarez
d809f48c60
[ML] Anomaly Detection: add ability to clear warning notification from jobs list (#103608)
* wip: adds clear messages endpoint

* wip: clear messages and index new message for clearing

* remove icon from jobs list on clear

* remove unnecessary comments and fix typo

* ensure clear messages has correct permissions

* use cleaner ml context and add type

* only show clear button with canCreateJob and if warning icon in table

* fix types for job message pane

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 23:17:12 -04:00
Joey F. Poon
699731f25e
[Security Solution] throttle package calls on initial security page load (#103570)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 23:05:30 -04:00
Catherine Liu
428eba425d
[Canvas] Removes link from workpad breadcrumb (#103793)
* Removes link from workpad title breadcrumb

* Fixed ts error
2021-06-29 19:52:02 -07:00
Clint Andrew Hall
bf54eec22b
[labs] Update Labs Status (#103603)
* [labs] Update Labs Status

* Fix translations

* Supply IntersectionObserver mock

* Set defer fold project to not enabled by default

* Update copy for labs flyout
2021-06-29 22:36:13 -04:00
Clint Andrew Hall
b7ad0c9004
[storybook] Ignore TS-related HMR warnings (#103605)
* [storybook] Ignore TS-related HMR warnings

* Fix casing

* Remove warnings filter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 22:34:50 -04:00
Ece Özalp
ba5d5cf441
fixes diffing on AlertsUtilityBar (#103746) 2021-06-29 21:28:44 -04:00
Jonathan Budzenski
bed5b6d8f2
[packages] Migrate @kbn/test to Bazel (#103122)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 21:16:00 -04:00
Kevin Qualters
ff475164ed
Skip flaky cypress timeline test (#103779)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 21:11:58 -04:00
Vadim Yakhin
712ab004c5
Port PR 3746 from ent-search (#103765)
* Port the changes as is with no modifications

* Fix accessibility errors

* Rename variable

* Fix Stylelint issues and remove unused CSS

* Extract getAsLocalDatetimeString as a util function and use it everywhere

* Update backend schema

Also replace schema.maybe with schema.nullable. Previously assigning
"Leave unassigned" value to subtitle and description caused a server error,
because we were receiving null for these values that server did not expect.

* Update exampleResult mock

* Add tests for DisplaySettingsLogic

* Add tests for ExampleSearchResultGroup

* Add tests for ExampleStandoutResult

* Add tests for SearchResults

* Add missed null fallback type
2021-06-29 21:11:09 -04:00
debadair
71a57454c7
[DOCS] Update xrefs to units sections in the ES guide (#103809) 2021-06-29 18:03:36 -07:00
Caroline Horn
7d45fcf8ee
[Page layouts] Some light fixes (#103197)
* [Solution Toolbar] Fixing button border on non-text color versions

* [Alerts] Removed extra wrappers and use EuiPageHeader

* [Logstash] Basic conversion to template

* [Reporting] Adding bottomBorder to page header

* [ML] Fix display of main navigation tabs

* [Stack Management] Fix side nav not updating when going back to landing page

* [Tags] Add spacing after page header

* [License Management] Full width on file uploader

* [Page Template] Fixed `emptyState` default template for pages with side nav

* [Infra] Removing some page header displays in empty states

* [Enterprise Search] Fix some error layouts

* [Index Patterns] Quick fix for empty state

* snaps

* [Page Template] Remove forced padding when `centeredBody`

* small hack for tab padding for ml

* scroll ML page to fix test

* fix test method type signature

Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
2021-06-29 19:50:15 -05:00
Paul Tavares
37e2d8a6c5
[Security Solution][Hosts] Fix Host Events flyout and remove the Endpoint Host Isolation Take Action button (only valid for Alerts) (#103784)
* Fix bug in `endpointAlertCheck` to ensure events are not looked at

* Fix data/type
2021-06-29 20:43:13 -04:00
Sandra Gonzales
0de3df5f0d
[Monitoring] Fix Cluster Listing view (#103718)
* check for number of nodes

* remove console

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 20:42:37 -04:00
debadair
a22f08750b
[DOCS] Updated xref to ES guide (#103803) 2021-06-29 17:36:09 -07:00
Justin Ibarra
26407550da
[Detection Rules] Add 7.14 rules (#103730) 2021-06-29 20:24:35 -04:00
Frank Hassanabad
e7e1e3c1f9
Small follow up to PR comments (#103771)
## Summary

Small follow up to:
https://github.com/elastic/kibana/pull/102280

Where I address PR concerns around docs.
2021-06-29 20:14:36 -04:00
Alison Goryachev
57a91215f3
fix error handling for repositories API (#103723) 2021-06-29 17:13:31 -07:00
Chris Cowan
25db1df1a3
[Monitoring] Migrated legacy Elasticsearch client for 8.0 (#101850) 2021-06-29 17:07:56 -07:00
Davis Plumlee
fee7348806
[Security Solution][Exceptions Lists] Adds overflow container for exceptions list table (#103377) 2021-06-29 20:02:38 -04:00
Kevin Logan
1ff2407b18
[Security Solution] Adds a version and OS check for Host Isolation (#103026) 2021-06-29 19:46:19 -04:00
Candace Park
e749fa62fa
[Security Solution][Endpoint][Host Isolation][Cases] Update Host Isolation comment in Cases UI (#102937) 2021-06-29 19:42:38 -04:00
Nathan L Smith
f039f8311f
Deprecate APM OSS fleetMode setting (#103721)
This has been enabled by default, and there isn't any remaining reason to turn it off.

Mark it as deprecated and remove conditionals that check for it.
2021-06-29 18:41:17 -05:00
Elizabet Oliveira
61d23665a9
[Maps] Add layer disabled button styles (#103775) 2021-06-30 00:32:55 +01:00
Jonathan Budzenski
7359fabf7c
[build] Remove OSS builds (#103685) 2021-06-29 18:17:51 -05:00
Lukas Olson
ebf9e5df76
Use new terms enum API for autocomplete value suggestions (#100174)
* Migrate kibana.autocomplete config to data plugin

* Fix CI

* Fix tests

* Use new terms enum API for autocomplete value suggestions

* Add tiers to config

* Re-introduce terms agg and add config/tests for swapping algorithms

* Add data_content and data_cold tiers by default

* Fix types

* Fix maps test

* Update tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 14:36:18 -07:00
Michael Marcialis
b9bbfa3695
[Lens] Formula Icon, Button, Height Design Update (#103682)
* apply `fullScreenEdit` icon; fix docs button size

* fix small viewport height flex issue
2021-06-29 16:41:45 -04:00
Tiago Costa
682d969190
chore(NA): remove unused transient dep declaration from @kbn/ui-shared-deps build file (#103666) 2021-06-29 21:22:45 +01:00
Ece Özalp
fa92958c74
adds hasBorder to ThreatIntelPanelView (#103726) 2021-06-29 16:21:18 -04:00
Ashokaditya
fea63a2d36
[Security Solution][Endpoint] Include actions and responses for endpoints only (#103159) 2021-06-29 16:08:15 -04:00
James Gowdy
21dad7edb5
[ML] Update file data visualizer permissions (#101169)
* [ML] Update file data visualizer permissions

* adding home bundle

* fixing translations

* removing home from bundles

* switching to current user for analysis

* adding find structure permission check

* clean up

* updating text

* updating maps

* removing has_find_file_structure_permission endpoint

* removing more code

* adding permission error message

* renaming variable

* adding fileUpload:analyzeFile back into ML

* updating error text

* updating snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 21:07:07 +01:00
Steph Milovic
c24318ae40
[RAC] [Cases] All cases table column design updates (#103544) 2021-06-29 13:53:56 -06:00
Devon Thomson
a5660fe82c
Fix Listing Page Layout Inconsistencies (#103182)
* Added dashboard no items message to dashboard_strings, wrote new message for read only empty state. Moved visualize library dashboard callout under title
2021-06-29 15:46:18 -04:00
Dario Gieselaar
e8584e533b
[APM] Filter on defined environment for latency charts (#103621)
Closes #102047.
2021-06-29 21:45:51 +02:00
Zacqary Adam Xeper
99914bcf46
[Fleet] Make top-level fields of is_managed policies editable through config (#103722) 2021-06-29 15:43:16 -04:00