Skip to content

Commit 175045e

Browse files
Merge branch 'master' into bugfix/watcher_status
2 parents 0fad3e6 + 3602f0f commit 175045e

File tree

4,551 files changed

+71420
-55560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,551 files changed

+71420
-55560
lines changed

.ci/Jenkinsfile_coverage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def handleIngestion(timestamp) {
2323
kibanaPipeline.downloadCoverageArtifacts()
2424
kibanaCoverage.prokLinks("### Process HTML Links")
2525
kibanaCoverage.collectVcsInfo("### Collect VCS Info")
26+
kibanaCoverage.generateReports("### Merge coverage reports")
27+
kibanaCoverage.uploadCombinedReports()
2628
kibanaCoverage.ingest(timestamp, '### Injest && Upload')
2729
kibanaCoverage.uploadCoverageStaticSite(timestamp)
2830
}

.ci/packer_cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ echo "Creating bootstrap_cache archive"
4040
# archive cacheable directories
4141
mkdir -p "$HOME/.kibana/bootstrap_cache"
4242
tar -cf "$HOME/.kibana/bootstrap_cache/$branch.tar" \
43-
x-pack/legacy/plugins/reporting/.chromium \
43+
x-pack/plugins/reporting/.chromium \
4444
.es \
4545
.chromedriver \
4646
.geckodriver;

.eslintrc.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ module.exports = {
202202
from: ['(src|x-pack)/plugins/*/server/**/*'],
203203
errorMessage: `Public code can not import from server, use a common directory.`,
204204
},
205+
{
206+
target: ['(src|x-pack)/plugins/*/common/**/*'],
207+
from: ['(src|x-pack)/plugins/*/(server|public)/**/*'],
208+
errorMessage: `Common code can not import from server or public, use a common directory.`,
209+
},
205210
{
206211
target: [
207212
'(src|x-pack)/legacy/**/*',
@@ -220,7 +225,7 @@ module.exports = {
220225
'!src/core/server/index.ts', // relative import
221226
'!src/core/server/mocks{,.ts}',
222227
'!src/core/server/types{,.ts}',
223-
'!src/core/server/test_utils',
228+
'!src/core/server/test_utils{,.ts}',
224229
// for absolute imports until fixed in
225230
// https://github.com/elastic/kibana/issues/36096
226231
'!src/core/server/*.test.mocks{,.ts}',
@@ -582,11 +587,11 @@ module.exports = {
582587
},
583588

584589
/**
585-
* SIEM overrides
590+
* Security Solution overrides
586591
*/
587592
{
588593
// front end typescript and javascript files only
589-
files: ['x-pack/plugins/siem/public/**/*.{js,ts,tsx}'],
594+
files: ['x-pack/plugins/security_solution/public/**/*.{js,ts,tsx}'],
590595
rules: {
591596
'import/no-nodejs-modules': 'error',
592597
'no-restricted-imports': [
@@ -600,7 +605,7 @@ module.exports = {
600605
},
601606
{
602607
// typescript only for front and back end
603-
files: ['x-pack/{,legacy/}plugins/siem/**/*.{ts,tsx}'],
608+
files: ['x-pack/{,legacy/}plugins/security_solution/**/*.{ts,tsx}'],
604609
rules: {
605610
// This will be turned on after bug fixes are complete
606611
// '@typescript-eslint/explicit-member-accessibility': 'warn',
@@ -635,7 +640,7 @@ module.exports = {
635640
// {
636641
// // will introduced after the other warns are fixed
637642
// // typescript and javascript for front end react performance
638-
// files: ['x-pack/plugins/siem/public/**/!(*.test).{js,ts,tsx}'],
643+
// files: ['x-pack/plugins/security_solution/public/**/!(*.test).{js,ts,tsx}'],
639644
// plugins: ['react-perf'],
640645
// rules: {
641646
// // 'react-perf/jsx-no-new-object-as-prop': 'error',
@@ -646,7 +651,7 @@ module.exports = {
646651
// },
647652
{
648653
// typescript and javascript for front and back end
649-
files: ['x-pack/{,legacy/}plugins/siem/**/*.{js,ts,tsx}'],
654+
files: ['x-pack/{,legacy/}plugins/security_solution/**/*.{js,ts,tsx}'],
650655
plugins: ['eslint-plugin-node', 'react'],
651656
env: {
652657
mocha: true,

.github/CODEOWNERS

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
/config/kibana.yml @elastic/kibana-platform
140140
/x-pack/plugins/features/ @elastic/kibana-platform
141141
/x-pack/plugins/licensing/ @elastic/kibana-platform
142+
/x-pack/plugins/global_search/ @elastic/kibana-platform
142143
/x-pack/plugins/cloud/ @elastic/kibana-platform
143144
/packages/kbn-config-schema/ @elastic/kibana-platform
144145
/src/legacy/server/config/ @elastic/kibana-platform
@@ -225,12 +226,12 @@
225226
/x-pack/test/plugin_functional/plugins/resolver_test/ @elastic/endpoint-app-team @elastic/siem
226227
/x-pack/test/plugin_functional/test_suites/resolver/ @elastic/endpoint-app-team @elastic/siem
227228

228-
# SIEM
229-
/x-pack/plugins/siem/ @elastic/siem @elastic/endpoint-app-team
229+
# Security Solution
230+
/x-pack/plugins/security_solution/ @elastic/siem @elastic/endpoint-app-team
230231
/x-pack/test/detection_engine_api_integration @elastic/siem @elastic/endpoint-app-team
231-
/x-pack/test/api_integration/apis/siem @elastic/siem @elastic/endpoint-app-team
232+
/x-pack/test/api_integration/apis/security_solution @elastic/siem @elastic/endpoint-app-team
232233
/x-pack/plugins/case @elastic/siem @elastic/endpoint-app-team
233234
/x-pack/plugins/lists @elastic/siem @elastic/endpoint-app-team
234235

235236
# Security Intelligence And Analytics
236-
/x-pack/plugins/siem/server/lib/detection_engine/rules/prepackaged_rules @elastic/security-intelligence-analytics
237+
/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules @elastic/security-intelligence-analytics

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true) {
4141
'xpack-ciGroup9': kibanaPipeline.xpackCiGroupProcess(9),
4242
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
4343
'xpack-accessibility': kibanaPipeline.functionalTestProcess('xpack-accessibility', './test/scripts/jenkins_xpack_accessibility.sh'),
44-
'xpack-siemCypress': { processNumber ->
45-
whenChanged(['x-pack/plugins/siem/', 'x-pack/test/siem_cypress/']) {
46-
kibanaPipeline.functionalTestProcess('xpack-siemCypress', './test/scripts/jenkins_siem_cypress.sh')(processNumber)
44+
'xpack-securitySolutionCypress': { processNumber ->
45+
whenChanged(['x-pack/plugins/security_solution/', 'x-pack/test/security_solution_cypress/']) {
46+
kibanaPipeline.functionalTestProcess('xpack-securitySolutionCypress', './test/scripts/jenkins_security_solution_cypress.sh')(processNumber)
4747
}
4848
},
4949

docs/apm/advanced-queries.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ or, to only show transactions that are slower than a specified time threshold.
1111
==== Example APM app queries
1212

1313
* Exclude response times slower than 2000 ms: `transaction.duration.us > 2000000`
14-
* Filter by response status code: `context.response.status_code >= 400`
14+
* Filter by response status code: `context.response.status_code 400`
1515
* Filter by single user ID: `context.user.id : 12`
1616

1717
When querying in the APM app, you're merely searching and selecting data from fields in Elasticsearch documents.

docs/apm/deployment-annotations.asciidoc

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,40 @@
77
++++
88

99
For enhanced visibility into your deployments, we offer deployment annotations on all transaction charts.
10-
This feature automatically tags new deployments, so you can easily see if your deploy has increased response times
11-
for an end-user, or if the memory/CPU footprint of your application has changed.
12-
Being able to identify bad deployments quickly enables you to rollback and fix issues without causing costly outages.
10+
This feature enables you to easily determine if your deployment has increased response times for an end-user,
11+
or if the memory/CPU footprint of your application has changed.
12+
Being able to quickly identify bad deployments enables you to rollback and fix issues without causing costly outages.
13+
14+
By default, automatic deployment annotations are enabled.
15+
This means the APM app will create an annotation on your data when the `service.version` of your application changes.
16+
17+
Alternatively, you can explicitly create deployment annotations with our annotation API.
18+
The API can integrate into your CI/CD pipeline,
19+
so that each time you deploy, a POST request is sent to the annotation API endpoint:
20+
21+
[source,console]
22+
----
23+
curl -X POST \
24+
http://localhost:5601/api/apm/services/${SERVICE_NAME}/annotation \ <1>
25+
-H 'Content-Type: application/json' \
26+
-H 'kbn-xsrf: true' \
27+
-H 'Authorization: Basic ${API_KEY}' \ <2>
28+
-d '{
29+
"@timestamp": "${DEPLOY_TIME}", <3>
30+
"service": {
31+
"version": "${SERVICE_VERSION}" <4>
32+
},
33+
"message": "${MESSAGE}" <5>
34+
}'
35+
----
36+
<1> The `service.name` of your application
37+
<2> An APM app API key with sufficient privileges
38+
<3> The time of the deployment
39+
<4> The `service.version` to be displayed in the annotation
40+
<5> A custom message to be displayed in the annotation
41+
42+
See the <<apm-annotation-api,annotation API>> reference for more information.
1343

14-
Deployment annotations are enabled by default, and can be created with the <<apm-annotation-api,annotation API>>.
15-
If there are no created annotations for the selected time period,
16-
the APM app will automatically annotate your data if the `service.version` of your application changes.
1744

1845
NOTE: If custom annotations have been created for the selected time period, any derived annotations, i.e., those created automatically when `service.version` changes, will not be shown.
1946

docs/apm/service-maps.asciidoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Machine learning jobs can be created to calculate anomaly scores on APM transact
6262
When these jobs are active, service maps will display a color-coded anomaly indicator based on the detected anomaly score:
6363

6464
[horizontal]
65-
image:apm/images/green-service.png[APM green service]:: Max anomaly score **<=25**. Service is healthy.
65+
image:apm/images/green-service.png[APM green service]:: Max anomaly score **25**. Service is healthy.
6666
image:apm/images/yellow-service.png[APM yellow service]:: Max anomaly score **26-74**. Anomalous activity detected. Service may be degraded.
67-
image:apm/images/red-service.png[APM red service]:: Max anomaly score **>=75**. Anomalous activity detected. Service is unhealthy.
67+
image:apm/images/red-service.png[APM red service]:: Max anomaly score **75**. Anomalous activity detected. Service is unhealthy.
6868

6969
[role="screenshot"]
7070
image::apm/images/apm-service-map-anomaly.png[Example view of anomaly scores on service maps in the APM app]
@@ -92,10 +92,10 @@ Type and subtype are based on `span.type`, and `span.subtype`.
9292
Service maps are supported for the following Agent versions:
9393

9494
[horizontal]
95-
Go Agent:: >= v1.7.0
96-
Java Agent:: >= v1.13.0
97-
.NET Agent:: >= v1.3.0
98-
Node.js Agent:: >= v3.6.0
99-
Python Agent:: >= v5.5.0
100-
Ruby Agent:: >= v3.6.0
101-
Real User Monitoring (RUM) Agent:: >= v4.7.0
95+
Go Agent:: v1.7.0
96+
Java Agent:: v1.13.0
97+
.NET Agent:: v1.3.0
98+
Node.js Agent:: v3.6.0
99+
Python Agent:: v5.5.0
100+
Ruby Agent:: v3.6.0
101+
Real User Monitoring (RUM) Agent:: v4.7.0

docs/canvas/canvas-elements.asciidoc

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,38 @@ By default, most of the elements you create use demo data until you change the d
2727

2828
* *Timelion* &mdash; Access your time series data using <<timelion,Timelion>> queries. To use Timelion queries, you can enter a query using the <<lucene-query,Lucene Query Syntax>>.
2929

30+
Each element can display a different data source. Pages and workpads often contain multiple data sources.
31+
3032
[float]
3133
[[canvas-add-object]]
3234
==== Add a saved object
3335

34-
Add a <<managing-saved-objects,saved object>>, then customize it to fit your display needs.
36+
Add <<managing-saved-objects,saved objects>> to your workpad, such as maps and visualizations.
3537

36-
. Click *Embed object*.
38+
. Click *Add element > Add from Visualize Library*.
3739

38-
. Select the object you want to add.
40+
. Select the saved object you want to add.
3941
+
4042
[role="screenshot"]
4143
image::images/canvas-map-embed.gif[]
4244

4345
. To use the customization options, click the panel menu, then select one of the following options:
4446

45-
* *Edit map* &mdash; Opens <<maps,Maps>> so that you can edit the original map.
47+
* *Edit map* &mdash; Opens <<maps,Maps>> or <<visualize,Visualize>> so that you can edit the original saved object.
4648

47-
* *Customize panel* &mdash; Specifies the object title options.
49+
* *Edit panel title* &mdash; Adds a title to the saved object.
4850

49-
* *Inspect* &mdash; Allows you to drill down into the element data.
51+
* *Customize time range* &mdash; Exposes a time filter dedicated to the saved object.
5052

51-
* *Customize time range* &mdash; Exposes a time filter dedicated to the map.
53+
* *Inspect* &mdash; Allows you to drill down into the element data.
5254

5355
[float]
5456
[[canvas-add-image]]
5557
==== Add your own image
5658

5759
To personalize your workpad, add your own logos and graphics.
5860

59-
. Click *Manage assets*.
61+
. Click *Add element > Manage assets*.
6062

6163
. On the *Manage workpad assets* window, drag and drop your images.
6264

@@ -83,40 +85,25 @@ Move and resize your elements to meet your design needs.
8385
[[format-canvas-elements]]
8486
==== Format elements
8587

86-
Align, distribute, and reorder elements for consistency and readability across your workpad pages.
87-
88-
Access the align, distribute, and reorder options by clicking the *Element options* icon.
89-
90-
[role="screenshot"]
91-
image::images/canvas_element_options.png[]
88+
For consistency and readability across your workpad pages, align, distribute, and reorder elements.
9289

93-
To align elements:
90+
To align two or more elements:
9491

9592
. Press and hold Shift, then select the elements you want to align.
9693

97-
. Click the , then select *Group*.
94+
. Click *Edit > Alignment*, then select the alignment option.
9895

99-
. Click the *Element options* icon, then select *Alignment*.
100-
101-
. Select the alignment option.
102-
103-
To distribute elements:
96+
To distribute three or more elements:
10497

10598
. Press and hold Shift, then select the elements you want to distribute.
10699

107-
. Click the *Element options* icon, then select *Group*.
108-
109-
. Click the *Element options* icon, then select *Distribution*.
110-
111-
. Select the distribution option.
100+
. Click *Edit > Distribution*, then select the distribution option.
112101

113102
To reorder elements:
114103

115104
. Select the element you want to reorder.
116105

117-
. Click the *Element options* icon, then select *Order*.
118-
119-
. Select the order option.
106+
. Click *Edit > Order*, then select the order option.
120107

121108
[float]
122109
[[data-display]]
@@ -157,14 +144,14 @@ text.align: center;
157144

158145
To use the elements across all workpads, save the elements.
159146

160-
When you're ready to save your element, select the element, then click the *Save as new element* icon.
147+
When you're ready to save your element, select the element, then click *Edit > Save as new element*.
161148

162149
[role="screenshot"]
163150
image::images/canvas_save_element.png[]
164151

165-
To save a group of elements, press and hold Shift, then select the elements you want to save.
152+
To save a group of elements, press and hold Shift, select the elements you want to save, then click *Edit > Save as new element*.
166153

167-
To access your saved elements, click *Add element*, then select *My elements*.
154+
To access your saved elements, click *Add element > My elements*.
168155

169156
[float]
170157
[[delete-elements]]
@@ -174,9 +161,7 @@ When you no longer need an element, delete it from your workpad.
174161

175162
. Select the element you want to delete.
176163

177-
. Click the *Element options* icon.
164+
. Click *Edit > Delete*.
178165
+
179166
[role="screenshot"]
180167
image::images/canvas_element_options.png[]
181-
182-
. Select *Delete*.

docs/canvas/canvas-present-workpad.asciidoc

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@
44

55
When you are ready to present your workpad, use and enable the presentation options.
66

7-
[float]
8-
[[view-fullscreen-mode]]
9-
==== View your workpad in fullscreen mode
7+
. Configure the autoplay options.
108

11-
Click the *Enter fullscreen mode* icon.
9+
.. From the workpad menu, click *View > Autoplay settings*.
1210

11+
.. Under *Change cycling interval*, select the interval you want to use, or *Set a custom interval*.
12+
+
1313
[role="screenshot"]
14-
image::images/canvas-fullscreen.png[Fullscreen mode]
15-
16-
[float]
17-
[[enable-autoplay]]
18-
==== Enable autoplay
14+
image::images/canvas-autoplay-interval.png[Element autoplay interval]
1915

20-
Automatically cycle through your workpads pages in fullscreen mode.
16+
. To enable autoplay, click *View > Turn autoplay on*.
2117

22-
. Click the *Control settings* icon.
23-
24-
. Under *Change cycling interval*, select the interval you want to use.
18+
. To start your presentation, click *View > Enter fullscreen mode*.
2519
+
2620
[role="screenshot"]
27-
image::images/canvas-refresh-interval.png[Element data refresh interval]
21+
image::images/canvas-fullscreen.png[Fullscreen mode]
22+
23+
. When you are ready to exit fullscreen mode, press the Esc (Escape) key.

0 commit comments

Comments
 (0)