Commit graph

43259 commits

Author SHA1 Message Date
Stacey Gammon 7111bcf5f4
Fix the API docs bug, where optional functions on interfaces were losing their children. (#107236) (#107905)
* Fix the bug and update tests

* update api docs

* Fix tests
# Conflicts:
#	api_docs/charts.mdx
#	api_docs/data.json
#	api_docs/data.mdx
#	api_docs/data_autocomplete.mdx
#	api_docs/data_field_formats.mdx
#	api_docs/data_index_patterns.mdx
#	api_docs/data_query.mdx
#	api_docs/data_search.json
#	api_docs/data_search.mdx
#	api_docs/data_ui.mdx
#	api_docs/deprecations_by_api.mdx
#	api_docs/deprecations_by_plugin.mdx
#	api_docs/es_ui_shared.mdx
#	api_docs/fleet.mdx
#	api_docs/reporting.json
#	api_docs/rule_registry.mdx
#	api_docs/security_solution.json
#	api_docs/security_solution.mdx
#	api_docs/timelines.json
#	api_docs/timelines.mdx
#	api_docs/visualizations.mdx
2021-08-09 12:51:00 -04:00
Kibana Machine 653ace7654
Remove ui-library (#107533) (#107903)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-08-09 12:50:38 -04:00
Kibana Machine 5a62b60027
filter FilterBar suggestions by time (according to flag) (#107192) (#107897)
* filter filter bar suggestions by time (according to flag)
add api integration tests for autocomplete apis

* test fix: setDefaultAbsoluteRange

* timeRangeForSuggestionsOverride

* revert

* tests

* doc

* set time range

* Added tests following code review

* eslint

* fun-ctional tests

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-08-09 12:18:56 -04:00
Matthew Kime 3717f0d47d
[7.x] [index patterns] index pattern create modal (#101853) (#107823)
* [index patterns] index pattern create modal (#101853)

index pattern creation flyout

* update docs

* update limits

* Update limits.yml

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 12:02:25 -04:00
Kibana Machine f955b2a077
[Security Solution] Move endpointdetails into its own middleware function (#107632) (#107891)
Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-08-09 11:44:13 -04:00
Kibana Machine 81e91415fc
[Observability RAC] change alerts table filter text box placeholder (#107366) (#107884)
* 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>

Co-authored-by: mgiota <giota85@gmail.com>
2021-08-09 14:26:34 +00:00
Josh Dover 7b0c605018
Move src/core/TESTING.md to mdx (#107039) (#107886)
* Move src/core/TESTING.md to mdx

* PR comments

* Fix conventions link

* Fix FTR api config link
# Conflicts:
#	src/core/TESTING.md
2021-08-09 10:25:36 -04:00
Yulia Čech 06ebe370b0
[ILM] Refactored policies list to use EuiInMemoryTable (#107510) (#107883)
* [ILM] Created policy list context

* [ILM] Created policy action component

* [ILM] Fixed i18n errors

* [ILM] Implemented code review suggestion

* [ILM] Fixed a11y tests

* [ILM] Updated the test description

* [ILM] Renamed policy table components

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 10:24:54 -04:00
Kibana Machine e9ef889a36
Fix search sessions management UI displays wrong warning (#107556) (#107880)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-08-09 10:04:11 -04:00
Kibana Machine d8508db697
[Security Solution] Adds behavior protection support for mac and linux (#107749) (#107878)
* Add behaviour-protection-for-mac-and-linux

* Display the correct os names in the OS section

* Fix policy config returning windows values

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-08-09 09:31:50 -04:00
Kibana Machine d76e657807
[Security solution][Endpoint] Refactor of event filters form test in order to use context provider. (#107725) (#107874)
* 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

* Refactor event filters form test to use context provider

* Fix ts checks

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

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-08-09 08:37:12 -04:00
Kibana Machine 693eb72e0c
update linting doc (#105748) (#107866)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-08-09 03:51:14 -04:00
Liza Katz 272a2af379
[7.x] [Data] Cleanup filter docs (#107169) (#107834)
* 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)

* [Data] Cleanup filter docs (#107169)

* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* fixes

* casting

* Code review

* Update meta_filter.ts

* fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md
#	src/plugins/data/public/public.api.md

* doc

Co-authored-by: Ravi Kesarwani <64450378+ravikesarwani@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-07 14:48:17 -04:00
Kibana Machine 575993de5f
[APM] Various improvements from #104851 (#107726) (#107851)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-08-07 09:50:16 -04:00
Kibana Machine 3222a50eba
Update dependency @elastic/charts to v33.2.0 (master) (#107842) (#107845)
* Update dependency @elastic/charts to v33.2.0

* update jest snapshot

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2021-08-06 22:27:06 -04:00
Zacqary Adam Xeper 92dadb5f00
[Metrics UI] Add checkbox to optionally drop partial buckets (#107676) (#107819)
# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_alert.ts
2021-08-06 18:47:37 -04:00
Zacqary Adam Xeper 814cd7d03e
[Metrics UI] Correct inaccurate offsetting for non-rate aggregations inside of metrics threshold alerts (#106947) (#107821)
* Don't skip last bucket for most aggs

* Allow alerting on partial buckets for certain aggs

* Fix test, PR feedback, and some comments

* Remove all offset logic for date_range aggs

* Remove code comment

* Add delivery delay

* Fix the date range for query

* Add TODO

Co-authored-by: Phillip Burch <phillip.burch@live.com>
2021-08-06 12:25:12 -04:00
Kibana Machine e784eadcd9
Fix default route link on kibana homepage (#107809) (#107833)
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-08-06 15:53:21 +00:00
Madison Caldwell c172563e93
[Security Solution][RAC] Flatten alert fields (#107581) (#107832)
* incremental changes

* No more type errors

* Type guards

* Begin adding tests

* Flatten

* Reduce scope of branch

* Remove extraneous argument to filter_duplicate_signals
2021-08-06 11:52:21 -04:00
Kibana Machine 44c1d99a8f
[APM] Invalidate trackPageview on route change (#107741) (#107828)
Closes #107728.

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-08-06 09:26:31 -04:00
Alejandro Fernández Haro 209b062454
[7.x] Disable Product check in @elastic/elasticsearch-js (#107642) (#107825)
* Disable Product check in @elastic/elasticsearch-js (#107642)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	yarn.lock

* Bump @elastic/elasticsearch-js version
2021-08-06 06:56:56 -04:00
Kibana Machine bbf4e28a8a
Service map backend links (#107317) (#107824)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-08-06 04:40:56 -04:00
Kibana Machine b1117dce3c
[RAC] integrating rbac search strategy with alert table (#107242) (#107822)
### Summary

We are integrating alert search strategy with RBAC on top of alert tables for security solution and o11y.

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-08-05 23:31:47 -04:00
Zacqary Adam Xeper 1743212b9a
[7.x] [Metrics UI] Fix metric threshold preview regression (#107674) (#107814)
* [Metrics UI] Fix metric threshold preview regression (#107674)

# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_alert.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts

* Fix bad merge
2021-08-05 21:12:49 -05:00
Marshall Main d089b3c421
[Security Solution] Siem signals -> alerts as data field and index aliases (#106049) (#107817)
* Add aliases mapping signal fields to alerts as data fields

* Add aliases mapping alerts as data fields to signal fields

* Replace siem signals templates per space and add AAD index aliases to siem signals indices

* Remove first version of new mapping json file

* Convert existing legacy siem-signals templates to new ES templates

* Catch 404 if siem signals templates were already updated

* Enhance error message when index exists but is not write index for alias

* Check if alias write index exists before creating new write index

* More robust write target creation logic

* Add RBAC required fields for AAD to siem signals indices

* Fix index name in index mapping update

* Throw errors if bulk retry fails or existing indices are not writeable

* Add new template to routes even without experimental rule registry flag enabled

* Check template version before updating template

* First pass at modifying routes to handle inserting field aliases

* Always insert field aliases when create_index_route is called

* Update snapshot test

* Remove template update logic from plugin setup

* Use aliases_version field to detect if aliases need update

* Fix bugs

* oops update snapshot

* Use internal user for PUT alias to fix perms issue

* Update comment

* Disable new resource creation if ruleRegistryEnabled

* Only attempt to add aliases if siem-signals index already exists

* Fix types, add aliases to aad indices, use package field names

* Undo adding aliases to AAD indices

* Remove unused import

* Update test and snapshot oops

* Filter out kibana.* fields from generated signals

* Update cypress test to account for new fields in table

* Properly handle space ids with dashes in them

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/ccs_integration/detection_alerts/alerts_details.spec.ts
#	x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts
2021-08-05 20:51:59 -04:00
Kibana Machine 3520109660
[App Search] Migrate Crawler Status Indicator, Crawler Status Banner, and Crawl Request polling (#107603) (#107810)
Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
2021-08-05 18:12:43 -04:00
Kibana Machine c33dc8d0db
[Security Solution, Lists] Replace legacy imports from 'elasticsearch' package (#107226) (#107808)
* Remove legacy imports from 'elasticsearch' package

This prefers the newer types from '@elastic/elasticsearch'.

There was one instance where mock data was insufficient to satisfy the
newer analogous types; in all other cases this was just a find/replace.

* Fix type errors with a null guard

We know that this mock has hits with _source values, but we cannot
convey this to typescript as null assertions are disabled within this
project. This seems like the next best solution, preferable to a
@ts-expect-error.

* Fix a few more type errors

* Replace legacy type imports in integration tests

* refactors destructuring due to _source being properly declared as
  conditional

* Update more integration tests to account for our optional _source

Changes here fall into one of two categories:

* If the test was making an assertion on a value from _source, we simply
null chain and continue to assert on a possibly undefined value.

* If the test logic depends on _source being present, we first assert that
presence, and exit the test early if absent.

* Fix more type errors

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

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2021-08-05 18:07:29 -04:00
Ahmad Bamieh cfae29aeed
[Telemetry] Add telemetry.sendUsageTo config (#107396) (#107805) 2021-08-05 17:43:13 -04:00
Kibana Machine 34906a6f59
[RAC] [TGrid] Implements cell actions in the TGrid (#107771) (#107798)
## Summary

This PR implements cell actions in the `TGrid`, rendering them via `EuiDataGrid`, per the `Before` and `After` screenshots below:

### Before

Users previously hovered over a draggable field to view and trigger cell actions:

<img width="1348" alt="legacy_cell_actions" src="https://user-images.githubusercontent.com/4459398/128351498-49b4d224-6c51-4293-b14f-46bbb58f7cb3.png">

_Above: legacy `TGrid` cell action rendering_

### After

Cell actions are now rendered via `EuiDataGrid` cell actions:

<img width="997" alt="euidatagrid_cell_actions" src="https://user-images.githubusercontent.com/4459398/128358847-c5540ea4-8ba1-4b35-ab6b-3b3e39ae54ce.png">

_Above: new `TGrid` cell action rendering via `EuiDataGrid`_

## Technical Details

Every instance of the `TGrid` on a page can specify its own set of cell actions via `defaultCellActions` when calling the `timelines.getTGrid()` function to create an instance.

For example, the Observability Alerts `TGrid` is initialized in with a default set of actions in `x-pack/plugins/observability/public/pages/alerts/alerts_table_t_grid.tsx`, as shown in the code below:

```ts
      {timelines.getTGrid<'standalone'>({
        type: 'standalone',
        columns,
        deletedEventIds: [],
        defaultCellActions: getDefaultCellActions({ enableFilterActions: false }), // <-- defaultCellActions
        // ...
    </>
```

The type of the `defaultCellActions` is:

```ts
defaultCellActions?: TGridCellAction[];
```

and the definition of `TGridCellAction` is in `x-pack/plugins/timelines/common/types/timeline/columns/index.tsx`:

```ts
/**
 * A `TGridCellAction` function accepts `data`, where each row of data is
 * represented as a `TimelineNonEcsData[]`. For example, `data[0]` would
 * contain a `TimelineNonEcsData[]` with the first row of data.
 *
 * A `TGridCellAction` returns a function that has access to all the
 * `EuiDataGridColumnCellActionProps`, _plus_ access to `data`,
 *  which enables code like the following example to be written:
 *
 * Example:
 * ```
 * ({ data }: { data: TimelineNonEcsData[][] }) => ({ rowIndex, columnId, Component }) => {
 *   const value = getMappedNonEcsValue({
 *     data: data[rowIndex], // access a specific row's values
 *     fieldName: columnId,
 *   });
 *
 *   return (
 *     <Component onClick={() => alert(`row ${rowIndex} col ${columnId} has value ${value}`)} iconType="heart">
 *       {'Love it'}
 *      </Component>
 *   );
 * };
 * ```
 */
export type TGridCellAction = ({
  browserFields,
  data,
}: {
  browserFields: BrowserFields;
  /** each row of data is represented as one TimelineNonEcsData[] */
  data: TimelineNonEcsData[][];
}) => (props: EuiDataGridColumnCellActionProps) => ReactNode;
```

For example, the following `TGridCellAction[]` defines the `Copy to clipboard` action for the Observability Alerts table in `x-pack/plugins/observability/public/pages/alerts/default_cell_actions.tsx`:

```ts
/** actions common to all cells (e.g. copy to clipboard) */
const commonCellActions: TGridCellAction[] = [
  ({ data }: { data: TimelineNonEcsData[][] }) => ({ rowIndex, columnId, Component }) => {
    const { timelines } = useKibanaServices();

    const value = getMappedNonEcsValue({
      data: data[rowIndex],
      fieldName: columnId,
    });

    return (
      <>
        {timelines.getHoverActions().getCopyButton({
          Component,
          field: columnId,
          isHoverAction: false,
          ownFocus: false,
          showTooltip: false,
          value,
        })}
      </>
    );
  },
];
```

Note that an _implementation_ of the copy to clipboard cell action, including the button, is available for both the Observability and Security solutions to use via `timelines.getHoverActions().getCopyButton()`, (and both solutions use it in this PR), but there's no requirement to use that specific implementation of the copy action.

### Security Solution cell actions

All previously-available hover actions in the Security Solution are now available as cell actions, i.e.:

- Filter for value
- Filter out value
- Add to timeline investigation
- Show Top `<field>` (only enabled for some data types)
- Copy to clipboard

### Observability cell actions

In this PR:

- Only the `Copy to clipboard` cell action is enabled by default in the Observability Alerts table
- The `Filter for value` and `Filter out value` cell actions may be enabled in the `Observability` solution by changing a single line of code, (setting `enableFilterActions` to true), on the following line in `x-pack/plugins/observability/public/pages/alerts/alerts_table_t_grid.tsx`:

```js
defaultCellActions: getDefaultCellActions({ enableFilterActions: false }), // <-- set this to `true` to enable the filter actions
```

`enableFilterActions` is set to `false` in this PR because the Observability Alerts page's search bar, defined in `x-pack/plugins/observability/public/pages/alerts/alerts_search_bar.tsx`:

```ts
  return (
    <SearchBar
      indexPatterns={dynamicIndexPattern}
      placeholder={i18n.translate('xpack.observability.alerts.searchBarPlaceholder', {
        defaultMessage: 'kibana.alert.evaluation.threshold > 75',
      })}
      query={{ query: query ?? '', language: queryLanguage }}
      // ...
    />
````

must be integrated with a `filterManager` to display the filters. A `filterManager` instance may be obtained in the Observability solution via the following boilerplate:

```ts
  const {
    services: {
      data: {
        query: { filterManager },
      },
    },
  } = useKibana<ObservabilityPublicPluginsStart>();
```

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

Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
2021-08-05 17:35:32 -04:00
Kibana Machine 10ea2e9f08
[scripts/build_ts_refs] when using --clean initialize caches (#107777) (#107802)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-05 21:31:56 +00:00
Chandler Prall 3f60e39569
Upgrade EUI to v36.1.0 (#107231) (#107799)
* Upgrade eui to v36.1.0

* Jest snapshots

* More jest snapshots; one test assertion update

* Bump core page load limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-08-05 17:31:03 -04:00
Kibana Machine 5dde09e91d
Realign cypress/ccs_integration with cypress/integration (#107743) (#107797)
Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-08-05 16:56:22 -04:00
Kibana Machine 025b209f00
Allow optional OSS to X-Pack dependencies (#107432) (#107794)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-08-05 16:20:05 -04:00
Kibana Machine aa947348af
Add SavedObjectsUtils.getConvertedObjectId function (#107767) (#107793)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-08-05 16:13:36 -04:00
Kibana Machine 126d212145
[APM] Service view for all dependencies (#107627) (#107792)
* [APM] Service view for all dependencies

Closes #103257.

* Update API tests

* Fix type issue

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-08-05 16:05:50 -04:00
Cauê Marcondes 076ec4da7e
Visualizing composite spans. (#106862) (#107790)
* Visualizing composite spans.

* fixed reviews comments

* replaced var usage with let

* Fixed display of compositeSpanDurationSummary

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

Co-authored-by: Alexander Wert <AlexanderWert@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-05 15:58:04 -04:00
Cauê Marcondes c53fff88e5
[APM] Remove the feature flag for the Service overview (Kibana advanced setting) (#107657) (#107788)
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2021-08-05 15:51:19 -04:00
Kibana Machine 3a67301465
test: add unit tests for is_managed behaviour (#107759) (#107787)
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-08-05 19:38:21 +00:00
Kibana Machine 1387fae93c
[maps] asset tracking tutorial (#104552) (#107806)
* [maps] asset tracking tutoral

* fix image link

* fix link to tutorial in index.asciidoc

* use ref link for ece-cloud-id link

* use ece link

* fix code blocks

* fix screenshot

* finish part 1

* add tracks layer

* top hits step

* clean up part 2

* clean up part 2

* draw construction zones

* fix image name

* create alert

* add alerts to map

* add newline after code blocks

* remove to get build working again

* add back part 3 with header fix

* use server log connector

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* review feedback for part 1

* add Console

* part 2 feedback

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* part 3 review feedback

* one more fix

* intro paragraphs

* intro paragraph review feedback

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-08-05 15:37:18 -04:00
Lisa Cawley 855f0d87e9
[SECURITY] Replaces hard-coded links with doc link service (#103823) (#107783) 2021-08-05 15:31:37 -04:00
Kibana Machine e41bd1e38c
[App Search] Empty Crawler Single Domain view (#107694) (#107786)
* New route to retreive data for a single domain

* New CrawlerSingleDomainLogic logic

* New CrawlerSingleDomain view component

* Add CrawlerSingleDomain to CrawlerRouter

* Use different default text for page title while loading

* Apply suggestions from code review

Co-authored-by: Orhan Toy <toyorhan@gmail.com>

Co-authored-by: Orhan Toy <toyorhan@gmail.com>

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
Co-authored-by: Orhan Toy <toyorhan@gmail.com>
2021-08-05 15:28:55 -04:00
Kibana Machine d5967e850e
[Fleet] Replace usages of EuiCodeEditor by CodeEditor (#107434) (#107778)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-08-05 14:56:50 -04:00
Dmitry Shevchenko 8f61a96088
Integrate RuleExecutionLogClient with new rule types (#107624) (#107774) 2021-08-05 14:49:53 -04:00
Anton Dosov cda9966654
[7.x] [FieldFormats] Break from data plugin (#107173) (#107761)
* [FieldFormats] Break from `data` plugin (#107173)

# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md
#	src/plugins/data/public/public.api.md

* update limits
2021-08-05 13:53:39 -04:00
Sandra G 7a9398d4d1
[Stack Monitoring] update docs for changes in stack monitoring rules (#107670) (#107782)
* update docs for changes in stack monitoring rules

* fix grammatical error

* update
2021-08-05 13:15:04 -04:00
Kibana Machine c3a59c6066
[ML] Delayed data test for Anomaly Detection jobs health rule type (#107183) (#107762)
* [ML] enable test selection

* [ML] executor update for annotations

* [ML] update unit tests

* [ML] fix i18n

* [ML] update schema

* [ML] fix ts

* [ML] account for docs count, update unit tests

* [ML] update translation strings

* [ML] add types

* [ML] fetch the latest annotation sorted by modified_time

* [ML] getDelayedDataAnnotations

* [ML] update unit tests

* [ML] set default number of docs to 1, update schema validation

* [ML] getDelayedDataLookbackTimestamp

* [ML] filter null values, update unit tests

* [ML] account for query delay, refactor with memoize

* [ML] update unit test

* [ML] remove previousStartedAt

* [ML] filter based on the job config

* [ML] fix tests

* [ML] add maps

* [ML] combine filters

* [ML] move range query inside of a filter

* [ML] filter out jobs with missing datafeed

* [ML] resolveLookbackInterval only from jobs with datafeeds

* [ML] do not show an error on empty time interval

* [ML] add help tooltips

* [ML] update description for the datafeed check

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-08-05 13:11:21 -04:00
Stacey Gammon 0b9be5df45
Remove line numbers from the json files (#107158) (#107758)
* Stop tracking line numbers

* Updated api docs

* Fix type error and update tests

* wrap label in encodeURIComponent for the links

* Update docs after encodeUriComponent change
# Conflicts:
#	api_docs/apm.json
#	api_docs/canvas.json
#	api_docs/core.json
#	api_docs/core_saved_objects.json
#	api_docs/data.json
#	api_docs/data.mdx
#	api_docs/data_autocomplete.mdx
#	api_docs/data_field_formats.json
#	api_docs/data_field_formats.mdx
#	api_docs/data_index_patterns.json
#	api_docs/data_index_patterns.mdx
#	api_docs/data_query.mdx
#	api_docs/data_search.json
#	api_docs/data_search.mdx
#	api_docs/data_ui.mdx
#	api_docs/deprecations_by_api.mdx
#	api_docs/deprecations_by_plugin.mdx
#	api_docs/home.json
#	api_docs/lens.json
#	api_docs/monitoring.json
#	api_docs/presentation_util.json
#	api_docs/security.json
#	api_docs/security_solution.json
#	api_docs/timelines.json
2021-08-05 12:26:16 -04:00
Madison Caldwell 475e9e8541
[RAC][Security Solution] Add base Security Rule Type (#105096) (#107755)
* 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>

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-05 12:18:29 -04:00
Kibana Machine 59cc97583e
[Security solution][Endpoint] Users can filter trusted apps by policy name (#106710) (#107750)
* Allow users select policies from a dropdown

* Policy filters are passed throguh the API call and the results are now filtered by policy

* Moved policies selector inside search component and triggers search only when refresh button is clicked

* Fixes tests

* Triggers policy filter when policy is selected. Also fix unit test because now policies are loaded at the trusted apps list

* Renamed components and added an index.ts for the exports

* Adds unit tests for policies selector component

* Fix unit tests and changed camelcase by snack case for url params

* adds multilang

* Fixes i18n keys

* Move mock resonse to the mocks file

* Use string templating in test

* remove === true from boolean comparison

* Set function in useCallback. Renames some variables and types. Use reourceState helper function to get the prev state. Use generated data for policies in tests

* Fix ts errors

* Removes unused type and fix type name for Item

* Puts exclude clause on policy dropdown behind a feature flag

* Adds missing feature flags in some tests and in global reducer

* Fix test adding useExperimentalValua mock for FF

* Wrapp handlers in a useCallback in order to prevent useless rerenders

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

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-08-05 11:57:01 -04:00
Kibana Machine 826b88529e
[Archive Migration] x-pack..discover/default (#107665) (#107742)
* [Archive Migration] x-pack..discover/default

* Fix load to unload in after hook.

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-08-05 11:07:33 -04:00