diff --git a/.bazelrc.common b/.bazelrc.common
index 0ad0c95fdcbbd..e210b06ed2706 100644
--- a/.bazelrc.common
+++ b/.bazelrc.common
@@ -14,9 +14,18 @@ query --experimental_guard_against_concurrent_changes
## Cache action outputs on disk so they persist across output_base and bazel shutdown (eg. changing branches)
build --disk_cache=~/.bazel-cache/disk-cache
+fetch --disk_cache=~/.bazel-cache/disk-cache
+query --disk_cache=~/.bazel-cache/disk-cache
+sync --disk_cache=~/.bazel-cache/disk-cache
+test --disk_cache=~/.bazel-cache/disk-cache
## Bazel repo cache settings
build --repository_cache=~/.bazel-cache/repository-cache
+fetch --repository_cache=~/.bazel-cache/repository-cache
+query --repository_cache=~/.bazel-cache/repository-cache
+run --repository_cache=~/.bazel-cache/repository-cache
+sync --repository_cache=~/.bazel-cache/repository-cache
+test --repository_cache=~/.bazel-cache/repository-cache
# Bazel will create symlinks from the workspace directory to output artifacts.
# Build results will be placed in a directory called "bazel-bin"
diff --git a/.buildkite/pipelines/es_snapshots/verify.yml b/.buildkite/pipelines/es_snapshots/verify.yml
index 9cddade0b7482..7d700b1e0f489 100755
--- a/.buildkite/pipelines/es_snapshots/verify.yml
+++ b/.buildkite/pipelines/es_snapshots/verify.yml
@@ -27,9 +27,9 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
- parallelism: 13
+ parallelism: 27
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 150
key: default-cigroup
@@ -41,7 +41,7 @@ steps:
- command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Docker CI Group'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
key: default-cigroup-docker
@@ -77,7 +77,7 @@ steps:
- command: .buildkite/scripts/steps/test/api_integration.sh
label: 'API Integration Tests'
agents:
- queue: jest
+ queue: n2-2
timeout_in_minutes: 120
key: api-integration
diff --git a/.buildkite/pipelines/flaky_tests/pipeline.js b/.buildkite/pipelines/flaky_tests/pipeline.js
index 208924aefe80e..bf4abb9ff4c89 100644
--- a/.buildkite/pipelines/flaky_tests/pipeline.js
+++ b/.buildkite/pipelines/flaky_tests/pipeline.js
@@ -8,7 +8,7 @@ const stepInput = (key, nameOfSuite) => {
};
const OSS_CI_GROUPS = 12;
-const XPACK_CI_GROUPS = 13;
+const XPACK_CI_GROUPS = 27;
const inputs = [
{
@@ -23,11 +23,16 @@ for (let i = 1; i <= OSS_CI_GROUPS; i++) {
inputs.push(stepInput(`oss/cigroup/${i}`, `OSS CI Group ${i}`));
}
+inputs.push(stepInput(`oss/firefox`, 'OSS Firefox'));
+inputs.push(stepInput(`oss/accessibility`, 'OSS Accessibility'));
+
for (let i = 1; i <= XPACK_CI_GROUPS; i++) {
inputs.push(stepInput(`xpack/cigroup/${i}`, `Default CI Group ${i}`));
}
inputs.push(stepInput(`xpack/cigroup/Docker`, 'Default CI Group Docker'));
+inputs.push(stepInput(`xpack/firefox`, 'Default Firefox'));
+inputs.push(stepInput(`xpack/accessibility`, 'Default Accessibility'));
const pipeline = {
steps: [
diff --git a/.buildkite/pipelines/flaky_tests/runner.js b/.buildkite/pipelines/flaky_tests/runner.js
index bdb163504f46c..0c2db5c724f7b 100644
--- a/.buildkite/pipelines/flaky_tests/runner.js
+++ b/.buildkite/pipelines/flaky_tests/runner.js
@@ -65,34 +65,67 @@ for (const testSuite of testSuites) {
const JOB_PARTS = TEST_SUITE.split('/');
const IS_XPACK = JOB_PARTS[0] === 'xpack';
+ const TASK = JOB_PARTS[1];
const CI_GROUP = JOB_PARTS.length > 2 ? JOB_PARTS[2] : '';
if (RUN_COUNT < 1) {
continue;
}
- if (IS_XPACK) {
- steps.push({
- command: `CI_GROUP=${CI_GROUP} .buildkite/scripts/steps/functional/xpack_cigroup.sh`,
- label: `Default CI Group ${CI_GROUP}`,
- agents: { queue: 'ci-group-6' },
- depends_on: 'build',
- parallelism: RUN_COUNT,
- concurrency: concurrency,
- concurrency_group: UUID,
- concurrency_method: 'eager',
- });
- } else {
- steps.push({
- command: `CI_GROUP=${CI_GROUP} .buildkite/scripts/steps/functional/oss_cigroup.sh`,
- label: `OSS CI Group ${CI_GROUP}`,
- agents: { queue: 'ci-group-4d' },
- depends_on: 'build',
- parallelism: RUN_COUNT,
- concurrency: concurrency,
- concurrency_group: UUID,
- concurrency_method: 'eager',
- });
+ switch (TASK) {
+ case 'cigroup':
+ if (IS_XPACK) {
+ steps.push({
+ command: `CI_GROUP=${CI_GROUP} .buildkite/scripts/steps/functional/xpack_cigroup.sh`,
+ label: `Default CI Group ${CI_GROUP}`,
+ agents: { queue: 'n2-4' },
+ depends_on: 'build',
+ parallelism: RUN_COUNT,
+ concurrency: concurrency,
+ concurrency_group: UUID,
+ concurrency_method: 'eager',
+ });
+ } else {
+ steps.push({
+ command: `CI_GROUP=${CI_GROUP} .buildkite/scripts/steps/functional/oss_cigroup.sh`,
+ label: `OSS CI Group ${CI_GROUP}`,
+ agents: { queue: 'ci-group-4d' },
+ depends_on: 'build',
+ parallelism: RUN_COUNT,
+ concurrency: concurrency,
+ concurrency_group: UUID,
+ concurrency_method: 'eager',
+ });
+ }
+ break;
+
+ case 'firefox':
+ steps.push({
+ command: `.buildkite/scripts/steps/functional/${IS_XPACK ? 'xpack' : 'oss'}_firefox.sh`,
+ label: `${IS_XPACK ? 'Default' : 'OSS'} Firefox`,
+ agents: { queue: IS_XPACK ? 'n2-4' : 'ci-group-4d' },
+ depends_on: 'build',
+ parallelism: RUN_COUNT,
+ concurrency: concurrency,
+ concurrency_group: UUID,
+ concurrency_method: 'eager',
+ });
+ break;
+
+ case 'accessibility':
+ steps.push({
+ command: `.buildkite/scripts/steps/functional/${
+ IS_XPACK ? 'xpack' : 'oss'
+ }_accessibility.sh`,
+ label: `${IS_XPACK ? 'Default' : 'OSS'} Accessibility`,
+ agents: { queue: IS_XPACK ? 'n2-4' : 'ci-group-4d' },
+ depends_on: 'build',
+ parallelism: RUN_COUNT,
+ concurrency: concurrency,
+ concurrency_group: UUID,
+ concurrency_method: 'eager',
+ });
+ break;
}
}
diff --git a/.buildkite/pipelines/hourly.yml b/.buildkite/pipelines/hourly.yml
index 4b2b17d272d17..bc9644820784d 100644
--- a/.buildkite/pipelines/hourly.yml
+++ b/.buildkite/pipelines/hourly.yml
@@ -17,9 +17,9 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
- parallelism: 13
+ parallelism: 27
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 250
key: default-cigroup
@@ -31,7 +31,7 @@ steps:
- command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Docker CI Group'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
key: default-cigroup-docker
@@ -67,7 +67,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_accessibility.sh
label: 'Default Accessibility Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -89,7 +89,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_firefox.sh
label: 'Default Firefox Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -100,7 +100,7 @@ steps:
- command: .buildkite/scripts/steps/functional/oss_misc.sh
label: 'OSS Misc Functional Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -111,7 +111,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_saved_object_field_metrics.sh
label: 'Saved Object Field Metrics'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -119,6 +119,14 @@ steps:
- exit_status: '*'
limit: 1
+ - command: .buildkite/scripts/steps/test/jest.sh
+ label: 'Jest Tests'
+ parallelism: 8
+ agents:
+ queue: n2-4
+ timeout_in_minutes: 90
+ key: jest
+
- command: .buildkite/scripts/steps/test/jest_integration.sh
label: 'Jest Integration Tests'
agents:
@@ -133,13 +141,6 @@ steps:
timeout_in_minutes: 120
key: api-integration
- - command: .buildkite/scripts/steps/test/jest.sh
- label: 'Jest Tests'
- agents:
- queue: c2-16
- timeout_in_minutes: 120
- key: jest
-
- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
diff --git a/.buildkite/pipelines/pull_request/base.yml b/.buildkite/pipelines/pull_request/base.yml
index 0f2a4a1026af8..b99473c23d746 100644
--- a/.buildkite/pipelines/pull_request/base.yml
+++ b/.buildkite/pipelines/pull_request/base.yml
@@ -15,9 +15,9 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
- parallelism: 13
+ parallelism: 27
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 150
key: default-cigroup
@@ -29,7 +29,7 @@ steps:
- command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Docker CI Group'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
key: default-cigroup-docker
@@ -65,7 +65,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_accessibility.sh
label: 'Default Accessibility Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -87,7 +87,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_firefox.sh
label: 'Default Firefox Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -98,7 +98,7 @@ steps:
- command: .buildkite/scripts/steps/functional/oss_misc.sh
label: 'OSS Misc Functional Tests'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -109,7 +109,7 @@ steps:
- command: .buildkite/scripts/steps/functional/xpack_saved_object_field_metrics.sh
label: 'Saved Object Field Metrics'
agents:
- queue: ci-group-6
+ queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
@@ -117,6 +117,14 @@ steps:
- exit_status: '*'
limit: 1
+ - command: .buildkite/scripts/steps/test/jest.sh
+ label: 'Jest Tests'
+ parallelism: 8
+ agents:
+ queue: n2-4
+ timeout_in_minutes: 90
+ key: jest
+
- command: .buildkite/scripts/steps/test/jest_integration.sh
label: 'Jest Integration Tests'
agents:
@@ -131,13 +139,6 @@ steps:
timeout_in_minutes: 120
key: api-integration
- - command: .buildkite/scripts/steps/test/jest.sh
- label: 'Jest Tests'
- agents:
- queue: c2-16
- timeout_in_minutes: 120
- key: jest
-
- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
@@ -155,7 +156,7 @@ steps:
- command: .buildkite/scripts/steps/checks.sh
label: 'Checks'
agents:
- queue: c2-4
+ queue: c2-8
key: checks
timeout_in_minutes: 120
diff --git a/.buildkite/scripts/build_kibana.sh b/.buildkite/scripts/build_kibana.sh
index e26d7790215f3..84d66a30ea213 100755
--- a/.buildkite/scripts/build_kibana.sh
+++ b/.buildkite/scripts/build_kibana.sh
@@ -11,6 +11,19 @@ else
node scripts/build
fi
+if [[ "${GITHUB_PR_LABELS:-}" == *"ci:deploy-cloud"* ]]; then
+ echo "--- Build Kibana Cloud Distribution"
+ node scripts/build \
+ --skip-initialize \
+ --skip-generic-folders \
+ --skip-platform-folders \
+ --skip-archives \
+ --docker-images \
+ --skip-docker-ubi \
+ --skip-docker-centos \
+ --skip-docker-contexts
+fi
+
echo "--- Archive Kibana Distribution"
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
installDir="$KIBANA_DIR/install/kibana"
diff --git a/.buildkite/scripts/common/env.sh b/.buildkite/scripts/common/env.sh
index 0715b07fd58e8..b5acfe140df24 100755
--- a/.buildkite/scripts/common/env.sh
+++ b/.buildkite/scripts/common/env.sh
@@ -38,8 +38,10 @@ export ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1
if is_pr; then
if [[ "${GITHUB_PR_LABELS:-}" == *"ci:collect-apm"* ]]; then
export ELASTIC_APM_ACTIVE=true
+ export ELASTIC_APM_CONTEXT_PROPAGATION_ONLY=false
else
- export ELASTIC_APM_ACTIVE=false
+ export ELASTIC_APM_ACTIVE=true
+ export ELASTIC_APM_CONTEXT_PROPAGATION_ONLY=true
fi
if [[ "${GITHUB_STEP_COMMIT_STATUS_ENABLED:-}" != "true" ]]; then
@@ -61,6 +63,7 @@ if is_pr; then
export PR_TARGET_BRANCH="$GITHUB_PR_TARGET_BRANCH"
else
export ELASTIC_APM_ACTIVE=true
+ export ELASTIC_APM_CONTEXT_PROPAGATION_ONLY=false
export CHECKS_REPORTER_ACTIVE=false
fi
diff --git a/.buildkite/scripts/steps/checks/type_check_plugin_public_api_docs.sh b/.buildkite/scripts/steps/checks/type_check_plugin_public_api_docs.sh
index 1d73d1748ddf7..5827fd5eb2284 100755
--- a/.buildkite/scripts/steps/checks/type_check_plugin_public_api_docs.sh
+++ b/.buildkite/scripts/steps/checks/type_check_plugin_public_api_docs.sh
@@ -11,9 +11,27 @@ checks-reporter-with-killswitch "Build TS Refs" \
--no-cache \
--force
-echo --- Check Types
checks-reporter-with-killswitch "Check Types" \
- node scripts/type_check
+ node scripts/type_check &> target/check_types.log &
+check_types_pid=$!
+
+node --max-old-space-size=12000 scripts/build_api_docs &> target/build_api_docs.log &
+api_docs_pid=$!
+
+wait $check_types_pid
+check_types_exit=$?
+
+wait $api_docs_pid
+api_docs_exit=$?
+
+echo --- Check Types
+cat target/check_types.log
+if [[ "$check_types_exit" != "0" ]]; then echo "^^^ +++"; fi
echo --- Building api docs
-node --max-old-space-size=12000 scripts/build_api_docs
+cat target/build_api_docs.log
+if [[ "$api_docs_exit" != "0" ]]; then echo "^^^ +++"; fi
+
+if [[ "${api_docs_exit}${check_types_exit}" != "00" ]]; then
+ exit 1
+fi
diff --git a/.buildkite/scripts/steps/test/jest.sh b/.buildkite/scripts/steps/test/jest.sh
index 2c4e3fe21902d..d2d1ed10043d6 100755
--- a/.buildkite/scripts/steps/test/jest.sh
+++ b/.buildkite/scripts/steps/test/jest.sh
@@ -9,5 +9,5 @@ is_test_execution_step
.buildkite/scripts/bootstrap.sh
echo '--- Jest'
-checks-reporter-with-killswitch "Jest Unit Tests" \
- node scripts/jest --ci --verbose --maxWorkers=10
+checks-reporter-with-killswitch "Jest Unit Tests $((BUILDKITE_PARALLEL_JOB+1))" \
+ .buildkite/scripts/steps/test/jest_parallel.sh
diff --git a/.buildkite/scripts/steps/test/jest_parallel.sh b/.buildkite/scripts/steps/test/jest_parallel.sh
new file mode 100755
index 0000000000000..c9e0e1aff5cf2
--- /dev/null
+++ b/.buildkite/scripts/steps/test/jest_parallel.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+set -uo pipefail
+
+JOB=$BUILDKITE_PARALLEL_JOB
+JOB_COUNT=$BUILDKITE_PARALLEL_JOB_COUNT
+
+# a jest failure will result in the script returning an exit code of 10
+
+i=0
+exitCode=0
+
+while read -r config; do
+ if [ "$((i % JOB_COUNT))" -eq "$JOB" ]; then
+ echo "--- $ node scripts/jest --config $config"
+ node --max-old-space-size=14336 ./node_modules/.bin/jest --config="$config" --runInBand --coverage=false
+ lastCode=$?
+
+ if [ $lastCode -ne 0 ]; then
+ exitCode=10
+ echo "Jest exited with code $lastCode"
+ echo "^^^ +++"
+ fi
+ fi
+
+ ((i=i+1))
+# uses heredoc to avoid the while loop being in a sub-shell thus unable to overwrite exitCode
+done <<< "$(find src x-pack packages -name jest.config.js -not -path "*/__fixtures__/*" | sort)"
+
+exit $exitCode
\ No newline at end of file
diff --git a/.ci/ci_groups.yml b/.ci/ci_groups.yml
index 9c3a039f51166..1be6e8c196a2d 100644
--- a/.ci/ci_groups.yml
+++ b/.ci/ci_groups.yml
@@ -25,4 +25,18 @@ xpack:
- ciGroup11
- ciGroup12
- ciGroup13
+ - ciGroup14
+ - ciGroup15
+ - ciGroup16
+ - ciGroup17
+ - ciGroup18
+ - ciGroup19
+ - ciGroup20
+ - ciGroup21
+ - ciGroup22
+ - ciGroup23
+ - ciGroup24
+ - ciGroup25
+ - ciGroup26
+ - ciGroup27
- ciGroupDocker
diff --git a/.eslintrc.js b/.eslintrc.js
index 00c96e5cf0491..b303a9fefb691 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -226,6 +226,10 @@ const RESTRICTED_IMPORTS = [
name: 'react-use',
message: 'Please use react-use/lib/{method} instead.',
},
+ {
+ name: '@kbn/io-ts-utils',
+ message: `Import directly from @kbn/io-ts-utils/{method} submodules`,
+ },
];
module.exports = {
@@ -700,6 +704,7 @@ module.exports = {
'packages/kbn-eslint-plugin-eslint/**/*',
'x-pack/gulpfile.js',
'x-pack/scripts/*.js',
+ '**/jest.config.js',
],
excludedFiles: ['**/integration_tests/**/*'],
rules: {
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 990cfef20eae0..370f377d74c89 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -59,6 +59,7 @@
/examples/url_generators_explorer/ @elastic/kibana-app-services
/examples/field_formats_example/ @elastic/kibana-app-services
/examples/partial_results_example/ @elastic/kibana-app-services
+/examples/search_examples/ @elastic/kibana-app-services
/packages/elastic-datemath/ @elastic/kibana-app-services
/packages/kbn-interpreter/ @elastic/kibana-app-services
/packages/kbn-react-field/ @elastic/kibana-app-services
@@ -78,18 +79,15 @@
/src/plugins/ui_actions/ @elastic/kibana-app-services
/src/plugins/index_pattern_field_editor @elastic/kibana-app-services
/src/plugins/screenshot_mode @elastic/kibana-app-services
+/src/plugins/bfetch/ @elastic/kibana-app-services
+/src/plugins/index_pattern_management/ @elastic/kibana-app-services
+/src/plugins/inspector/ @elastic/kibana-app-services
/x-pack/examples/ui_actions_enhanced_examples/ @elastic/kibana-app-services
/x-pack/plugins/data_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/embeddable_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/ui_actions_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/runtime_fields @elastic/kibana-app-services
/x-pack/test/search_sessions_integration/ @elastic/kibana-app-services
-#CC# /src/plugins/bfetch/ @elastic/kibana-app-services
-#CC# /src/plugins/index_pattern_management/ @elastic/kibana-app-services
-#CC# /src/plugins/inspector/ @elastic/kibana-app-services
-#CC# /src/plugins/share/ @elastic/kibana-app-services
-#CC# /x-pack/plugins/drilldowns/ @elastic/kibana-app-services
-#CC# /packages/kbn-interpreter/ @elastic/kibana-app-services
### Observability Plugins
@@ -405,6 +403,12 @@
/x-pack/plugins/security_solution/scripts/endpoint/trusted_apps/ @elastic/security-onboarding-and-lifecycle-mgt
/x-pack/test/security_solution_endpoint/apps/endpoint/ @elastic/security-onboarding-and-lifecycle-mgt
+## Security Solution sub teams - security-engineering-productivity
+x-pack/plugins/security_solution/cypress/ccs_integration
+x-pack/plugins/security_solution/cypress/upgrade_integration
+x-pack/plugins/security_solution/cypress/README.md
+x-pack/test/security_solution_cypress
+
# Security Intelligence And Analytics
/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules @elastic/security-intelligence-analytics
diff --git a/dev_docs/getting_started/development_windows.mdx b/dev_docs/getting_started/development_windows.mdx
new file mode 100644
index 0000000000000..4300c307a7b11
--- /dev/null
+++ b/dev_docs/getting_started/development_windows.mdx
@@ -0,0 +1,45 @@
+---
+id: kibDevTutorialSetupDevWindows
+slug: /kibana-dev-docs/tutorial/setup-dev-windows
+title: Development on Windows
+summary: Learn how to setup a development environment on Windows
+date: 2021-08-11
+tags: ['kibana', 'onboarding', 'dev', 'windows', 'setup']
+---
+
+
+# Overview
+
+Development on Windows is recommended through WSL2. WSL lets users run a Linux environment on Windows, providing a supported development environment for Kibana.
+
+## Install WSL
+
+The latest setup instructions can be found at https://docs.microsoft.com/en-us/windows/wsl/install-win10
+
+1) Open Powershell as an administrator
+1) Enable WSL
+ ```
+ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
+ ```
+1) Enable Virtual Machine Platform
+ ```
+ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
+ ```
+1) Download and install the [Linux kernel update package](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi)
+1) Set WSL 2 as the default version
+ ```
+ wsl --set-default-version 2
+ ```
+1) Open the Micrsoft Store application and install a Linux distribution
+
+## Setup Kibana
+
+1.
+
+## Install VS Code
+
+Remote development is supported with an extension. [Reference](https://code.visualstudio.com/docs/remote/wsl).
+
+1) Install VS Code on Windows
+1) Check the "Add to PATH" option during setup
+1) Install the [Remote Development](https://aka.ms/vscode-remote/download/extension) package
diff --git a/docs/CHANGELOG.asciidoc b/docs/CHANGELOG.asciidoc
index 8111172893795..31cdcbca9d1f9 100644
--- a/docs/CHANGELOG.asciidoc
+++ b/docs/CHANGELOG.asciidoc
@@ -18,8 +18,6 @@ Review important information about the {kib} 8.0.0 releases.
[[release-notes-8.0.0-beta1]]
== {kib} 8.0.0-beta1
-coming::[8.0.0-beta1]
-
Review the {kib} 8.0.0-beta1 changes, then use the <> to complete the upgrade.
[float]
diff --git a/docs/api/upgrade-assistant/batch_reindexing.asciidoc b/docs/api/upgrade-assistant/batch_reindexing.asciidoc
index db3e080d09185..6b355185de5ce 100644
--- a/docs/api/upgrade-assistant/batch_reindexing.asciidoc
+++ b/docs/api/upgrade-assistant/batch_reindexing.asciidoc
@@ -6,7 +6,7 @@
experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
-Start or resume multiple reindexing tasks in one request. Additionally, reindexing tasks started or resumed
+Start or resume multiple <> tasks in one request. Additionally, reindexing tasks started or resumed
via the batch endpoint will be placed on a queue and executed one-by-one, which ensures that minimal cluster resources
are consumed over time.
@@ -76,7 +76,7 @@ Similar to the <>, the API retur
}
--------------------------------------------------
-<1> A list of reindex operations created, the order in the array indicates the order in which tasks will be executed.
+<1> A list of reindex tasks created, the order in the array indicates the order in which tasks will be executed.
<2> Presence of this key indicates that the reindex job will occur in the batch.
<3> A Unix timestamp of when the reindex task was placed in the queue.
<4> A list of errors that may have occurred preventing the reindex task from being created.
diff --git a/docs/api/upgrade-assistant/cancel_reindex.asciidoc b/docs/api/upgrade-assistant/cancel_reindex.asciidoc
index 04ab3bdde35fc..93e4c6fda6b40 100644
--- a/docs/api/upgrade-assistant/cancel_reindex.asciidoc
+++ b/docs/api/upgrade-assistant/cancel_reindex.asciidoc
@@ -4,7 +4,7 @@
Cancel reindex
++++
-experimental[] Cancel reindexes that are waiting for the {es} reindex task to complete. For example, `lastCompletedStep` set to `40`.
+experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
Cancel reindexes that are waiting for the Elasticsearch reindex task to complete. For example, `lastCompletedStep` set to `40`.
diff --git a/docs/api/upgrade-assistant/check_reindex_status.asciidoc b/docs/api/upgrade-assistant/check_reindex_status.asciidoc
index 75aac7b3699f5..934fd92312b04 100644
--- a/docs/api/upgrade-assistant/check_reindex_status.asciidoc
+++ b/docs/api/upgrade-assistant/check_reindex_status.asciidoc
@@ -4,7 +4,9 @@
Check reindex status
++++
-experimental[] Check the status of the reindex operation.
+experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
+
+Check the status of the reindex task.
[[check-reindex-status-request]]
==== Request
@@ -43,7 +45,7 @@ The API returns the following:
<2> Current status of the reindex. For details, see <>.
<3> Last successfully completed step of the reindex. For details, see <> table.
<4> Task ID of the reindex task in Elasticsearch. Only present if reindexing has started.
-<5> Percentage of how far the reindexing task in Elasticsearch has progressed, in decimal from from 0 to 1.
+<5> Percentage of how far the reindexing task in Elasticsearch has progressed, in decimal form from 0 to 1.
<6> Error that caused the reindex to fail, if it failed.
<7> An array of any warning codes explaining what changes are required for this reindex. For details, see <>.
<8> Specifies if the user has sufficient privileges to reindex this index. When security is unavailable or disables, returns `true`.
@@ -73,7 +75,7 @@ To resume the reindex, you must submit a new POST request to the `/api/upgrade_a
==== Step codes
`0`::
- The reindex operation has been created in Kibana.
+ The reindex task has been created in Kibana.
`10`::
The index group services stopped. Only applies to some system indices.
diff --git a/docs/api/upgrade-assistant/reindexing.asciidoc b/docs/api/upgrade-assistant/reindexing.asciidoc
index ce5670822e5ad..ccb9433ac24b1 100644
--- a/docs/api/upgrade-assistant/reindexing.asciidoc
+++ b/docs/api/upgrade-assistant/reindexing.asciidoc
@@ -4,9 +4,18 @@
Start or resume reindex
++++
-experimental[] Start a new reindex or resume a paused reindex.
+experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
+
+Start a new reindex or resume a paused reindex. Following steps are performed during
+a reindex task:
+
+. Setting the index to read-only
+. Creating a new index
+. {ref}/docs-reindex.html[Reindexing] documents into the new index
+. Creating an index alias for the new index
+. Deleting the old index
+
-Start a new reindex or resume a paused reindex.
[[start-resume-reindex-request]]
==== Request
@@ -40,6 +49,6 @@ The API returns the following:
<1> The name of the new index.
<2> The reindex status. For more information, refer to <>.
<3> The last successfully completed step of the reindex. For more information, refer to <>.
-<4> The task ID of the reindex task in {es}. Appears when the reindexing starts.
-<5> The progress of the reindexing task in {es}. Appears in decimal form, from 0 to 1.
+<4> The task ID of the {ref}/docs-reindex.html[reindex] task in {es}. Appears when the reindexing starts.
+<5> The progress of the {ref}/docs-reindex.html[reindexing] task in {es}. Appears in decimal form, from 0 to 1.
<6> The error that caused the reindex to fail, if it failed.
diff --git a/docs/api/upgrade-assistant/status.asciidoc b/docs/api/upgrade-assistant/status.asciidoc
index 42030061c4289..b0c11939ca784 100644
--- a/docs/api/upgrade-assistant/status.asciidoc
+++ b/docs/api/upgrade-assistant/status.asciidoc
@@ -4,7 +4,7 @@
Upgrade readiness status
++++
-experimental[] Check the status of your cluster.
+experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
Check the status of your cluster.
diff --git a/docs/developer/contributing/development-functional-tests.asciidoc b/docs/developer/contributing/development-functional-tests.asciidoc
index cb614c5149f95..4695a499ca6b6 100644
--- a/docs/developer/contributing/development-functional-tests.asciidoc
+++ b/docs/developer/contributing/development-functional-tests.asciidoc
@@ -490,7 +490,7 @@ From the command line run:
["source","shell"]
-----------
-node --debug-brk --inspect scripts/functional_test_runner
+node --inspect-brk scripts/functional_test_runner
-----------
This prints out a URL that you can visit in Chrome and debug your functional tests in the browser.
diff --git a/docs/developer/contributing/development-unit-tests.asciidoc b/docs/developer/contributing/development-unit-tests.asciidoc
index 9f0896f8a673f..0a21dbbb449cc 100644
--- a/docs/developer/contributing/development-unit-tests.asciidoc
+++ b/docs/developer/contributing/development-unit-tests.asciidoc
@@ -75,7 +75,7 @@ In order to ease the pain specialized tasks provide alternate methods
for running the tests.
You could also add the `--debug` option so that `node` is run using
-the `--debug-brk` flag. You’ll need to connect a remote debugger such
+the `--inspect-brk` flag. You’ll need to connect a remote debugger such
as https://github.com/node-inspector/node-inspector[`node-inspector`]
to proceed in this mode.
diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc
index de679692e7a84..1429ad29be5fd 100644
--- a/docs/developer/plugin-list.asciidoc
+++ b/docs/developer/plugin-list.asciidoc
@@ -600,8 +600,7 @@ As a developer you can reuse and extend built-in alerts and actions UI functiona
|{kib-repo}blob/{branch}/x-pack/plugins/upgrade_assistant/README.md[upgradeAssistant]
-|Upgrade Assistant helps users prepare their Stack for being upgraded to the next major. Its primary
-purposes are to:
+|Upgrade Assistant helps users prepare their Stack for being upgraded to the next major. It will only be enabled on the last minor before the next major release. This is controlled via the config: xpack.upgrade_assistant.readonly (#101296).
|{kib-repo}blob/{branch}/x-pack/plugins/uptime/README.md[uptime]
diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
index 676f7420c8bb9..37524daa39c51 100644
--- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
+++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md
@@ -10,6 +10,9 @@
readonly links: {
readonly settings: string;
readonly elasticStackGetStarted: string;
+ readonly upgrade: {
+ readonly upgradingElasticStack: string;
+ };
readonly apm: {
readonly kibanaSettings: string;
readonly supportedServiceMaps: string;
@@ -86,6 +89,7 @@ readonly links: {
readonly range: string;
readonly significant_terms: string;
readonly terms: string;
+ readonly terms_doc_count_error: string;
readonly avg: string;
readonly avg_bucket: string;
readonly max_bucket: string;
@@ -133,7 +137,11 @@ readonly links: {
};
readonly addData: string;
readonly kibana: string;
- readonly upgradeAssistant: string;
+ readonly upgradeAssistant: {
+ readonly overview: string;
+ readonly batchReindex: string;
+ readonly remoteReindex: string;
+ };
readonly rollupJobs: string;
readonly elasticsearch: Record;
readonly siem: {
@@ -236,6 +244,7 @@ readonly links: {
fleetServerAddFleetServer: string;
settings: string;
settingsFleetServerHostSettings: string;
+ settingsFleetServerProxySettings: string;
troubleshooting: string;
elasticAgent: string;
datastreams: string;
@@ -245,6 +254,7 @@ readonly links: {
upgradeElasticAgent712lower: string;
learnMoreBlog: string;
apiKeysLearnMore: string;
+ onPremRegistry: string;
}>;
readonly ecs: {
readonly guide: string;
diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
index 788f0b9de8218..d0df23f35ab9e 100644
--- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
+++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
@@ -17,5 +17,5 @@ export interface DocLinksStart
| --- | --- | --- |
| [DOC\_LINK\_VERSION](./kibana-plugin-core-public.doclinksstart.doc_link_version.md) | string
| |
| [ELASTIC\_WEBSITE\_URL](./kibana-plugin-core-public.doclinksstart.elastic_website_url.md) | string
| |
-| [links](./kibana-plugin-core-public.doclinksstart.links.md) | {
readonly settings: string;
readonly elasticStackGetStarted: string;
readonly apm: {
readonly kibanaSettings: string;
readonly supportedServiceMaps: string;
readonly customLinks: string;
readonly droppedTransactionSpans: string;
readonly upgrading: string;
readonly metaData: string;
};
readonly canvas: {
readonly guide: string;
};
readonly dashboard: {
readonly guide: string;
readonly drilldowns: string;
readonly drilldownsTriggerPicker: string;
readonly urlDrilldownTemplateSyntax: string;
readonly urlDrilldownVariables: string;
};
readonly discover: Record<string, string>;
readonly filebeat: {
readonly base: string;
readonly installation: string;
readonly configuration: string;
readonly elasticsearchOutput: string;
readonly elasticsearchModule: string;
readonly startup: string;
readonly exportedFields: string;
readonly suricataModule: string;
readonly zeekModule: string;
};
readonly auditbeat: {
readonly base: string;
readonly auditdModule: string;
readonly systemModule: string;
};
readonly metricbeat: {
readonly base: string;
readonly configure: string;
readonly httpEndpoint: string;
readonly install: string;
readonly start: string;
};
readonly enterpriseSearch: {
readonly base: string;
readonly appSearchBase: string;
readonly workplaceSearchBase: string;
};
readonly heartbeat: {
readonly base: string;
};
readonly libbeat: {
readonly getStarted: string;
};
readonly logstash: {
readonly base: string;
};
readonly functionbeat: {
readonly base: string;
};
readonly winlogbeat: {
readonly base: string;
};
readonly aggs: {
readonly composite: string;
readonly composite_missing_bucket: string;
readonly date_histogram: string;
readonly date_range: string;
readonly date_format_pattern: string;
readonly filter: string;
readonly filters: string;
readonly geohash_grid: string;
readonly histogram: string;
readonly ip_range: string;
readonly range: string;
readonly significant_terms: string;
readonly terms: string;
readonly avg: string;
readonly avg_bucket: string;
readonly max_bucket: string;
readonly min_bucket: string;
readonly sum_bucket: string;
readonly cardinality: string;
readonly count: string;
readonly cumulative_sum: string;
readonly derivative: string;
readonly geo_bounds: string;
readonly geo_centroid: string;
readonly max: string;
readonly median: string;
readonly min: string;
readonly moving_avg: string;
readonly percentile_ranks: string;
readonly serial_diff: string;
readonly std_dev: string;
readonly sum: string;
readonly top_hits: string;
};
readonly runtimeFields: {
readonly overview: string;
readonly mapping: string;
};
readonly scriptedFields: {
readonly scriptFields: string;
readonly scriptAggs: string;
readonly painless: string;
readonly painlessApi: string;
readonly painlessLangSpec: string;
readonly painlessSyntax: string;
readonly painlessWalkthrough: string;
readonly luceneExpressions: string;
};
readonly search: {
readonly sessions: string;
readonly sessionLimits: string;
};
readonly indexPatterns: {
readonly introduction: string;
readonly fieldFormattersNumber: string;
readonly fieldFormattersString: string;
readonly runtimeFields: string;
};
readonly addData: string;
readonly kibana: string;
readonly upgradeAssistant: string;
readonly rollupJobs: string;
readonly elasticsearch: Record<string, string>;
readonly siem: {
readonly privileges: string;
readonly guide: string;
readonly gettingStarted: string;
readonly ml: string;
readonly ruleChangeLog: string;
readonly detectionsReq: string;
readonly networkMap: string;
readonly troubleshootGaps: string;
};
readonly securitySolution: {
readonly trustedApps: string;
};
readonly query: {
readonly eql: string;
readonly kueryQuerySyntax: string;
readonly luceneQuerySyntax: string;
readonly percolate: string;
readonly queryDsl: string;
readonly autocompleteChanges: string;
};
readonly date: {
readonly dateMath: string;
readonly dateMathIndexNames: string;
};
readonly management: Record<string, string>;
readonly ml: Record<string, string>;
readonly transforms: Record<string, string>;
readonly visualize: Record<string, string>;
readonly apis: Readonly<{
bulkIndexAlias: string;
byteSizeUnits: string;
createAutoFollowPattern: string;
createFollower: string;
createIndex: string;
createSnapshotLifecyclePolicy: string;
createRoleMapping: string;
createRoleMappingTemplates: string;
createRollupJobsRequest: string;
createApiKey: string;
createPipeline: string;
createTransformRequest: string;
cronExpressions: string;
executeWatchActionModes: string;
indexExists: string;
openIndex: string;
putComponentTemplate: string;
painlessExecute: string;
painlessExecuteAPIContexts: string;
putComponentTemplateMetadata: string;
putSnapshotLifecyclePolicy: string;
putIndexTemplateV1: string;
putWatch: string;
simulatePipeline: string;
timeUnits: string;
updateTransform: string;
}>;
readonly observability: Readonly<{
guide: string;
infrastructureThreshold: string;
logsThreshold: string;
metricsThreshold: string;
monitorStatus: string;
monitorUptime: string;
tlsCertificate: string;
uptimeDurationAnomaly: string;
}>;
readonly alerting: Record<string, string>;
readonly maps: Record<string, string>;
readonly monitoring: Record<string, string>;
readonly security: Readonly<{
apiKeyServiceSettings: string;
clusterPrivileges: string;
elasticsearchSettings: string;
elasticsearchEnableSecurity: string;
elasticsearchEnableApiKeys: string;
indicesPrivileges: string;
kibanaTLS: string;
kibanaPrivileges: string;
mappingRoles: string;
mappingRolesFieldRules: string;
runAsPrivilege: string;
}>;
readonly spaces: Readonly<{
kibanaLegacyUrlAliases: string;
kibanaDisableLegacyUrlAliasesApi: string;
}>;
readonly watcher: Record<string, string>;
readonly ccs: Record<string, string>;
readonly plugins: Record<string, string>;
readonly snapshotRestore: Record<string, string>;
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
beatsAgentComparison: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;
settings: string;
settingsFleetServerHostSettings: string;
troubleshooting: string;
elasticAgent: string;
datastreams: string;
datastreamsNamingScheme: string;
installElasticAgent: string;
upgradeElasticAgent: string;
upgradeElasticAgent712lower: string;
learnMoreBlog: string;
apiKeysLearnMore: string;
}>;
readonly ecs: {
readonly guide: string;
};
readonly clients: {
readonly guide: string;
readonly goOverview: string;
readonly javaIndex: string;
readonly jsIntro: string;
readonly netGuide: string;
readonly perlGuide: string;
readonly phpGuide: string;
readonly pythonGuide: string;
readonly rubyOverview: string;
readonly rustGuide: string;
};
readonly endpoints: {
readonly troubleshooting: string;
};
}
| |
+| [links](./kibana-plugin-core-public.doclinksstart.links.md) | {
readonly settings: string;
readonly elasticStackGetStarted: string;
readonly apm: {
readonly kibanaSettings: string;
readonly supportedServiceMaps: string;
readonly customLinks: string;
readonly droppedTransactionSpans: string;
readonly upgrading: string;
readonly metaData: string;
};
readonly canvas: {
readonly guide: string;
};
readonly dashboard: {
readonly guide: string;
readonly drilldowns: string;
readonly drilldownsTriggerPicker: string;
readonly urlDrilldownTemplateSyntax: string;
readonly urlDrilldownVariables: string;
};
readonly discover: Record<string, string>;
readonly filebeat: {
readonly base: string;
readonly installation: string;
readonly configuration: string;
readonly elasticsearchOutput: string;
readonly elasticsearchModule: string;
readonly startup: string;
readonly exportedFields: string;
readonly suricataModule: string;
readonly zeekModule: string;
};
readonly auditbeat: {
readonly base: string;
readonly auditdModule: string;
readonly systemModule: string;
};
readonly metricbeat: {
readonly base: string;
readonly configure: string;
readonly httpEndpoint: string;
readonly install: string;
readonly start: string;
};
readonly enterpriseSearch: {
readonly base: string;
readonly appSearchBase: string;
readonly workplaceSearchBase: string;
};
readonly heartbeat: {
readonly base: string;
};
readonly libbeat: {
readonly getStarted: string;
};
readonly logstash: {
readonly base: string;
};
readonly functionbeat: {
readonly base: string;
};
readonly winlogbeat: {
readonly base: string;
};
readonly aggs: {
readonly composite: string;
readonly composite_missing_bucket: string;
readonly date_histogram: string;
readonly date_range: string;
readonly date_format_pattern: string;
readonly filter: string;
readonly filters: string;
readonly geohash_grid: string;
readonly histogram: string;
readonly ip_range: string;
readonly range: string;
readonly significant_terms: string;
readonly terms: string;
readonly terms_doc_count_error: string;
readonly avg: string;
readonly avg_bucket: string;
readonly max_bucket: string;
readonly min_bucket: string;
readonly sum_bucket: string;
readonly cardinality: string;
readonly count: string;
readonly cumulative_sum: string;
readonly derivative: string;
readonly geo_bounds: string;
readonly geo_centroid: string;
readonly max: string;
readonly median: string;
readonly min: string;
readonly moving_avg: string;
readonly percentile_ranks: string;
readonly serial_diff: string;
readonly std_dev: string;
readonly sum: string;
readonly top_hits: string;
};
readonly runtimeFields: {
readonly overview: string;
readonly mapping: string;
};
readonly scriptedFields: {
readonly scriptFields: string;
readonly scriptAggs: string;
readonly painless: string;
readonly painlessApi: string;
readonly painlessLangSpec: string;
readonly painlessSyntax: string;
readonly painlessWalkthrough: string;
readonly luceneExpressions: string;
};
readonly search: {
readonly sessions: string;
readonly sessionLimits: string;
};
readonly indexPatterns: {
readonly introduction: string;
readonly fieldFormattersNumber: string;
readonly fieldFormattersString: string;
readonly runtimeFields: string;
};
readonly addData: string;
readonly kibana: string;
readonly upgradeAssistant: string;
readonly rollupJobs: string;
readonly elasticsearch: Record<string, string>;
readonly siem: {
readonly privileges: string;
readonly guide: string;
readonly gettingStarted: string;
readonly ml: string;
readonly ruleChangeLog: string;
readonly detectionsReq: string;
readonly networkMap: string;
readonly troubleshootGaps: string;
};
readonly securitySolution: {
readonly trustedApps: string;
};
readonly query: {
readonly eql: string;
readonly kueryQuerySyntax: string;
readonly luceneQuerySyntax: string;
readonly percolate: string;
readonly queryDsl: string;
readonly autocompleteChanges: string;
};
readonly date: {
readonly dateMath: string;
readonly dateMathIndexNames: string;
};
readonly management: Record<string, string>;
readonly ml: Record<string, string>;
readonly transforms: Record<string, string>;
readonly visualize: Record<string, string>;
readonly apis: Readonly<{
bulkIndexAlias: string;
byteSizeUnits: string;
createAutoFollowPattern: string;
createFollower: string;
createIndex: string;
createSnapshotLifecyclePolicy: string;
createRoleMapping: string;
createRoleMappingTemplates: string;
createRollupJobsRequest: string;
createApiKey: string;
createPipeline: string;
createTransformRequest: string;
cronExpressions: string;
executeWatchActionModes: string;
indexExists: string;
openIndex: string;
putComponentTemplate: string;
painlessExecute: string;
painlessExecuteAPIContexts: string;
putComponentTemplateMetadata: string;
putSnapshotLifecyclePolicy: string;
putIndexTemplateV1: string;
putWatch: string;
simulatePipeline: string;
timeUnits: string;
updateTransform: string;
}>;
readonly observability: Readonly<{
guide: string;
infrastructureThreshold: string;
logsThreshold: string;
metricsThreshold: string;
monitorStatus: string;
monitorUptime: string;
tlsCertificate: string;
uptimeDurationAnomaly: string;
}>;
readonly alerting: Record<string, string>;
readonly maps: Record<string, string>;
readonly monitoring: Record<string, string>;
readonly security: Readonly<{
apiKeyServiceSettings: string;
clusterPrivileges: string;
elasticsearchSettings: string;
elasticsearchEnableSecurity: string;
elasticsearchEnableApiKeys: string;
indicesPrivileges: string;
kibanaTLS: string;
kibanaPrivileges: string;
mappingRoles: string;
mappingRolesFieldRules: string;
runAsPrivilege: string;
}>;
readonly spaces: Readonly<{
kibanaLegacyUrlAliases: string;
kibanaDisableLegacyUrlAliasesApi: string;
}>;
readonly watcher: Record<string, string>;
readonly ccs: Record<string, string>;
readonly plugins: Record<string, string>;
readonly snapshotRestore: Record<string, string>;
readonly ingest: Record<string, string>;
readonly fleet: Readonly<{
datastreamsILM: string;
beatsAgentComparison: string;
guide: string;
fleetServer: string;
fleetServerAddFleetServer: string;
settings: string;
settingsFleetServerHostSettings: string;
troubleshooting: string;
elasticAgent: string;
datastreams: string;
datastreamsNamingScheme: string;
installElasticAgent: string;
upgradeElasticAgent: string;
upgradeElasticAgent712lower: string;
learnMoreBlog: string;
apiKeysLearnMore: string;
}>;
readonly ecs: {
readonly guide: string;
};
readonly clients: {
readonly guide: string;
readonly goOverview: string;
readonly javaIndex: string;
readonly jsIntro: string;
readonly netGuide: string;
readonly perlGuide: string;
readonly phpGuide: string;
readonly pythonGuide: string;
readonly rubyOverview: string;
readonly rustGuide: string;
};
readonly endpoints: {
readonly troubleshooting: string;
};
}
| |
diff --git a/docs/index-extra-title-page.html b/docs/index-extra-title-page.html
index 2621848ebea8a..ff1c879c0f409 100644
--- a/docs/index-extra-title-page.html
+++ b/docs/index-extra-title-page.html
@@ -64,7 +64,7 @@
Create an index patternCreate a data view
diff --git a/docs/management/advanced-options.asciidoc b/docs/management/advanced-options.asciidoc
index 56b7eb09252ed..7e7ff1137794c 100644
--- a/docs/management/advanced-options.asciidoc
+++ b/docs/management/advanced-options.asciidoc
@@ -2,7 +2,7 @@
== Advanced Settings
*Advanced Settings* control the behavior of {kib}. For example, you can change the format used to display dates,
-specify the default index pattern, and set the precision for displayed decimal values.
+specify the default data view, and set the precision for displayed decimal values.
. Open the main menu, then click *Stack Management > Advanced Settings*.
. Scroll or search for the setting.
@@ -134,10 +134,6 @@ value by the maximum number of aggregations in each visualization.
[[history-limit]]`history:limit`::
In fields that have history, such as query inputs, show this many recent values.
-[[indexpattern-placeholder]]`indexPattern:placeholder`::
-The default placeholder value to use in
-*Management > Index Patterns > Create Index Pattern*.
-
[[metafields]]`metaFields`::
Fields that exist outside of `_source`. Kibana merges these fields into the
document when displaying it.
@@ -283,7 +279,7 @@ value is 5.
[[context-tiebreakerfields]]`context:tieBreakerFields`::
A comma-separated list of fields to use for breaking a tie between documents
that have the same timestamp value. The first field that is present and sortable
-in the current index pattern is used.
+in the current data view is used.
[[defaultcolumns]]`defaultColumns`::
The columns that appear by default on the *Discover* page. The default is
@@ -296,7 +292,7 @@ The number of rows to show in the *Discover* table.
Specifies the maximum number of fields to show in the document column of the *Discover* table.
[[discover-modify-columns-on-switch]]`discover:modifyColumnsOnSwitch`::
-When enabled, removes the columns that are not in the new index pattern.
+When enabled, removes the columns that are not in the new data view.
[[discover-sample-size]]`discover:sampleSize`::
Specifies the number of rows to display in the *Discover* table.
@@ -314,7 +310,7 @@ does not have an effect when loading a saved search.
When enabled, displays multi-fields in the expanded document view.
[[discover-sort-defaultorder]]`discover:sort:defaultOrder`::
-The default sort direction for time-based index patterns.
+The default sort direction for time-based data views.
[[doctable-hidetimecolumn]]`doc_table:hideTimeColumn`::
Hides the "Time" column in *Discover* and in all saved searches on dashboards.
@@ -391,8 +387,8 @@ A custom image to use in the footer of the PDF.
==== Rollup
[horizontal]
-[[rollups-enableindexpatterns]]`rollups:enableIndexPatterns`::
-Enables the creation of index patterns that capture rollup indices, which in
+[[rollups-enabledataviews]]`rollups:enableDataViews`::
+Enables the creation of data views that capture rollup indices, which in
turn enables visualizations based on rollup data. Refresh the page to apply the
changes.
@@ -408,7 +404,7 @@ to use when `courier:setRequestPreference` is set to "custom".
[[courier-ignorefilteriffieldnotinindex]]`courier:ignoreFilterIfFieldNotInIndex`::
Skips filters that apply to fields that don't exist in the index for a
visualization. Useful when dashboards consist of visualizations from multiple
-index patterns.
+data views.
[[courier-maxconcurrentshardrequests]]`courier:maxConcurrentShardRequests`::
Controls the {ref}/search-multi-search.html[max_concurrent_shard_requests]
diff --git a/docs/management/images/management-rollup-index-pattern.png b/docs/management/images/management-rollup-index-pattern.png
deleted file mode 100644
index de7976e63f050..0000000000000
Binary files a/docs/management/images/management-rollup-index-pattern.png and /dev/null differ
diff --git a/docs/management/manage-index-patterns.asciidoc b/docs/management/manage-data-views.asciidoc
similarity index 76%
rename from docs/management/manage-index-patterns.asciidoc
rename to docs/management/manage-data-views.asciidoc
index 08527ffa75d4a..a092da669d45e 100644
--- a/docs/management/manage-index-patterns.asciidoc
+++ b/docs/management/manage-data-views.asciidoc
@@ -1,26 +1,29 @@
-[[managing-index-patterns]]
-== Manage index pattern data fields
+[[managing-data-views]]
+== Manage data views
-To customize the data fields in your index pattern, you can add runtime fields to the existing documents, add scrited fields to compute data on the fly, and change how {kib} displays the data fields.
+To customize the data fields in your data view,
+you can add runtime fields to the existing documents,
+add scripted fields to compute data on the fly, and change how {kib} displays the data fields.
[float]
[[runtime-fields]]
-=== Explore your data with runtime fields
+=== Explore your data with runtime fields
-Runtime fields are fields that you add to documents after you've ingested your data, and are evaluated at query time. With runtime fields, you allow for a smaller index and faster ingest time so that you can use less resources and reduce your operating costs. You can use runtime fields anywhere index patterns are used, for example, you can explore runtime fields in *Discover* and create visualizations with runtime fields for your dashboard.
+Runtime fields are fields that you add to documents after you've ingested your data, and are evaluated at query time. With runtime fields, you allow for a smaller index and faster ingest time so that you can use less resources and reduce your operating costs.
+You can use runtime fields anywhere data views are used, for example, you can explore runtime fields in *Discover* and create visualizations with runtime fields for your dashboard.
With runtime fields, you can:
-* Define fields for a specific use case without modifying the underlying schema.
+* Define fields for a specific use case without modifying the underlying schema.
* Override the returned values from index fields.
-* Start working on your data without understanding the structure.
+* Start working on your data without understanding the structure.
-* Add fields to existing documents without reindexing your data.
+* Add fields to existing documents without reindexing your data.
-WARNING: Runtime fields can impact {kib} performance. When you run a query, {es} uses the fields you index first to shorten the response time.
-Index the fields that you commonly search for and filter on, such as `timestamp`, then use runtime fields to limit the number of fields {es} uses to calculate values.
+WARNING: Runtime fields can impact {kib} performance. When you run a query, {es} uses the fields you index first to shorten the response time.
+Index the fields that you commonly search for and filter on, such as `timestamp`, then use runtime fields to limit the number of fields {es} uses to calculate values.
For detailed information on how to use runtime fields with {es}, refer to {ref}/runtime.html[Runtime fields].
@@ -28,17 +31,21 @@ For detailed information on how to use runtime fields with {es}, refer to {ref}/
[[create-runtime-fields]]
==== Add runtime fields
-To add runtime fields to your index patterns, open the index pattern you want to change, then define the field values by emitting a single value using the {ref}/modules-scripting-painless.html[Painless scripting language]. You can also add runtime fields in <> and <>.
+To add runtime fields to your data views, open the data view you want to change,
+then define the field values by emitting a single value using
+the {ref}/modules-scripting-painless.html[Painless scripting language].
+You can also add runtime fields in <> and <>.
-. Open the main menu, then click *Stack Management > Index Patterns*.
+. Open the main menu, then click *Stack Management > Data Views*.
-. Select the index pattern you want to add the runtime field to, then click *Add field*.
+. Select the data view that you want to add the runtime field to, then click *Add field*.
. Enter the field *Name*, then select the *Type*.
-. Select *Set custom label*, then enter the label you want to display where the index pattern is used, such as *Discover*.
+. Select *Set custom label*, then enter the label you want to display where the data view is used,
+such as *Discover*.
-. Select *Set value*, then define the script. The script must match the *Type*, or the index pattern fails anywhere it is used.
+. Select *Set value*, then define the script. The script must match the *Type*, or the data view fails anywhere it is used.
. To help you define the script, use the *Preview*:
@@ -46,7 +53,8 @@ To add runtime fields to your index patterns, open the index pattern you want to
* To filter the fields list, enter the keyword in *Filter fields*.
-* To pin frequently used fields to the top of the list, hover over the field, then click image:images/stackManagement-indexPatterns-pinRuntimeField-7.15.png[Icon to pin field to the top of the list].
+* To pin frequently used fields to the top of the list, hover over the field,
+then click image:images/stackManagement-indexPatterns-pinRuntimeField-7.15.png[Icon to pin field to the top of the list].
. Click *Create field*.
@@ -54,7 +62,7 @@ To add runtime fields to your index patterns, open the index pattern you want to
[[runtime-field-examples]]
==== Runtime field examples
-Try the runtime field examples on your own using the <> data index pattern.
+Try the runtime field examples on your own using the <> data.
[float]
[[simple-hello-world-example]]
@@ -110,7 +118,7 @@ if (source != null) {
emit(source);
return;
}
-else {
+else {
emit("None");
}
----
@@ -123,7 +131,7 @@ def source = doc['machine.os.keyword'].value;
if (source != "") {
emit(source);
}
-else {
+else {
emit("None");
}
----
@@ -132,15 +140,15 @@ else {
[[manage-runtime-fields]]
==== Manage runtime fields
-Edit the settings for runtime fields, or remove runtime fields from index patterns.
+Edit the settings for runtime fields, or remove runtime fields from data views.
-. Open the main menu, then click *Stack Management > Index Patterns*.
+. Open the main menu, then click *Stack Management > Data Views*.
-. Select the index pattern that contains the runtime field you want to manage, then open the runtime field edit options or delete the runtime field.
+. Select the data view that contains the runtime field you want to manage, then open the runtime field edit options or delete the runtime field.
[float]
[[scripted-fields]]
-=== Add scripted fields to index patterns
+=== Add scripted fields to data views
deprecated::[7.13,Use {ref}/runtime.html[runtime fields] instead of scripted fields. Runtime fields support Painless scripts and provide greater flexibility.]
@@ -168,11 +176,11 @@ https://www.elastic.co/blog/using-painless-kibana-scripted-fields[Using Painless
[[create-scripted-field]]
==== Create scripted fields
-Create and add scripted fields to your index patterns.
+Create and add scripted fields to your data views.
-. Open the main menu, then click *Stack Management > Index Patterns*.
+. Open the main menu, then click *Stack Management > Data Views*.
-. Select the index pattern you want to add a scripted field to.
+. Select the data view you want to add a scripted field to.
. Select the *Scripted fields* tab, then click *Add scripted field*.
@@ -186,9 +194,9 @@ For more information about scripted fields in {es}, refer to {ref}/modules-scrip
[[update-scripted-field]]
==== Manage scripted fields
-. Open the main menu, then click *Stack Management > Index Patterns*.
+. Open the main menu, then click *Stack Management > Data Views*.
-. Select the index pattern that contains the scripted field you want to manage.
+. Select the data view that contains the scripted field you want to manage.
. Select the *Scripted fields* tab, then open the scripted field edit options or delete the scripted field.
@@ -202,9 +210,9 @@ exceptions when you view the dynamically generated data.
{kib} uses the same field types as {es}, however, some {es} field types are unsupported in {kib}.
To customize how {kib} displays data fields, use the formatting options.
-. Open the main menu, then click *Stack Management > Index Patterns*.
+. Open the main menu, then click *Stack Management > Data Views*.
-. Click the index pattern that contains the field you want to change.
+. Click the data view that contains the field you want to change.
. Find the field, then open the edit options (image:management/index-patterns/images/edit_icon.png[Data field edit icon]).
@@ -261,4 +269,4 @@ include::field-formatters/string-formatter.asciidoc[]
include::field-formatters/duration-formatter.asciidoc[]
-include::field-formatters/color-formatter.asciidoc[]
\ No newline at end of file
+include::field-formatters/color-formatter.asciidoc[]
diff --git a/docs/management/managing-saved-objects.asciidoc b/docs/management/managing-saved-objects.asciidoc
index 5b39c6ad1c4cd..b9859575051af 100644
--- a/docs/management/managing-saved-objects.asciidoc
+++ b/docs/management/managing-saved-objects.asciidoc
@@ -2,10 +2,10 @@
== Saved Objects
The *Saved Objects* UI helps you keep track of and manage your saved objects. These objects
-store data for later use, including dashboards, visualizations, maps, index patterns,
+store data for later use, including dashboards, visualizations, maps, data views,
Canvas workpads, and more.
-To get started, open the main menu, then click *Stack Management > Saved Objects*.
+To get started, open the main menu, then click *Stack Management > Saved Objects*.
[role="screenshot"]
image::images/management-saved-objects.png[Saved Objects]
@@ -85,7 +85,7 @@ You have two options for exporting saved objects.
* Click *Export x objects*, and export objects by type.
This action creates an NDJSON with all your saved objects. By default, the NDJSON includes child objects that are related to the saved
-objects. Exported dashboards include their associated index patterns.
+objects. Exported dashboards include their associated data views.
NOTE: The <> configuration setting
limits the number of saved objects which may be exported.
@@ -120,7 +120,7 @@ If you access an object whose index has been deleted, you can:
* Recreate the index so you can continue using the object.
* Delete the object and recreate it using a different index.
* Change the index name in the object's `reference` array to point to an existing
-index pattern. This is useful if the index you were working with has been renamed.
+data view. This is useful if the index you were working with has been renamed.
WARNING: Validation is not performed for object properties. Submitting an invalid
change will render the object unusable. A more failsafe approach is to use
diff --git a/docs/management/numeral.asciidoc b/docs/management/numeral.asciidoc
index 893873eb1075a..d6c8fbc9011fc 100644
--- a/docs/management/numeral.asciidoc
+++ b/docs/management/numeral.asciidoc
@@ -9,7 +9,7 @@ they are now maintained by {kib}.
Numeral formatting patterns are used in multiple places in {kib}, including:
* <>
-* <>
+* <>
* <>
* <