Commit graph

27235 commits

Author SHA1 Message Date
Tyler Smalley 6321007cac
[backport-config] Adds 7.4 branch (#44402)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-29 10:08:19 -07:00
Liza Katz 7b6b6862c3
Update TableListView to use default savedObjects:perPage config (#43979)
* update table list view to use default savedObjects:perPage

* move pagination settings out of state
2019-08-29 19:58:05 +03:00
Garrett Spong 7995b7edc3
[SIEM] Adds telemetry for ML functionality (#43926)
## Summary

As outlined in https://github.com/elastic/siem-team/issues/447, this PR adds the following telemetry events for ML functionality:

``` ts
  SIEM_JOB_ENABLED = 'siem_job_enabled',
  SIEM_JOB_DISABLED = 'siem_job_disabled',
  CUSTOM_JOB_ENABLED = 'custom_job_enabled',
  CUSTOM_JOB_DISABLED = 'custom_job_disabled',
  JOB_ENABLE_FAILURE = 'job_enable_failure',
  JOB_DISABLE_FAILURE = 'job_disable_failure',
```


### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [ ] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [ ] ~Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~
- [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~
- [ ] ~[Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-08-29 10:40:36 -06:00
Garrett Spong d8a0226492
[SIEM] Adds Connections (Pewpew) Map to Network Page (#43965)
## Summary

This PR uses the Embeddables API to embed a [Connections Map](https://github.com/elastic/kibana/pull/41504) on the Network Page of the SIEM App. A [Map Configuration](https://github.com/elastic/kibana/pull/43878) is generated on page load for configured Kibana Index Patterns that match the `siem:defaultIndex` setting in Kibana Advanced Settings, with a `Source`, `Destination`, and `Line` layer being created for each configured Kibana Index Pattern.

Features includes:
* Global KQL Bar Filtering
* Global Timerange Filtering
* Global Refresh
* Click on a feature on the map to view details in tooltip
  * Line Selection: shows `Total Source/Destination Bytes` and `Total Documents` in tooltip
  * Source/Destination Selection: shows `host.name` and `host.ip`
* Send filter to Global KQL Bar from Source/Destination feature tooltip (`host.name` and `host.ip`)
* Informative error when index patterns aren't configured that links to specific beats setup documentation (e.g. [auditbeat setup docs](https://www.elastic.co/guide/en/beats/auditbeat/current/load-kibana-dashboards.html))

#### Dark Theme:
![image](https://user-images.githubusercontent.com/2946766/63667505-4dbe1900-c791-11e9-9b1e-9b690eafc405.png)

#### Light Theme:
![image](https://user-images.githubusercontent.com/2946766/63667685-f2d8f180-c791-11e9-840e-6d3fbe0adaf2.png)

### Visual Feature Catalogue®

<details><summary>Global KQL Bar Filtering</summary>

![pewpew_global_kql_filter](https://user-images.githubusercontent.com/2946766/63803146-72210f00-c8d1-11e9-951a-18571bbf9069.gif)
</details>

<details><summary>Global Timerange Filtering + Refreshing</summary>

![pewpew_global_time_filter](https://user-images.githubusercontent.com/2946766/63803214-9b419f80-c8d1-11e9-8349-e4f40fa39200.gif)
</details>

<details><summary>Filter on `host.name` or `host.ip` From Map Tooltip</summary>

![pewpew_filter_on_property](https://user-images.githubusercontent.com/2946766/63803302-d6dc6980-c8d1-11e9-990d-c364b53e247b.gif)
</details>

<details><summary>Using Field Formatters in Tooltip to link to Host/Network Details</summary>

![pewpew_field_formatter_links](https://user-images.githubusercontent.com/2946766/63803333-e65bb280-c8d1-11e9-9743-81165e0f78d7.gif)
</details>

<details><summary>Error displayed when Index Patterns aren't available</summary>

![image](https://user-images.githubusercontent.com/2946766/63804367-418ea480-c8d4-11e9-9357-73418a197809.png)
</details>

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
  * Tested and all functionality works in Chrome/FF/Safari
  * IE11 fails to load map with `mapbox-gl.js` exception. Details: https://github.com/elastic/kibana/issues/44155
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials 
  * Not yet, but will work with @benskelker on this.
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-08-29 10:40:15 -06:00
Tiago Costa 9e10486153
chore(NA): remove random cwd from spawn on lsp ts_launcher (#44356) 2019-08-29 17:28:51 +01:00
Chris Roberson e4ded1f39e
[Monitoring] Ensure we pass down all the parameters for fetching logs (#43869)
* Ensure we pass these all the way down

* Add additional test

* Fix tests

* PR feedback

* Update copy and test wording
2019-08-29 12:27:39 -04:00
James Gowdy f68ad7efd0
[ML] Adding ecs to SIEM jobs names (#44383)
* [ML] Adding ecs to SIEM jobs names

* renaming file
2019-08-29 17:12:11 +01:00
Joe Reuter 6fad639f25
[Graph] Listing page and folder restructuring (#44068) 2019-08-29 17:19:56 +02:00
Xavier Mouligneau 0be4cf9e9a [SIEM] Add timeline id in url + refactor code (#43943)
* Add timelineId in URL + refactor url_state to only update redux store at global initialization

* add/fix unit test

* remove async

* wip

* new tests for timeline url state

* fix tests

* rm unused

* Add the expected  href around global tab

* fix conflict

* fix console error about Route

* fix type + test -- needed to refactor to default the value of the timline because of nasty type loop

* add href on detail tab to match
2019-08-29 16:23:12 +02:00
Andrew Cholakian 5bc81ed3d8
Add drawer to monitors page to show response bodies / errors (#44194)
Adds a drawer to the monitor page ping list showing errors and the body info for HTTP requests if present.

Fixes elastic/uptime#76
2019-08-29 08:26:03 -05:00
Caroline Horn fbc1be5240
Saved queries design cleanup (#44191) 2019-08-29 09:11:29 -04:00
Liza Katz 6b188b69cd
renable tests (#44362) 2019-08-29 14:33:13 +03:00
WangQianliang dd09e69e68
fix(code/frontend): should format plural (#44358) 2019-08-29 19:29:50 +08:00
Walter Rafelsberger 52e19177a0
[ML] Fix analytics results table layout. (#44363)
Avoids switching the grid-like analytics table to the mobile table version breaking the layout.
2019-08-29 03:52:39 -07:00
Steph Milovic 29b8ce2b7e [SIEM] Top Talkers: Split into Source and Destination (#43719)
* wip

* sources table working woohoo

* rename table back to n flow

* wired up both source and destination tables

* cleanups

* flows and ips sort

* flows and ips sort

* fix flow sorting

* differentiate tables

* bring back network

* fix tests

* integration tests updated

* add country names to flags, sort by desc on first click

* yarn doing its thing

* correct panel width during initial load

* remove default props

* fix inspect btn placement at small viewport sizes

* reformatting bytes

* used compressed table prop

* fix unit tests bytes

* update header subtext size

* override table cell display flex

* make titles plural

* less distracting empty string

* simplify markup and align numbers right

* improve more items experience

* undo compressed tables…looks bad

* stack tables

* restore compressed and side by side layout

* sentence case for titles

* table cleanup

* force more to separate line

* dnd poc changes

* jest test updates

* TypeScript, i18n, and bean-gen fixes

* fix for filter action color

* single quotes instead of backticks

* use getEmptyValue() instead of static emdash

* remove “ AS” prefix

* address PR concerns

* add space

* first attempt at prop change with matchMedia

* split table display by mediaMatch

* rm comments

* fix type issue

* correct react hook

* lint fix

* fix jest

* update snapshots
2019-08-29 12:32:56 +02:00
Pengcheng Xu 93e2eb3e74
[Code] Update download URLs for Java language server (#43962) 2019-08-29 19:29:14 +09:00
Angela Chuang ffcab55330
[SIEM] Apply tabs view on hosts and host details page with React Router (#44037)
* pass configs to tabs as props

* split components into tab views

* fix unit test

* move navigations configs to new files

* fix unit test

* add tabsto host details

* split tabs into routes

* fix unit test

* fix routing rules and bread crumb

* fix type error

* fix unit test

* fix tab location

* fix unit test

* fix for reviews

* rollback redundant change

* fix for reviews

* simplify logic for hosts redirect path

* add reference for the issue of brush event
2019-08-29 11:23:39 +01:00
James Gowdy 64ec780341
[ML] Adding new jobs to siem module (#43783)
* [ML] Adding new jobs to siem module

* updating descriptions

* removing new jobs

* updating manifests

* adding updated modules

* updating queries

* fixing detector

* updating job descriptions

* updating datafeed ids

* changing duplicate description

* changing match for term

* adding (beta) to descriptions
2019-08-29 10:32:05 +01:00
James Gowdy ce6b1953a8
[ML] Adding reset job button to wizards (#44257)
* [ML] Adding reset job button to wizards

* adding missing translations
2019-08-29 10:29:57 +01:00
sainthkh 962c3e9824 Show field type name when hovering over them (#35391) (#44208)
* Show field type name when hovering over them (#35391)
* Change of field names to follow EUI guideline
* Adaption of tests
2019-08-29 09:15:55 +02:00
WangQianliang 950a2b5225
[Code] fix flaky functional test (#43563)
* fix(code/frontend): fix flaky functional test
2019-08-29 14:07:09 +08:00
spalger 95447b7c77 disable failing suite (#44337) 2019-08-28 22:36:37 -07:00
spalger debf8c62b4 [ci] compress jobs for CI stability 2019-08-28 22:31:40 -07:00
spalger a9b29161cc Revert "combine jobs to cut down workers and trade time for stability"
This reverts commit d8daf9934f.
2019-08-28 21:08:58 -07:00
spalger 3ad4eb86da Revert "only build if necessary"
This reverts commit eb9f54d216.
2019-08-28 20:55:39 -07:00
spalger d22df96edb joining jobs didn't work 2019-08-28 20:49:57 -07:00
Pengcheng Xu a7138c5bf3
Bump @elastic/ctags-langserver to 0.1.9 (#44240) 2019-08-29 10:55:57 +09:00
Aaron Caldwell d42bc7d9ae
[Maps] Add attribution handling for TMS (config & UI-entry) and WMS (#44147)
* Add attribution for tms from config

* Add attribution entry fields & logic for tms from URL

* Set text and url fields invalid if both aren't present

* Don't return attribution unless both text and url defined

* Add wms inputs & handling

* Debounce input to prevent constantly generating new layers on keypress

* Remove unapplicable placeholder text on WMS attribution inputs
2019-08-28 19:12:19 -06:00
spalger eb9f54d216 only build if necessary 2019-08-28 17:49:08 -07:00
spalger 8e287f104a compress jobs a little more 2019-08-28 16:43:57 -07:00
spalger d8daf9934f combine jobs to cut down workers and trade time for stability 2019-08-28 16:35:34 -07:00
Lukas Olson 9fecf8df8a
Cancel visualize fetches when navigating away or re-fetching (#42035)
* add AbortSignal to interpreter

* adding AbortSignal to visualize_loader

* adding AbortSignal to embeddables and dashboard

* passing AbortSignal to courier request handler

* Remove abort signal from dashboard and move to handler, and abort fetches when necessary

* Remove the rest of the references to abort signal in dashboard

* Revert changes to dashboard_app

* Remove code related to canceling visualize requests and only keep stuff for canceling interpreter

* Use createError

* Cancel in-progress fetches when a new one is requested or when leaving the page

* Update with cancel methods and make visualize data loader work

* Remove unnecessary call to

* Fix tests

* Remove cancel from data loaders

* Fix search source to always either resolve or reject in fetch()

* Fix naming

* Update search request to reject on abort, and don't render errors in the UI

* Update tests

* Add cancellation to input control

* Cancel histogram fetches

* Update esaggs typings

* Add cancellation for search embeddables

* Abort post-flight requests
2019-08-28 15:57:26 -07:00
Felix Stürmer b0df7a8233
[Logs UI] Avoid unnecessary scrolling of the log analysis results tab (#44128)
This replaces the 100vh height setting of the second page section with a flex directive, which causes it to take up the remaining space of the surrounding flex column.
2019-08-29 00:47:50 +02:00
Felix Stürmer c72a22e857
[Logs UI] Remove scaling and pre-aggregation in datafeed (#44268)
This simplifies the datafeed configuration by removing the date histogram aggregation and the bucket script, that scaled the document count. It also adjusts the chart's y axis label accordingly.

Additionally it adds a `job_revision` metadata item to the job config that we can use to detect outdated job configs in the future in order to prompt the user to reinstall new jobs.
2019-08-29 00:39:40 +02:00
Melissa Alvarez 0d7ae43d29
Ensure chart label badge has proper width (#44259) 2019-08-28 16:41:38 -05:00
James Gowdy 3e0883309b
[ML] Fixing job type picker tests (#44275)
* [ML] Fixing job type picker tests

* fixing typo
2019-08-28 22:37:39 +01:00
Nathan Reese e42cfacb9d
[Maps] pew pew source (#41504)
* [Maps][POC] pew pew source

* refetch data on zoom level change

* add metric aggs to request

* fix bug where initial draw did not have styles set up

* make tooltips work

* fix import broken with merging master

* use custom labels in tooltips

* remove duplicate keys and clean up title and desc wording

* update source description

* update references migration to extract references for pew pew source

* add percy visual test to ensure pew pew map data is fetch, processed, and visualized as expected

* update title and description

* use GEO_FIELD_TYPES in filterGeoField function

* remove unneeded Fragment wrapper

* fix typo

* update inspector description id and message
2019-08-28 15:35:03 -06:00
Tyler Smalley ce2ba6d5f5
Disable failing timefilter calculateBounds tests (#44330)
https://github.com/elastic/kibana/issues/44308

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-28 14:14:15 -07:00
Tyler Smalley d3761c20f7
[ML] Disable failing single job creation functional test (#44329)
https://github.com/elastic/kibana/issues/44310

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-28 14:14:00 -07:00
Poff Poffenberger 000edcba02
[Canvas] Bunch of follow-on monaco adjustments/fixes (#44099)
* Adding null syntax highlighting, argument color differentiation from functions, multi-line strings, and two space tabs

* Type update

* Fixing Run shortcut in editor

* Adding line wrapping

* Updating reference string for optional aliases and defaults
2019-08-28 16:13:22 -05:00
Zacqary Adam Xeper d3b9325d2f
[Logs UI] Show prompt on analysis screen when machine learning is disabled (#44156)
* [Logs UI] Redirect away from analysis page when ML is disabled

* Replace redirect with empty prompt

* Add missing unavaiablable page file

* Make title wording more succint

* Widen empty prompt wrapper
2019-08-28 14:40:09 -05:00
Court Ewing 67d65cc47d
gitignore legacy optimize directory (#44314)
While the optimize directory has moved to data/optimize, folks likely
still have their old optimize directory sitting around, and we don't
want them to accidentally commit it.
2019-08-28 15:01:24 -04:00
Nathan L Smith ec713f2e82
[APM] More descriptive page titles (#44296)
Instead of using only the text of the last breadcrumb for the page title, use the breadcrumbs to create a reverse list of items (since in the page title we want the most relevant item at the beginning) that are pipe-separated.

This only affects the page titles in APM, since Infra uses a different mechanism for breadcrumbs and page titles.

The implementation doesn't exactly match the discussion on #41456, and there's no truncation, but it should be an improvement.

Also update the tests so that they more accurately reflect the routes actually being used in the app.

Fixes #41456.
2019-08-28 13:34:03 -05:00
Liza Katz 70f03018f3
Timefilter - TypeScript (#43770)
* Typescriptifying

* More TS

* define InputTimeRange type

* fix import path
2019-08-28 19:09:17 +03:00
Melissa Alvarez 7d2114568d
[ML] Transform UI updates (#44175)
* rename df tab. only keep node name in details. left align col headers

* fix anomaly explorer chart badge style

* update df messages limit to 500. Add pagination to messages pane table

* Update statsBar text. Ensure state shows up correctly

* revert fix for explorer chart label. to be moved to sep PR
2019-08-28 11:04:07 -05:00
Clint Andrew Hall 910ae8dc8f
Reverting PR 42545 (for now) (#44277) 2019-08-28 12:01:03 -04:00
Marjorie Jones 80a92a61ed
[DOCS] Spellcheck and minor tidying-up/consistency of Logs app content (#43388)
* Preliminary changes

* More changes

* Updating Logs app content.

* Few final tweaks after reading through

* Review comments, adding a redirect for a removed bookmark, just in case.
2019-08-28 16:52:39 +01:00
Zacqary Adam Xeper 9de12f06a3
[Infra UI] Clarify confusing message about time period (#44168) 2019-08-28 10:27:55 -05:00
Dario Gieselaar 5de2fd4ccc
[APM] Persist local UI filter across views (#43988)
* [APM] Persist local UI filter across views

* Migrate remaining links

* Add comment clarifying override of EUITab styling

* Remove unnecessary check for existence of waterfall.traceRoot
2019-08-28 17:27:02 +02:00
Jonathan Budzenski bad947d7d1
move optimize into data folder (#25944)
* move optimize into data folder

* path

* replace optimize with data in notice glob

* update docs

* more updates

* update snapshots

* re-add folder references

* prettier

* save changes

* rm optimize from .eslintignore

* rm extra file

* fix merge
2019-08-28 10:09:58 -05:00